Minor fixes ready for 7.0

This commit is contained in:
Peter Mount
2000-05-03 15:58:09 +00:00
parent c804a48ec6
commit 86b8bd0748
6 changed files with 153 additions and 72 deletions

View File

@ -210,12 +210,20 @@ public class ImageViewer implements ItemListener
public void init()
{
try {
db.setAutoCommit(true);
stat.executeUpdate("create table images (imgname name,imgoid oid)");
label.setText("Initialised database");
db.commit();
} catch(SQLException ex) {
label.setText(ex.toString());
}
// This must run outside the previous try{} catch{} segment
try {
db.setAutoCommit(true);
} catch(SQLException ex) {
label.setText(ex.toString());
}
}
/**