-
Notifications
You must be signed in to change notification settings - Fork 32
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
[MSSQL] TOAST #1079
[MSSQL] TOAST #1079
Conversation
} | ||
|
||
return fmt.Sprintf("COALESCE(%s, '') != '%s'", colName, constants.ToastUnavailableValuePlaceholder) | ||
return fmt.Sprintf("COALESCE(%s, '') NOT LIKE '%s'", colName, toastedValue) |
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.
Could you just do
return fmt.Sprintf("COALESCE(%s, '') NOT LIKE '%%s%'", colName, constants.ToastUnavailableValuePlaceholder)
instead of defining toastedValue
above, or do the extra %
s mess with fmt.Sprintf
?
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.
(I guess that's not really more readable though, so I'm also good with it as-is)
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.
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.
Ah nice, that's what I suspected
Same rationale as #1078 and #1077.
Matching TOASTED placeholders using LIKE