-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
placeholders question #97
Comments
I think this is intended. There are a lot of ways to replace the variables with the values. When using PDO you can use something like |
Yeah I've been wondering about that myself @sinticbolivia |
I added a pull request (#109) that addresses this issue. Maybe I got the mechanism all wrong but maybe it helps you. EDIT: never mind, I used the software wrong... $s = $builder->select()->setTable('test')->where()->equals("id", $someID)->end();
$pdo->prepare($s);
$pdo->execute($builder->getValues());
$r = $pdo->fetchAll(); That's about the way to go, I guess... |
Hello
Thanks for great work!!
But i have a question. Why the query builder returns the SQL string with just place holder and not with values intead
I mean
$query->where()->equals('id', 100);
SELECT * FROM users WHERE id = :v1
and why not
SELECT * FROM users WHERE id = 100
Regards,
The text was updated successfully, but these errors were encountered: