Author: stliu
Date: 2009-11-04 08:15:42 -0500 (Wed, 04 Nov 2009)
New Revision: 17902
Modified:
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/id/enhanced/TableStructure.java
Log:
JBPAPP-3052 HHH-3880 org.hibernate.id.enhanced.TableStructure missing 'as' keyword
in select statment column renames; required for PostgreSQL
Modified:
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/id/enhanced/TableStructure.java
===================================================================
---
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/id/enhanced/TableStructure.java 2009-11-03
17:19:57 UTC (rev 17901)
+++
core/branches/Branch_3_2_4_SP1_CP/src/org/hibernate/id/enhanced/TableStructure.java 2009-11-04
13:15:42 UTC (rev 17902)
@@ -41,7 +41,7 @@
this.incrementSize = incrementSize;
this.valueColumnName = valueColumnName;
- select = "select " + valueColumnName + " id_val" +
+ select = "select " + valueColumnName + " as id_val" +
" from " + dialect.appendLockHint( LockMode.UPGRADE, tableName ) +
dialect.getForUpdateString();
Show replies by date