Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed issue with MySQLWriter and booleans, Closes #222.

  • Loading branch information...
commit adc1cc1bb1ae9ffc41538ed9cd73d5c07697212e 1 parent 8268d02
@gabordemooij authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  RedBean/QueryWriter/MySQL.php
View
2  RedBean/QueryWriter/MySQL.php
@@ -225,7 +225,7 @@ public function scanType( $value, $flagSpecial=false ) {
$value = strval($value);
if (!$this->startsWithZeros($value)) {
- if ($value=='1' || $value=='') {
+ if ($value === true || $value === false || $value === '1' || $value === '') {
return RedBean_QueryWriter_MySQL::C_DATATYPE_BOOL;
}
if (is_numeric($value) && (floor($value)==$value) && $value >= 0 && $value <= 255 ) {
Please sign in to comment.
Something went wrong with that request. Please try again.