mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
unquote table/column names when inferring sequence name on postgres
This commit is contained in:
parent
12682c0abd
commit
f91905c34a
@ -10,6 +10,8 @@
|
||||
|
||||
import java.sql.Types;
|
||||
|
||||
import static org.hibernate.internal.util.StringHelper.unquote;
|
||||
|
||||
/**
|
||||
* @author Andrea Boriero
|
||||
*/
|
||||
@ -21,7 +23,7 @@ public boolean supportsIdentityColumns() {
|
||||
|
||||
@Override
|
||||
public String getIdentitySelectString(String table, String column, int type) {
|
||||
return "select currval('" + table + '_' + column + "_seq')";
|
||||
return "select currval('" + unquote(table) + '_' + unquote(column) + "_seq')";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user