Problem reported by Victor with creation of tables in postgres port.
Postgres requires commit for DDL statements
This commit is contained in:
parent
063b34d96d
commit
4abc5e5d08
|
@ -3307,6 +3307,16 @@ public class PackInHandler extends DefaultHandler {
|
|||
return 0;
|
||||
}
|
||||
|
||||
// postgres requires commit on DDL (ALTER,CREATE)
|
||||
if (DB.isPostgreSQL()) {
|
||||
try {
|
||||
DB.commit(true, m_trxName);
|
||||
} catch (SQLException e) {
|
||||
e.printStackTrace();
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue