Don't restrict to BASE_TABLE.

This allows Views, and custom table types
to be connected to models in SqlServer.

Fixes #2529
This commit is contained in:
mark_story 2012-02-03 21:53:32 -05:00
parent 62e671f6b8
commit 49a48ced89

View file

@ -174,7 +174,7 @@ class Sqlserver extends DboSource {
if ($cache !== null) {
return $cache;
}
$result = $this->_execute("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE='BASE TABLE'");
$result = $this->_execute("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES");
if (!$result) {
$result->closeCursor();