Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix the nvarchar-varbinary casting #3072
Fix the nvarchar-varbinary casting #3072
Changes from all commits
7c12ec2
095673f
a2775e1
c06c940
6a2f3cc
bff7ec1
39791ff
3a895f0
36e700d
8dc4e26
ce7b7a8
75f9354
fcc59f4
2b0a688
30b176b
48d81fe
f044012
aafaf50
01dc97f
3cfc40d
74aac96
e877e20
2b2c59b
44b5a11
96b5b4a
611dbca
5aab87a
c2bafef
0af5770
635787c
1de8a82
cd93a0e
8df749e
2ea5b2f
68c1d26
b5a379c
c73a319
5e69cfd
7cf58f7
794fe9e
4e21ac9
e3d2f9c
5c808a8
24be76d
2313a4f
e995f9d
09ff98a
af5eed7
b2bc1e7
9615a99
a9cf0aa
c1250a0
ac06787
eeaa9ed
6483a51
04a8658
d75f99c
cc47ef7
4c58e97
5e3e0c7
a8ef9ff
9797e29
0a09fa9
b4ad46f
e807c20
ae35365
0935d58
6ba1e89
330a50d
8cfa08f
abb498f
e442c38
aefe67e
4f367c4
2eaede5
fa79cf2
82709e1
6383080
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let use the existing naming convention for this function. Also please commit one line at end of each file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for varbinaryvarchar function too we had a function varbinarysysvarchar, I created naming likewise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have test cases for this scenario?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
adding one for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please point the code line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/babelfish-for-postgresql/babelfish_extensions/pull/3072/files#diff-fff75a029d373c427177cfcc5166d287721a02b78cbf1aeae54b868ad6d7bc9eR216
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Need to update Error message here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what will be typmod in case of
select cast(<> as nvarchar(max))
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz add a comment explaining this logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is len >> 1 and maxlen << 1? is it due to *2 for UTF16?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plz add test case for this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to free data first?