From ccccedff04b5b12115acacc47e7f362f0d3ee505 Mon Sep 17 00:00:00 2001 From: Ruben van Vreeland Date: Thu, 8 Feb 2018 20:40:59 +0100 Subject: [PATCH] Add support for x'HEX' and X'HEX' Numeric Constants Currently, only x'HEX' numeric constants are supported. SQLite supports X'HEX' as well, as "string literals containing hexadecimal data" --- src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt b/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt index 79c29ec15..199f5ef7f 100644 --- a/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt +++ b/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt @@ -318,7 +318,7 @@ TOKEN : /* Numeric Constants */ )> | < S_LONG: ( )+ > | < #DIGIT: ["0" - "9"] > - | < S_HEX: ("x'" ( )+ "'" | "0x" ( )+ ) > + | < S_HEX: (["x","X"] "'" ( )+ "'" | "0x" ( )+ ) > | < #HEX_VALUE: ["0"-"9","A"-"F"] > }