projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
17c2033
)
Need to supply the sequence name and noth the schema name
author
Joey Schulze
<joey@infodrom.org>
Sun, 22 Dec 2013 12:18:20 +0000
(13:18 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Sun, 22 Dec 2013 12:18:20 +0000
(13:18 +0100)
class/database.class.php
patch
|
blob
|
history
diff --git
a/class/database.class.php
b/class/database.class.php
index
084c062
..
47be12d
100644
(file)
--- a/
class/database.class.php
+++ b/
class/database.class.php
@@
-83,7
+83,7
@@
class Database {
public function lastInsertId()
{
if (DBDRIVER == 'pgsql')
- return $this->db->lastInsertId($this->lastInsertTable);
+ return $this->db->lastInsertId($this->lastInsertTable
.'_id_seq'
);
else
return $this->db->lastInsertId();
}