mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
fixed encoding of blob columns for all DB's
This commit is contained in:
parent
e4463d38a5
commit
0cbb4fdb71
@ -280,7 +280,6 @@
|
||||
{
|
||||
return False;
|
||||
}
|
||||
// the substring is needed as the string is already in quotes
|
||||
return $this->Link_ID->addq($str);
|
||||
}
|
||||
|
||||
@ -959,11 +958,15 @@
|
||||
switch($type)
|
||||
{
|
||||
case 'blob':
|
||||
if ($this->Type == 'mysql')
|
||||
switch ($this->Link_ID->blobEncodeType)
|
||||
{
|
||||
break; // ADOdb has no BlobEncode for mysql and returns an unquoted string !!!
|
||||
}
|
||||
case 'C': // eg. postgres
|
||||
return "'" . $this->Link_ID->BlobEncode($value) . "'";
|
||||
case 'I':
|
||||
return $this->Link_ID->BlobEncode($value);
|
||||
default:
|
||||
break; // handled like strings
|
||||
}
|
||||
case 'date':
|
||||
return $this->Link_ID->DBDate($value);
|
||||
case 'timestamp':
|
||||
|
Loading…
Reference in New Issue
Block a user