fixed for mysql < 4.1 for the quoting of boolean columns (0/1, instead of standard true/false)

This commit is contained in:
Ralf Becker 2005-11-21 16:39:43 +00:00
parent 549f63db9e
commit 597e4b8589

View File

@ -1085,6 +1085,10 @@
case 'auto':
return (int) $value;
case 'bool':
if ($this->Type == 'mysql' && $this->ServerInfo['version'] < 4.1)
{
return $value ? 1 : 0;
}
return $value ? 'true' : 'false';
}
if (!$this->Link_ID && !$this->connect())