diff options
author | Filipp Lepalaan <filipp@mac.com> | 2011-09-27 14:47:01 +0300 |
---|---|---|
committer | Filipp Lepalaan <filipp@mac.com> | 2011-09-27 14:47:01 +0300 |
commit | 4c83a63533d8616e01d2ac473f98f4a2dc6bb1be (patch) | |
tree | d5b2e12c214543aba7030605ec01d8e8ece325e7 /MainController.php | |
parent | e37db3cdbfb1ec57b5126be06325a75ccdc82efe (diff) | |
download | main-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.tar.gz main-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.tar.bz2 main-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.zip |
Diffstat (limited to 'MainController.php')
-rw-r--r-- | MainController.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/MainController.php b/MainController.php index 17e7167..65ae757 100644 --- a/MainController.php +++ b/MainController.php @@ -367,8 +367,9 @@ class MainController $val = implode(', ', array_keys($values)); $this->sql_insert = sprintf($this->sql_insert, $this->table, $insert, $val); - - return MainDb::query($this->sql_insert, $values); + $seq_id = sprintf( '%s_id_seq', strtolower(get_called_class()) ); + + return MainDb::query( $this->sql_insert, $values, $seq_id ); } |