extract public to schema variable so we can use a constant later

This commit is contained in:
Matthew Bucci
2024-02-21 01:22:57 -08:00
parent ebbe2915c6
commit 61cfa6896d
5 changed files with 12 additions and 9 deletions
+2 -1
View File
@@ -4,6 +4,7 @@ class ShowTablesSQLRewriter extends AbstractSQLRewriter
{
public function rewrite(): string
{
return 'SELECT tablename FROM pg_tables WHERE schemaname = \'public\';';
$schema = "public";
return 'SELECT tablename FROM pg_tables WHERE schemaname = \'$schema\';';
}
}