agentejo / mongo-lite

Schemaless database on top of SQLite
160 stars 18 forks source link

Fix buildCondition for 'false' boolean value. #1

Closed StevenDevooght closed 10 years ago

StevenDevooght commented 10 years ago

An exception occurs when casting a boolean value to a string. Apparently the problem only happens when the value is false.

The following query fails.

$collection("posts")->find(["public"=>false])->toArray();