Update src/Database/View.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
7e6a9bd893
commit
eb48a36061
|
@ -168,10 +168,10 @@ class View
|
||||||
$status = DBA::selectFirst(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_TYPE'],
|
$status = DBA::selectFirst(['INFORMATION_SCHEMA' => 'TABLES'], ['TABLE_TYPE'],
|
||||||
['TABLE_SCHEMA' => DBA::databaseName(), 'TABLE_NAME' => $table]);
|
['TABLE_SCHEMA' => DBA::databaseName(), 'TABLE_NAME' => $table]);
|
||||||
|
|
||||||
if (empty($status['TABLE_TYPE'])) {
|
if (empty($status['TABLE_TYPE'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $status['TABLE_TYPE'] == 'BASE TABLE';
|
return $status['TABLE_TYPE'] == 'BASE TABLE';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue