quote any variable usages in SQL

This commit is contained in:
Matthew Bucci committed 2024-02-26 12:27:23 -08:00
1 parent 61cfa6896d
commit a5480c70cb
2 files changed
+4 -4

No files matched your search

@@ -42,9 +42,9 @@ class ShowTableStatusSQLRewriter extends AbstractSQLRewriter
pg_namespace nsp ON cls.relnamespace = nsp.oid
WHERE
cls.relkind = 'r'
AND nsp.nspname NOT LIKE 'pg_%' -- Ignore schemas with names starting with pg_
AND nsp.nspname != 'information_schema' -- Ignore the information_schema
AND nsp.nspname = $schema -- Select only tables in the 'myschema' schema
AND nsp.nspname NOT LIKE 'pg_%'
AND nsp.nspname != 'information_schema'
AND nsp.nspname = '$schema'
ORDER BY
cls.relname ASC;
SQL;