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

Wrong SQL Selects resulting from new code #2277

Closed
Chartman123 opened this issue Sep 8, 2020 · 0 comments · Fixed by #2278
Closed

Wrong SQL Selects resulting from new code #2277

Chartman123 opened this issue Sep 8, 2020 · 0 comments · Fixed by #2278

Comments

@Chartman123
Copy link
Contributor

I'm running 1.1 beta 1 on my 19.0.2 Nextcloud and found a bug in the SQL queries.

$qb->select('id,title,duedate,notified')

This line seems to result in the following SQL command which then fails:

[core] Error: Doctrine\DBAL\Exception\InvalidFieldNameException: An exception occurred while executing 'SELECT "id,title,duedate,notified" FROM "deck_cards" WHERE ("duedate" < NOW()) AND ("archived" = ?) AND ("deleted_at" = ?)' with params [false, 0]:

SQLSTATE[42703]: Undefined column: 7 ERROR: column "id,title,duedate,notified" does not exist
LINE 1: SELECT "id,title,duedate,notified" FROM "deck_cards" WHERE (...
^ at <>

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

Successfully merging a pull request may close this issue.

1 participant