Orange-OpenSource / YACassandraPDO

Cassandra PDO Driver fork
Apache License 2.0
85 stars 32 forks source link

Binding boolean with bindValue does not work #59

Open martin-marinov-securax opened 10 years ago

martin-marinov-securax commented 10 years ago

When I run: $stmt->bindValue(':is_active', true, \PDO::PARAM_BOOL);

I get this kind of error: Fatal error: Uncaught exception 'Exception' with message 'Execution statement failed. Error: <pre> array(3) { [0]=> string(5) "00000" [1]=> int(2) [2]=> string(58) "Invalid INTEGER constant (1) for is_active of type boolean" }

If I run: $stmt->bindValue(':is_active', "true", \PDO::PARAM_BOOL);

it works.