Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-6764

Implement Binary and Hexadecimal literals

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.2.0
    • core
    • None

    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

          Activity

            People

              stoty Istvan Toth
              stoty Istvan Toth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: