about summary refs log tree commit homepage
path: root/lib/PublicInbox/Msgmap.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-18 20:58:35 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-04-18 20:58:35 +0000
commitcfb8d16578e7f2f2e300f9f436205e4a8fc7f322 (patch)
tree2b102728613d0019102dccb6d281ed9aaec03326 /lib/PublicInbox/Msgmap.pm
parent1dc0f0c10fd856166a6726034de8aec53392901a (diff)
parent119463b3b8517e5ec149198bb83588999118ee1d (diff)
downloadpublic-inbox-cfb8d16578e7f2f2e300f9f436205e4a8fc7f322.tar.gz
* origin/master:
  nntp: allow and ignore empty commands
  mbox: do not barf on queries which return no results
  nntp: fix NEWNEWS command
  searchview: fix non-numeric comparison
  Allow specification of the number of search results to return
  githttpbackend: avoid infinite loop on generic PSGI servers
  http: fix modification of read-only value
  extmsg: use news.gmane.org for Message-ID lookups
  extmsg: rework partial MID matching to favor current inbox
  Update the installation instructions with Fedora package names
  nntp: do not drain rbuf if there is a command pending
  nntp: improve fairness during XOVER and similar commands
  searchidx: do not modify Xapian DB while iterating
  Don't use LIMIT in UPDATE statements
Diffstat (limited to 'lib/PublicInbox/Msgmap.pm')
-rw-r--r--lib/PublicInbox/Msgmap.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/Msgmap.pm b/lib/PublicInbox/Msgmap.pm
index 3237a5ed..ec3d4f9d 100644
--- a/lib/PublicInbox/Msgmap.pm
+++ b/lib/PublicInbox/Msgmap.pm
@@ -78,7 +78,7 @@ sub meta_accessor {
         $prev = $dbh->selectrow_array($sql, undef, $key);
 
         if (defined $prev) {
-                $sql = 'UPDATE meta SET val = ? WHERE key = ? LIMIT 1';
+                $sql = 'UPDATE meta SET val = ? WHERE key = ?';
                 $dbh->do($sql, undef, $value, $key);
         } else {
                 $sql = 'INSERT INTO meta (key,val) VALUES (?,?)';