Author: doogie
Date: Tue Jun 1 21:46:44 2010
New Revision: 950258
URL:
http://svn.apache.org/viewvc?rev=950258&view=revLog:
sql foo
Modified:
ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Atom.java
ofbiz/trunk/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql
Modified: ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Atom.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Atom.java?rev=950258&r1=950257&r2=950258&view=diff==============================================================================
--- ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Atom.java (original)
+++ ofbiz/trunk/framework/sql/src/org/ofbiz/sql/Atom.java Tue Jun 1 21:46:44 2010
@@ -38,6 +38,10 @@ public abstract class Atom implements Ap
return UtilValidate.isEmpty(map) ? null : map;
}
+ public boolean equals(Object o) {
+ throw new UnsupportedOperationException(getClass().getName());
+ }
+
public String toString() {
return appendTo(new StringBuilder()).toString();
}
Modified: ofbiz/trunk/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql?rev=950258&r1=950257&r2=950258&view=diff==============================================================================
--- ofbiz/trunk/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql (original)
+++ ofbiz/trunk/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql Tue Jun 1 21:46:44 2010
@@ -57,7 +57,11 @@ ORDER BY
OFFSET 5
LIMIT 10
;
-
+SELECT DISTINCT
+ firstName
+FROM
+ Person
+;
INSERT INTO Party (partyId, partyTypeId, statusId) VALUES
('a', 'PERSON', 'PARTY_DISABLED'),
(5, 'PARTY_GROUP', ?name);