svn commit: r893081 - /ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r893081 - /ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj

doogie-3
Author: doogie
Date: Tue Dec 22 06:11:24 2009
New Revision: 893081

URL: http://svn.apache.org/viewvc?rev=893081&view=rev
Log:
Use the alternate FieldValue when no table alias is used.

Modified:
    ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj

Modified: ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj?rev=893081&r1=893080&r2=893081&view=diff
==============================================================================
--- ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj (original)
+++ ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj Tue Dec 22 06:11:24 2009
@@ -660,12 +660,12 @@
 
 private FieldValue FieldValue(String fieldName):
 {
- String tableAlias = null, s;
+ String s;
 }
 {
- ( <PERIOD> s=NamePart() { tableAlias = fieldName; fieldName = s; } )?
+ ( <PERIOD> s=NamePart() { return new FieldValue(fieldName, s); } )?
  {
- return new FieldValue(tableAlias, fieldName);
+ return new FieldValue(fieldName);
  }
 }