@@ -300,6 +301,9 @@ class PostgreSqlPlatform extends AbstractPlatform
*/
publicfunctiongetListTableConstraintsSQL($table)
{
$table=newIdentifier($table);
$table=$table->getName();
return"SELECT
quote_ident(relname) as relname
FROM
...
...
@@ -347,7 +351,9 @@ class PostgreSqlPlatform extends AbstractPlatform
}else{
$schema="ANY(string_to_array((select replace(replace(setting,'\"\$user\"',user),' ','') from pg_catalog.pg_settings where name = 'search_path'),','))";
}
$whereClause.="$classAlias.relname = '".$table."' AND $namespaceAlias.nspname = $schema";
$table=newIdentifier($table);
$whereClause.="$classAlias.relname = '".$table->getName()."' AND $namespaceAlias.nspname = $schema";