Skip to content

Commit

Permalink
Distinguish between "::type" which is a cast and ":::type" which is a…
Browse files Browse the repository at this point in the history
… reference to a glocal Tcl variable named "type".
  • Loading branch information
resuna committed Nov 27, 2018
1 parent 7b27dd7 commit 1e0b9e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/tokenize.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ int Pg_sqlite3GetToken(const char *z, enum sqltoken *tokenType){
// END change PDS Jul 2017
case CC_VARALPHA: {
// special case of "::" which is a cast in PostgreSQL
if (z[0]==':' && z[1]==':') {
if (z[0]==':' && z[1]==':' && z[2]!=':') {
*tokenType = TK_CAST;
return 2;
}
Expand Down

0 comments on commit 1e0b9e7

Please sign in to comment.