summaryrefslogtreecommitdiff
path: root/program/include/rcube_db.inc
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2005-10-26 17:27:59 +0000
committersvncommit <devs@roundcube.net>2005-10-26 17:27:59 +0000
commitfa3addfc5d03046cd173fde7e7875bad2badc6da (patch)
treedd23201f9ed4d0ed79cb9fbce5ef3b6a252ba057 /program/include/rcube_db.inc
parent43fa235da354c8b53aa69ba745c1d398a758fcaf (diff)
mysqli support
Diffstat (limited to 'program/include/rcube_db.inc')
-rwxr-xr-xprogram/include/rcube_db.inc5
1 files changed, 4 insertions, 1 deletions
diff --git a/program/include/rcube_db.inc b/program/include/rcube_db.inc
index e83565843..a987d2e84 100755
--- a/program/include/rcube_db.inc
+++ b/program/include/rcube_db.inc
@@ -192,8 +192,11 @@ class rcube_db
return $result;
case 'mysql': // This is unfortuneate
- return mysql_insert_id();
+ return mysql_insert_id($this->db_handle->connection);
+ case 'mysqli':
+ return mysqli_insert_id($this->db_handle->connection);
+
case 'sqlite':
return sqlite_last_insert_rowid($this->db_handle->connection);