From 4c83a63533d8616e01d2ac473f98f4a2dc6bb1be Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 27 Sep 2011 14:47:01 +0300 Subject: pass param, sequence id support --- MainDb.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'MainDb.php') 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(); -- cgit v1.2.3