aboutsummaryrefslogtreecommitdiffstats
path: root/MainDb.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 /MainDb.php
parente37db3cdbfb1ec57b5126be06325a75ccdc82efe (diff)
downloadmain-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.tar.gz
main-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.tar.bz2
main-4c83a63533d8616e01d2ac473f98f4a2dc6bb1be.zip
pass param, sequence id supportHEADmaster
Diffstat (limited to 'MainDb.php')
-rw-r--r--MainDb.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/MainDb.php b/MainDb.php
index dba4e18..adbc00d 100644
--- a/MainDb.php
+++ b/MainDb.php
@@ -81,7 +81,7 @@ class MainDb
////
// execute an SQL query
// @return mixed
- public static function query($sql, $data = NULL)
+ public static function query($sql, $data = NULL, $seq_id = NULL)
{
$args = func_get_args();
$sql = array_shift($args);
@@ -153,7 +153,7 @@ class MainDb
}
if( empty( $data[':id'] )) {
- $data[':id'] = $pdo->lastInsertId('order_id_seq');
+ $data[':id'] = $pdo->lastInsertId( $seq_id );
}
$out = array();