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

Fix SQLite error in UPDATE statement #49

Closed
wants to merge 1 commit into from

Conversation

piggito
Copy link
Contributor

@piggito piggito commented May 4, 2020

UPDATE statements in SQLite require the AS keyword for table alias https://www.sqlite.org/lang_update.html so it was triggering an error like this

SQLSTATE[HY000]: General error: 1 near "s": syntax error: UPDATE {sessions} s SET expiration = :expiration, is_remember_me = :is_remember_me WHERE s.uid = :uid AND s.sid = :sid; Array ( [:expiration] => -1 [:is_remember_me] => 0 [:uid] => 11 [:sid] => 3uVNmhW-ekICbY9-b8wpvHQZMSl9MaV3syYsUS8XjA4 )

There isn't actually a need for table alias in this statement so I removed it to prevent errors

@Ynhockey
Copy link
Collaborator

Ynhockey commented Jul 8, 2020

Hi @piggito , sorry for the delay, I am starting to review your PRs now. I have opened a different PR to a different target branch, if you would like to open more PRs please target develop. Thanks!

@Ynhockey Ynhockey closed this Jul 8, 2020
@piggito piggito deleted the sqlite_error_update_alias branch January 26, 2021 03:16
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 this pull request may close these issues.

2 participants