mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-08 14:30:05 +01:00
fixed quoting of bool column to return true or false, as required by newer postgres and accepted by mysql too
This commit is contained in:
parent
1c8ecb3992
commit
c267a875de
@ -648,7 +648,6 @@
|
|||||||
{
|
{
|
||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
//$id = $this->Link_ID->PO_Insert_ID($table,$field);
|
|
||||||
$id = $this->Link_ID->PO_Insert_ID($table,$field); // simulates Insert_ID with "SELECT MAX($field) FROM $table" if not native availible
|
$id = $this->Link_ID->PO_Insert_ID($table,$field); // simulates Insert_ID with "SELECT MAX($field) FROM $table" if not native availible
|
||||||
|
|
||||||
if ($id === False) // function not supported
|
if ($id === False) // function not supported
|
||||||
@ -1114,7 +1113,7 @@
|
|||||||
case 'auto':
|
case 'auto':
|
||||||
return (int) $value;
|
return (int) $value;
|
||||||
case 'bool':
|
case 'bool':
|
||||||
return $value ? 1 : 0;
|
return $value ? 'true' : 'false';
|
||||||
}
|
}
|
||||||
if (!$this->Link_ID && !$this->connect())
|
if (!$this->Link_ID && !$this->connect())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user