-
Notifications
You must be signed in to change notification settings - Fork 8
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
Errors in SQL queries #29
Comments
There should also be no hardcoded database prefixes (not everyone will be using the default 'mdl_'). I've just spotted some in the query at
|
alexmorrisnz
added a commit
to alexmorrisnz/open-mod_coursework
that referenced
this issue
Aug 17, 2023
sumaiyamannan
pushed a commit
to catalyst/open-mod_coursework
that referenced
this issue
Nov 16, 2023
agwells
pushed a commit
to catalyst/open-mod_coursework
that referenced
this issue
Oct 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We use PostgreSQL and the following error is being logged frequently:
which refers to the query:
Less frequently, we're also seeing this error:
which refers to:
I suspect PostgreSQL isn't the only database that doesn't support the use of backticks in SQL queries. If these are needed for e.g. MySQL it's worth bearing in mind that Moodle's database abstraction library will insert them automatically where needed, so they shouldn't be included in plugin code.
Thanks,
Tony
The text was updated successfully, but these errors were encountered: