Skip to content

Commit f24a0d1

Browse files
committed
changes
1 parent a67937a commit f24a0d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Where.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public function add($field, $value, $operator = "=", $value_type = "string")
4848
break;
4949

5050
case "boolean":
51+
case "integer":
5152
$value = (int) $value;
5253
break;
5354

@@ -62,7 +63,7 @@ public function add($field, $value, $operator = "=", $value_type = "string")
6263
break;
6364

6465
default:
65-
throw new Exception("Un-Supported value type");
66+
throw new \Exception("Query Builder : Un-Supported value type :" . gettype($value) );
6667
}
6768

6869
$this->fields[] = array(

0 commit comments

Comments
 (0)