Skip to content

Commit 3f5e3c9

Browse files
committed
fixes #608
1 parent 6d95472 commit 3f5e3c9

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Also I would like to know about needed examples or documentation stuff.
4848

4949
## Extensions in the latest SNAPSHOT version 1.3
5050

51+
* introduced dotted multipart names for uservariables (issue #608)
5152
* changed behaviour of dotted multipart names for tables and columns to accept ORM class names (issue #163)
5253
** the parser allows now empty inner names, to still accept missing schema names for SQLServer (db..col)
5354
** methods like **getDatabase** will still work but have no sense using it for classnames

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
options{
2424
IGNORE_CASE = true ;
2525
STATIC = false;
26-
DEBUG_PARSER = false;
26+
DEBUG_PARSER = true;
2727
DEBUG_LOOKAHEAD = false;
2828
DEBUG_TOKEN_MANAGER = false;
2929
CACHE_TOKENS = false;
@@ -2556,10 +2556,12 @@ JdbcNamedParameter JdbcNamedParameter() : {
25562556
UserVariable UserVariable() : {
25572557
UserVariable var = new UserVariable();
25582558
String varName;
2559+
String var2;
25592560
}
25602561
{
25612562
("@" | "@@" { var.setDoubleAdd(true);} )
25622563
varName=RelObjectNameExt2()
2564+
( "." var2=RelObjectNameExt2() { varName+="." + var2; } )*
25632565
{
25642566
var.setName(varName);
25652567
return var;

0 commit comments

Comments
 (0)