You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by do...@apache.org on 2009/12/22 07:11:25 UTC
svn commit: r893081 - /ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Parser.jj
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);
}
}