This fixes exceptions thrown when the DBMS is PostgreSQL.
Test me. With these changes, I can verify the primary plugin features are
working as expected. I have not performed extensive testing or deep exploration
of the plugin code.
A redacted exception example:
SQLSTATE[42703]: Undefined column: 7 ERROR: column elements_sites.elementid does not exist
LINE 10: LEFT JOIN "viewswork_viewrecording" "___vr" ON elements_site...
^
HINT: Perhaps you meant to reference the column "elements_sites.elementId".
Reference
Yii DAO will automatically convert such constructs into the corresponding
quoted column or table names using the DBMS specific syntax.
Summary
This fixes exceptions thrown when the DBMS is PostgreSQL.
Test me. With these changes, I can verify the primary plugin features are working as expected. I have not performed extensive testing or deep exploration of the plugin code.
A redacted exception example:
Reference
Quoting Table and Column Names