Author: shawkins
Date: 2011-10-03 08:20:17 -0400 (Mon, 03 Oct 2011)
New Revision: 3512
Modified:
branches/7.4.x/hibernate-dialect/src/main/java/org/teiid/dialect/TeiidDialect.java
Log:
TEIID-1764 adding month override and fixing array_get/array_length
Modified:
branches/7.4.x/hibernate-dialect/src/main/java/org/teiid/dialect/TeiidDialect.java
===================================================================
---
branches/7.4.x/hibernate-dialect/src/main/java/org/teiid/dialect/TeiidDialect.java 2011-10-03
12:19:08 UTC (rev 3511)
+++
branches/7.4.x/hibernate-dialect/src/main/java/org/teiid/dialect/TeiidDialect.java 2011-10-03
12:20:17 UTC (rev 3512)
@@ -125,6 +125,7 @@
registerFunction("formattimestamp", new
StandardSQLFunction("formattimestamp", Hibernate.STRING)); //$NON-NLS-1$
//$NON-NLS-2$
registerFunction("hour", new StandardSQLFunction("hour",
Hibernate.INTEGER)); //$NON-NLS-1$ //$NON-NLS-2$
registerFunction("minute", new StandardSQLFunction("minute",
Hibernate.INTEGER)); //$NON-NLS-1$ //$NON-NLS-2$
+ registerFunction("month", new StandardSQLFunction("month",
Hibernate.INTEGER)); //$NON-NLS-1$ //$NON-NLS-2$
registerFunction("monthname", new
StandardSQLFunction("monthname", Hibernate.STRING)); //$NON-NLS-1$
//$NON-NLS-2$
registerFunction("parsedate", new
StandardSQLFunction("parsedate", Hibernate.DATE)); //$NON-NLS-1$ //$NON-NLS-2$
registerFunction("parsetime", new
StandardSQLFunction("parsetime", Hibernate.TIME)); //$NON-NLS-1$ //$NON-NLS-2$
@@ -147,8 +148,8 @@
registerFunction("uuid", new StandardSQLFunction("uuid",
Hibernate.STRING)); //$NON-NLS-1$ //$NON-NLS-2$
registerFunction("unescape", new
StandardSQLFunction("unescape", Hibernate.STRING)); //$NON-NLS-1$ //$NON-NLS-2$
- registerFunction("array_get", new StandardSQLFunction("uuid",
Hibernate.OBJECT)); //$NON-NLS-1$ //$NON-NLS-2$
- registerFunction("array_length", new
StandardSQLFunction("unescape", Hibernate.INTEGER)); //$NON-NLS-1$
//$NON-NLS-2$
+ registerFunction("array_get", new
StandardSQLFunction("array_get", Hibernate.OBJECT)); //$NON-NLS-1$
//$NON-NLS-2$
+ registerFunction("array_length", new
StandardSQLFunction("array_length", Hibernate.INTEGER)); //$NON-NLS-1$
//$NON-NLS-2$
}
public boolean dropConstraints() {
Show replies by date