Browse Source

Don't restrict to BASE_TABLE.

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

Fixes #2529
mark_story 14 years ago
parent
commit
49a48ced89
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Model/Datasource/Database/Sqlserver.php

+ 1 - 1
lib/Cake/Model/Datasource/Database/Sqlserver.php

@@ -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();