Permalink
Browse files

Don't restrict to BASE_TABLE.

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

Fixes #2529
  • Loading branch information...
1 parent 62e671f commit 49a48ced892410a27281f186bd1d52abccd04ce7 @markstory markstory committed Feb 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Model/Datasource/Database/Sqlserver.php
@@ -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();

0 comments on commit 49a48ce

Please sign in to comment.