aboutsummaryrefslogtreecommitdiffstats
path: root/MainController.php
diff options
context:
space:
mode:
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 );
}