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

User_wiki: Differentiate Edit versus Create

This commit is contained in:
gnosygnu
2016-10-31 10:23:30 -04:00
parent 8016846cd9
commit 6d327749fc
19 changed files with 60 additions and 104 deletions

View File

@@ -33,9 +33,9 @@ public class Db_tbl__crud_ {
// do update / insert; NOTE: 0-index and crt_cols_len assumes that objs starts with crts; EX: (id) -> (1, 'abc') x> ('abc', 1)
// update
if (exists) {
Db_stmt update_stmt = conn.Stmt_update(tbl_name, crt_cols, crt_cols);
Add_arg(update_stmt, flds, crt_cols, objs, Bool_.Y, 0);
Db_stmt update_stmt = conn.Stmt_update(tbl_name, crt_cols, val_cols);
Add_arg(update_stmt, flds, val_cols, objs, Bool_.N, crt_cols_len);
Add_arg(update_stmt, flds, crt_cols, objs, Bool_.Y, 0);
update_stmt.Exec_update();
update_stmt.Rls();
return false;