Commit 99180ebf authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #369 from ikulis/master

Added support for namespaces(schemas) in PostgreSql platform for Views
parents 752b5692 6e33676f
...@@ -239,7 +239,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -239,7 +239,7 @@ class PostgreSqlPlatform extends AbstractPlatform
*/ */
public function getListViewsSQL($database) public function getListViewsSQL($database)
{ {
return 'SELECT viewname, definition FROM pg_views'; return 'SELECT viewname, schemaname, definition FROM pg_views';
} }
/** /**
......
...@@ -182,7 +182,7 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager ...@@ -182,7 +182,7 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
*/ */
protected function _getPortableViewDefinition($view) protected function _getPortableViewDefinition($view)
{ {
return new View($view['viewname'], $view['definition']); return new View($view['schemaname'].'.'.$view['viewname'], $view['definition']);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment