X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=blobdiff_plain;f=web%2FObj%2Fdbase_pgsql.phh;h=77c215f83940975a122a5dddf0df4c46388a7545;hb=0b13b1b5ef313a06e58d2d44ffd09670a4dd8eb5;hp=f9f6888756d663f8ab8b1ca46c107fff2bd11d8e;hpb=fd07ee7fe6eb1e0193fe878bfc49a9071f1ad8d2;p=brisk.git diff --git a/web/Obj/dbase_pgsql.phh b/web/Obj/dbase_pgsql.phh index f9f6888..77c215f 100644 --- a/web/Obj/dbase_pgsql.phh +++ b/web/Obj/dbase_pgsql.phh @@ -750,10 +750,9 @@ class BriskDB for ($i = 0 ; $i < $n ; $i++) { $codes_where .= sprintf("%scode = %d", ($i == 0 ? "" : " OR "), $ucodes[$i]); } - $cnt_sql = sprintf("UPDATE %susers SET (game_cnt) = (game_cnt+1) WHERE %s;", - $G_dbpfx, $codes_where); + $G_dbpfx, $codes_where); error_log($cnt_sql); if (($cnt_pg = $this->query($cnt_sql)) == FALSE || pg_affected_rows($cnt_pg) != $n) { log_crit(sprintf("bin5_points_save: failed increment game [%s]", $cnt_sql));