Author: stliu
Date: 2010-01-04 06:40:15 -0500 (Mon, 04 Jan 2010)
New Revision: 18386
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java
Log:
JBPAPP-3323 org.hibernate.test.legacy.SQLFunctionsTest.testDialectSQLFunctions fails on
oracle
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java 2010-01-04
10:28:08 UTC (rev 18385)
+++
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/legacy/SQLFunctionsTest.java 2010-01-04
11:40:15 UTC (rev 18386)
@@ -85,7 +85,7 @@
if ( getDialect() instanceof Oracle9iDialect ) {
// Check Oracle Dialect mix of dialect functions - no args (no parenthesis and single
arg functions
- java.util.List rset = s.find("select s.name, sysdate(), trunc(s.pay),
round(s.pay) from Simple s");
+ java.util.List rset = s.find("select s.name, sysdate, trunc(s.pay), round(s.pay)
from Simple s");
assertNotNull("Name string should have been
returned",(((Object[])rset.get(0))[0]));
assertNotNull("Todays Date should have been
returned",(((Object[])rset.get(0))[1]));
assertEquals("trunc(45.8) result was incorrect ", new Float(45), (
(Object[]) rset.get(0) )[2] );