From 1bcbe8bebf4f469420fc36759e6f5ae5ea551535 Mon Sep 17 00:00:00 2001 From: Maryana Rozhankivska Date: Sat, 5 Apr 2014 11:22:33 +0300 Subject: postgres sequence error fix, issue #602 --- inc/poche/Database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/poche/Database.class.php') diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index 6244df88..a80eea97 100755 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php @@ -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; } -- cgit v1.2.3