aboutsummaryrefslogtreecommitdiffstats
path: root/MainController.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-09-27 14:47:01 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-09-27 14:47:01 +0300
commit4c83a63533d8616e01d2ac473f98f4a2dc6bb1be (patch)
treed5b2e12c214543aba7030605ec01d8e8ece325e7 /MainController.php
parente37db3cdbfb1ec57b5126be06325a75ccdc82efe (diff)
downloadmain-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.tar.gz
main-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.tar.bz2
main-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.zip
pass param, sequence id supportHEADmaster
Diffstat (limited to 'MainController.php')
-rw-r--r--MainController.php5
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 );
}