Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Phoenix now supports binary string literals as defined by the SQL standard: X'AF23' for hexadecimal literals, and B'0101011100100010' for binary literals.
Binary values in explain statements are now returned in the above format.
getString() for BINARY type results now use the same formatting as the VARBINARY type.Phoenix now supports binary string literals as defined by the SQL standard: X'AF23' for hexadecimal literals, and B'0101011100100010' for binary literals. Binary values in explain statements are now returned in the above format. getString() for BINARY type results now use the same formatting as the VARBINARY type.
Description
Currently there is no sane way to specify arbitrary binary and varbinary values in the query string.
They can be set as variables for preparedstatements, and if the length corresponds to an existing type, then some casting gymnastics can be used to work around the problem, but I have not found a way to write a query that upserts an arbitrary three byte value into a binary/varbinary.
The SQL standard defines Binary and Hex literals in the form ofÂ
B'01010101001...' and X'0102AAF5...'
Implement this in the parser.
Attachments
Issue Links
- blocks
-
PHOENIX-6720 CREATE TABLE can't recreate column encoded tables that had columns dropped
- Resolved
- links to