You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The columns in PostgreSQL are transformed to lowercase unless they are wrapped in double quotes, and PostgreSQL is case-sensitive. For these queries to work the column has to be wrapped in double quotes, i.e: relations."targetId"
There is another issue on the following lines as well:
I'm not sure what the best way to fix this is, while keeping compatibility with MySQL as well, so I figured I'd just create an issue as opposed to a PR.
The text was updated successfully, but these errors were encountered:
Hi,
When using this plugin with PostgreSQL we seem to be encountering a lot of errors with several SQL queries. For example:
craft-assetusage/src/console/controllers/DefaultController.php
Lines 71 to 72 in dc6b757
The columns in PostgreSQL are transformed to lowercase unless they are wrapped in double quotes, and PostgreSQL is case-sensitive. For these queries to work the column has to be wrapped in double quotes, i.e:
relations."targetId"
There is another issue on the following lines as well:
craft-assetusage/src/console/controllers/DefaultController.php
Lines 77 to 78 in dc6b757
There is a type incompatible comparison here. "LIKE" is only possible on text/strings, but "content" is a jsonb column.
There are more similar PostgreSQL errors, here:
craft-assetusage/src/services/Asset.php
Lines 92 to 93 in dc6b757
I'm not sure what the best way to fix this is, while keeping compatibility with MySQL as well, so I figured I'd just create an issue as opposed to a PR.
The text was updated successfully, but these errors were encountered: