quote any variable usages in SQL

This commit is contained in:
Matthew Bucci
2024-02-26 12:27:23 -08:00
parent 61cfa6896d
commit a5480c70cb
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -373,7 +373,7 @@ class SelectSQLRewriter extends AbstractSQLRewriter
INNER JOIN
pg_stat_user_tables S ON (S.relid = C.oid)
WHERE
N.nspname = $schema AND
N.nspname = '$schema' AND
C.relname IN ('wp_comments','wp_options','wp_posts','wp_terms','wp_users')
GROUP BY
C.relname, pg_total_relation_size(C.oid), S.n_live_tup;