mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
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
This commit is contained in:
parent
e177341bd2
commit
d68a7fe803
@ -68,7 +68,7 @@ public TableStructure(Dialect dialect, String tableName, String valueColumnName,
|
||||
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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user