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

character_set_database and collation_database do not exist in postgres #130

Open
mattbucci opened this issue Oct 16, 2024 · 0 comments
Open

Comments

@mattbucci
Copy link
Collaborator

WP Version: 6.6.2
PG4WP Version: 3.3.1=

Error:

----> ERROR:  column "character_set_database" does not exist
LINE 1: SELECT @@character_set_database

---> ERROR:  column "collation_database" does not exist
LINE 1: SELECT @@collation_database

RAW SQL

SELECT @@character_set_database
SELECT @@collation_database

Expected Rewritten SQL

SELECT datname AS "Database", pg_encoding_to_char(encoding) AS "Charset" FROM pg_database WHERE datname = current_database();
SELECT datname AS "Database", datcollate AS "Collation" FROM pg_databaseWHERE datname = current_database();

Actual Rewritten SQL

SELECT @@character_set_database
SELECT @@collation_database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant