Support full SQL standard binary string literal syntax
------------------------------------------------------

                 Key: CORE-5311
                 URL: http://tracker.firebirdsql.org/browse/CORE-5311
             Project: Firebird Core
          Issue Type: Improvement
    Affects Versions: 2.5.6, 3.0.0
            Reporter: Mark Rotteveel


Currently Firebird supports a limited form of the binary string literal, please 
add support for the full syntax defined in the SQL standard.

In SQL:2011 binary string literal is defined as:

<binary string literal> ::=
  X <quote> [ <space>... ] [ { <hexit> [ <space>... ] <hexit> [ <space>... ] 
}... ] <quote>
      [ { <separator> <quote> [ <space>... ] [ { <hexit> [ <space>... ]
      <hexit> [ <space>... ] }... ] <quote> }... ]

<hexit> ::=
  <digit> | A | B | C | D | E | F | a | b | c | d | e | f

<digit> ::=
  0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9

<separator> ::=
  { <comment> | <white space> }...

This means that the below samples are all valid binary string literals 
according to the standard, Firebird only supports the first:

* X'01AB'
* X' 0 1 a b'
* X'01'         'ab'
* X'01'/*comment*/'a b'
* X'01' 'ab' /*comment*/ 'ff00'
* X'01' -- comment and newline
'ab'

etc.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports.http://sdm.link/zohodev2dev
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to