From d68a7fe80313981c2b226dfdfc036f596f980f84 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 5 Jun 2009 14:04:57 +0000 Subject: [PATCH] HHH-3880 - org.hibernate.id.enhanced.TableStructure missing "as" keyword in select statment column renames; required for PostgreSQL git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16706 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../src/main/java/org/hibernate/id/enhanced/TableStructure.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/hibernate/id/enhanced/TableStructure.java b/core/src/main/java/org/hibernate/id/enhanced/TableStructure.java index 94063be0ef..e0a3654e0b 100644 --- a/core/src/main/java/org/hibernate/id/enhanced/TableStructure.java +++ b/core/src/main/java/org/hibernate/id/enhanced/TableStructure.java @@ -68,7 +68,7 @@ public class TableStructure extends TransactionHelper implements DatabaseStructu this.incrementSize = incrementSize; this.valueColumnName = valueColumnName; - selectQuery = "select " + valueColumnName + " id_val" + + selectQuery = "select " + valueColumnName + " as id_val" + " from " + dialect.appendLockHint( LockMode.UPGRADE, tableName ) + dialect.getForUpdateString();