Problem reported by Victor with creation of tables in postgres port.

Postgres requires commit for DDL statements
This commit is contained in:
Carlos Ruiz 2007-02-26 02:58:43 +00:00
parent 063b34d96d
commit 4abc5e5d08
1 changed files with 10 additions and 0 deletions

View File

@ -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;
}