Skip to content

Commit

Permalink
Don't restrict to BASE_TABLE.
Browse files Browse the repository at this point in the history
This allows Views, and custom table types
to be connected to models in SqlServer.

Fixes #2529
  • Loading branch information
markstory committed Feb 4, 2012
1 parent 62e671f commit 49a48ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Cake/Model/Datasource/Database/Sqlserver.php
Expand Up @@ -174,7 +174,7 @@ public function listSources($data = null) {
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();
Expand Down

0 comments on commit 49a48ce

Please sign in to comment.