From 5f46c6508b4d70564f7849bcaf2c32bbdae7a895 Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Fri, 5 Jun 2009 14:05:44 +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/branches/Branch_3_3@16708 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../main/java/org/hibernate/id/enhanced/TableStructure.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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..8f1ef9db92 100644 --- a/core/src/main/java/org/hibernate/id/enhanced/TableStructure.java +++ b/core/src/main/java/org/hibernate/id/enhanced/TableStructure.java @@ -20,7 +20,6 @@ * Free Software Foundation, Inc. * 51 Franklin Street, Fifth Floor * Boston, MA 02110-1301 USA - * */ package org.hibernate.id.enhanced; @@ -68,7 +67,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();