mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-10 23:40:39 +01:00
omitting 'INSERT INTO table col=val' for pgsql-compatibility
This commit is contained in:
parent
58d7129099
commit
1db9edc55e
@ -237,23 +237,23 @@
|
|||||||
{
|
{
|
||||||
$val = addslashes($val);
|
$val = addslashes($val);
|
||||||
}
|
}
|
||||||
if ($query) $query .= ',';
|
$cols .= ($cols ? ',' : '').$key;
|
||||||
$query .= "$key='$val'";
|
$vals .= ($vals ? ',' : '')."'$val'";
|
||||||
|
$query .= ($query ? ',' : '')."$key='$val'";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($values['info_id'])
|
if ($values['info_id'])
|
||||||
{
|
{
|
||||||
$query = 'update phpgw_infolog set '.$query.' where info_id=\'' .
|
$query = "UPDATE phpgw_infolog SET $query where info_id='".$values['info_id']."'";
|
||||||
$values['info_id'] .'\'';
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$query = 'insert INTO phpgw_infolog set '.$query;
|
$query = "INSERT INTO phpgw_infolog ($cols) VALUES ($vals)";
|
||||||
/*
|
/*
|
||||||
* need to set $this->data['info_id'] with assigned autoincrement id
|
* need to set $this->data['info_id'] with assigned autoincrement id
|
||||||
* now data will be rereaded
|
* now data will be rereaded
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
$this->db->query($query,__LINE__,__FILE__);
|
$this->db->query($query,__LINE__,__FILE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user