]> git.sesse.net Git - remoteglot/blobdiff - remoteglot.pl
Fix a crash in remoteglot.pl with the new SQL stuff.
[remoteglot] / remoteglot.pl
index 9502a715427cae9738f9081ce31559e5f9cebd47..7846e83ef46f5d4090f50103a395e5a50c7ce767 100755 (executable)
@@ -1183,7 +1183,7 @@ sub find_clock_start {
        }
        local $dbh->{AutoCommit} = 0;
        $dbh->do('DELETE FROM clock_info WHERE id=?', undef, $id);
-       $dbh->do('INSERT INTO clock_info (id, white_clock, black_clock, white_clock_target, black_clock_target)', undef,
+       $dbh->do('INSERT INTO clock_info (id, white_clock, black_clock, white_clock_target, black_clock_target) VALUES (?, ?, ?, ?, ?)', undef,
                $id, $pos->{'white_clock'}, $pos->{'black_clock'}, $white_clock_target, $black_clock_target);
        $dbh->commit;
 }