Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Encode varbinary literals as a function call to from_base64(...)
They were being encoded using the "magic literal" hack, but the value was being encoded as a UTF-8 string. The magic literal evaluator doesn't know it has to reverse the process, so this ends up corrupting varbinary literals during constant folding or distributed evaluation. This minor hack turns varbinary literals into function calls to: from_base64(<base64-encoded varchar>)
- Loading branch information