File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
main/jjtree/net/sf/jsqlparser/parser
test/java/net/sf/jsqlparser/test/select Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -756,7 +756,7 @@ String RelObjectNameExt():
756
756
String result=null;
757
757
}
758
758
{
759
- ( result=RelObjectName() | tk=<K_LEFT> | tk=<K_RIGHT> | tk=<K_SET> | <K_DOUBLE> )
759
+ ( result=RelObjectName() | tk=<K_LEFT> | tk=<K_RIGHT> | tk=<K_SET> | <K_DOUBLE>)
760
760
{
761
761
if (tk!=null) result=tk.image;
762
762
return result;
Original file line number Diff line number Diff line change @@ -1202,6 +1202,11 @@ public void testCastTypeProblem7() throws JSQLParserException {
1202
1202
String stmt = "SELECT CAST('test' AS character varying) FROM tabelle1" ;
1203
1203
assertSqlCanBeParsedAndDeparsed (stmt );
1204
1204
}
1205
+
1206
+ public void testCastTypeProblem8 () throws JSQLParserException {
1207
+ String stmt = "SELECT CAST('123' AS double precision) FROM tabelle1" ;
1208
+ assertSqlCanBeParsedAndDeparsed (stmt );
1209
+ }
1205
1210
1206
1211
public void testCaseElseAddition () throws JSQLParserException {
1207
1212
String stmt = "SELECT CASE WHEN 1 + 3 > 20 THEN 0 ELSE 1000 + 1 END AS d FROM dual" ;
You can’t perform that action at this time.
0 commit comments