Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Binding boolean with bindValue does not work #59

Open
martin-marinov-securax opened this issue Jul 28, 2014 · 0 comments
Open

Binding boolean with bindValue does not work #59

martin-marinov-securax opened this issue Jul 28, 2014 · 0 comments

Comments

@martin-marinov-securax
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant