]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
postgres sequence error fix, issue #602 603/head
authorMaryana Rozhankivska <mariroz@mr.lviv.ua>
Sat, 5 Apr 2014 08:22:33 +0000 (11:22 +0300)
committerMaryana Rozhankivska <mariroz@mr.lviv.ua>
Sat, 5 Apr 2014 08:22:33 +0000 (11:22 +0300)
inc/poche/Database.class.php

index 6244df887f1e3b590596319ad40ea9c68a593ac5..a80eea97a0eabf784f9760ac138925a3925f1580 100755 (executable)
@@ -374,7 +374,7 @@ class Database {
           $id = null;
         }
         else {
-          $id = intval($this->getLastId( (STORAGE == 'postgres') ? 'users_id_seq' : '' ));
+          $id = intval($this->getLastId( (STORAGE == 'postgres') ? 'entries_id_seq' : '') );
         }
         return $id;
     }