Skip to content
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

Information Request - Using MySqlBuilder with mysqli #87

Open
evanirla opened this issue Aug 12, 2017 · 2 comments
Open

Information Request - Using MySqlBuilder with mysqli #87

evanirla opened this issue Aug 12, 2017 · 2 comments

Comments

@evanirla
Copy link

Hi there,

When building a select() query with a where() and an equals() call, when I write the query it looks like "select * from user where user.id = :var1". Am I able to change the ":var1" to the actual value I passed in? getValues() returns an empty array().

Thanks for your help!

@zuffik
Copy link

zuffik commented Aug 29, 2017

Similar problem here. It would be nice to add support for mysqli (question marks instead of labeled parameters).
Temporary BUT NOT RECOMMENDED solution is:

$stringQuery = $builder->write($q);
$stringQuery = preg_replace('/\:v\d+/', '?', $stringQuery);

@marcus-hiles
Copy link

yeah I agree it will be it would be nice to use question marks @evanirla @zuffik

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

No branches or pull requests

3 participants