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

Error reading from database #3

Open
mudrd8mz opened this issue Oct 30, 2020 · 1 comment
Open

Error reading from database #3

mudrd8mz opened this issue Oct 30, 2020 · 1 comment

Comments

@mudrd8mz
Copy link

Attempting to display more info gives me fatal SQL error on PostgreSQL

Debug info: ERROR: argument of WHERE must be type boolean, not type bigint
LINE 1: SELECT * FROM m_course_categories WHERE id
^
SELECT * FROM m_course_categories WHERE id
[array (
)]
Error code: dmlreadexception
Stack trace:

    line 486 of /lib/dml/moodle_database.php: dml_read_exception thrown
    line 329 of /lib/dml/pgsql_native_moodle_database.php: call to moodle_database->query_end()
    line 920 of /lib/dml/pgsql_native_moodle_database.php: call to pgsql_native_moodle_database->query_end()
    line 1453 of /lib/dml/moodle_database.php: call to pgsql_native_moodle_database->get_records_sql()
    line 202 of /local/edwiserreports/locallib.php: call to moodle_database->get_records_select()
    line 299 of /local/edwiserreports/classes/output/renderable.php: call to local_edwiserreports_get_cohort_filter()
    line 238 of /lib/outputrenderers.php: call to local_edwiserreports\output\coursereport_renderable->export_for_template()
    line 481 of /lib/outputrenderers.php: call to renderer_base->render()
    line 65 of /local/edwiserreports/coursereport.php: call to plugin_renderer_base->render()
@abhishekkaradbhuje
Copy link

Fixed in all blocks and more pages. Compatible with MySql, Mariadb, PostgreSQL, Oracle and MSSQL.

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

2 participants