From: Steinar H. Gunderson Date: Thu, 25 Jun 2015 20:00:13 +0000 (+0200) Subject: Fix a crash in remoteglot.pl with the new SQL stuff. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=b0c92beb6f269bd49bcc5eda11eae553251e121d Fix a crash in remoteglot.pl with the new SQL stuff. --- diff --git a/remoteglot.pl b/remoteglot.pl index 9502a71..7846e83 100755 --- a/remoteglot.pl +++ b/remoteglot.pl @@ -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; }