@@ -230,7 +230,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/
publicfunctiongetListTablesSQL()
{
return"SELECT tablename AS table_name, schemaname AS schema_name
return"SELECT quote_ident(tablename) AS table_name, schemaname AS schema_name
FROM pg_tables WHERE schemaname NOT LIKE 'pg_%' AND schemaname != 'information_schema' AND tablename != 'geometry_columns' AND tablename != 'spatial_ref_sys'";
}
...
...
@@ -239,7 +239,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/
publicfunctiongetListViewsSQL($database)
{
return'SELECT viewname, schemaname, definition FROM pg_views';
return'SELECT quote_ident(viewname) as viewname, schemaname, definition FROM pg_views';
}
/**
...
...
@@ -247,7 +247,7 @@ class PostgreSqlPlatform extends AbstractPlatform