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

Questionmark not properly parsed #268

Closed
prkwcz opened this issue Jan 12, 2021 · 0 comments
Closed

Questionmark not properly parsed #268

prkwcz opened this issue Jan 12, 2021 · 0 comments

Comments

@prkwcz
Copy link

prkwcz commented Jan 12, 2021

Version: 3.1

Bug Description

In the previous versions, a query was possible as follows:
$db->fetchAll("SELECT A FROM B WHERE C IS NULL AND ?", ['D' => 'E']);
Since 3.1 this is no longer possible, no results are displayed (although the manually generated SQL statement returns results).

Steps To Reproduce

in 3.07:
$db->fetchAll("SELECT A FROM B WHERE C IS NULL AND ?", ['D' => 'E']);
in 3.1:
$db->fetchAll("SELECT A FROM B WHERE C IS NULL AND ?", ['D' => 'E']);

Expected Behavior

It would be expected that under 3.1 the statement would also deliver results.
In this simple example, it does not make much sense to use the questionmark, but there are complex queries where it is very helpful to use it as described above.

@dg dg closed this as completed in 17bc9b2 Jan 12, 2021
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

1 participant