1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2026-03-02 03:49:30 +00:00

Cfg: Split db into app and usr and overhaul db objects

This commit is contained in:
gnosygnu
2016-12-08 12:24:15 -05:00
parent 9dfbd472ac
commit fd79415b53
48 changed files with 800 additions and 472 deletions

View File

@@ -116,7 +116,9 @@ public abstract class Db_engine_sql_base implements Db_engine {
@Override public Object Stmt_by_sql(String sql) {
if (connection == null) Conn_assert();
try {return connection.prepareStatement(sql);}
catch (Exception e) {throw Err_.new_exc(e, "db", "New_stmt_prep failed", "sql", sql);}
catch (Exception e) {
throw Err_.new_exc(e, "db", "New_stmt_prep failed", "sql", sql);
}
}
private Statement New_stmt_exec(String sql) {
if (connection == null) Conn_assert();