mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
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:
parent
62e671f6b8
commit
49a48ced89
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue