mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:31 +01:00
* PostgreSQL/Filemanager: fix SQL error while downloading files with long name (probably other cases too)
This commit is contained in:
parent
6a1f5393e4
commit
08d75bc7ad
@ -787,6 +787,7 @@ class egw_db
|
|||||||
"\n$this->Error ($this->Errno)".
|
"\n$this->Error ($this->Errno)".
|
||||||
($inputarr ? "\nParameters: '".implode("','",$inputarr)."'":''), $this->Errno);
|
($inputarr ? "\nParameters: '".implode("','",$inputarr)."'":''), $this->Errno);
|
||||||
}
|
}
|
||||||
|
elseif(empty($this->Query_ID->sql)) $this->Query_ID->sql = $Query_String;
|
||||||
return $this->Query_ID;
|
return $this->Query_ID;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1650,7 +1651,7 @@ class egw_db
|
|||||||
|
|
||||||
if ($truncate_varchar)
|
if ($truncate_varchar)
|
||||||
{
|
{
|
||||||
$maxlength = $column_definitions[$col]['type'] == 'varchar' ? $column_definitions[$col]['precision'] : null;
|
$maxlength = in_array($column_definitions[$col]['type'], array('varchar','ascii')) ? $column_definitions[$col]['precision'] : null;
|
||||||
}
|
}
|
||||||
// dont use IN ( ), if there's only one value, it's slower for MySQL
|
// dont use IN ( ), if there's only one value, it's slower for MySQL
|
||||||
if (is_array($data) && count($data) == 1)
|
if (is_array($data) && count($data) == 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user