forked from extern/egroupware
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;
|
||||
}
|
||||
//$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
|
||||
|
||||
if ($id === False) // function not supported
|
||||
@ -1114,7 +1113,7 @@
|
||||
case 'auto':
|
||||
return (int) $value;
|
||||
case 'bool':
|
||||
return $value ? 1 : 0;
|
||||
return $value ? 'true' : 'false';
|
||||
}
|
||||
if (!$this->Link_ID && !$this->connect())
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user