Update of /cvsroot/hibernate/Hibernate/cirrus/hibernate/test
In directory sc8-pr-cvs1:/tmp/cvs-serv2204/hibernate/test
Modified Files:
SQLFunctionsTest.java
Log Message:
query expressions like not (foo.bar.baz=1) now translated to (bar.baz!=1 and foo.bar=bar.id)
support for postgres ~ operator
Index: SQLFunctionsTest.java
===================================================================
RCS file: /cvsroot/hibernate/Hibernate/cirrus/hibernate/test/SQLFunctionsTest.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** SQLFunctionsTest.java 14 Nov 2002 11:28:55 -0000 1.31
--- SQLFunctionsTest.java 20 Nov 2002 07:06:45 -0000 1.32
***************
*** 36,39 ****
--- 36,42 ----
s.find("from s in class Simple where upper( s.name ) ='SIMPLE 1'").size()==1
);
+ assertTrue(
+ s.find("from s in class Simple where not( upper( s.name ) ='yada' or 1=2 or 'foo'='bar' or not('foo'='foo') or 'foo' like 'bar' )").size()==1
+ );
if ( !(dialect instanceof MySQLDialect) && !(dialect instanceof SybaseDialect)) { //My SQL has a funny concatenation operator
assertTrue(
|