]> git.sesse.net Git - remoteglot/commitdiff
Fix a crash in remoteglot.pl with the new SQL stuff.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 25 Jun 2015 20:00:13 +0000 (22:00 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Thu, 25 Jun 2015 20:00:13 +0000 (22:00 +0200)
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;
 }