mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 00:54:50 +01:00
fixed not working direct sql-updates (eg. 'etag=etag+1') via so_sql::save's parameter
This commit is contained in:
parent
59cf6042fa
commit
47994931b8
@ -422,6 +422,14 @@ class so_sql
|
|||||||
}
|
}
|
||||||
$data[$db_col] = (string) $this->data[$col] === '' && $this->empty_on_write == 'NULL' ? null : $this->data[$col];
|
$data[$db_col] = (string) $this->data[$col] === '' && $this->empty_on_write == 'NULL' ? null : $this->data[$col];
|
||||||
}
|
}
|
||||||
|
// allow to add direct sql updates, eg. "etag=etag+1" with int keys
|
||||||
|
if (is_array($keys) && isset($keys[0]))
|
||||||
|
{
|
||||||
|
for($n=0; isset($keys[$n]); ++$n)
|
||||||
|
{
|
||||||
|
$data[] = $keys[$n];
|
||||||
|
}
|
||||||
|
}
|
||||||
$keys = '';
|
$keys = '';
|
||||||
foreach($this->db_key_cols as $db_col => $col)
|
foreach($this->db_key_cols as $db_col => $col)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user