mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:19:00 +01:00
changed last_insert_id() to get_last_insert_id($table,$field)
This commit is contained in:
parent
002545067e
commit
b7418f98ba
@ -302,7 +302,7 @@ class so_sql
|
||||
$this->db->query($sql = "INSERT INTO $this->table_name ($cols) VALUES ($vals)",__LINE__,__FILE__);
|
||||
|
||||
if ($this->autoinc_id)
|
||||
$this->data[$this->db_key_cols[$this->autoinc_id]] = $this->db->last_insert_id();
|
||||
$this->data[$this->db_key_cols[$this->autoinc_id]] = $this->db->get_last_insert_id($this->table_name,$this->autoinc_id);
|
||||
}
|
||||
else //update existing row, preserv other cols not used here
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user