mirror of
https://github.com/moparisthebest/user_sql
synced 2024-11-22 01:02:18 -05:00
Check SQL Views on getTables function
This commit is contained in:
parent
eae75ba236
commit
6e4028275e
@ -329,12 +329,20 @@ class Helper {
|
||||
try {
|
||||
$conn = $cm -> getConnection($sql_driver, $parameters);
|
||||
$platform = $conn -> getDatabasePlatform();
|
||||
$query = $platform -> getListTableColumnsSQL($table);
|
||||
$query = $platform -> getListTablesSQL();
|
||||
$result = $conn -> executeQuery($query);
|
||||
$ret = array();
|
||||
while($row = $result -> fetch())
|
||||
{
|
||||
$name = $row['Field'];
|
||||
$name = $row['Tables_in_'.$parameters['dbname']];
|
||||
$ret[] = $name;
|
||||
}
|
||||
$query = $platform -> getListViewsSQL($parameters['dbname']);
|
||||
$result = $conn -> executeQuery($query);
|
||||
$ret = array();
|
||||
while($row = $result -> fetch())
|
||||
{
|
||||
$name = $row['TABLE_NAME'];
|
||||
$ret[] = $name;
|
||||
}
|
||||
return $ret;
|
||||
|
Loading…
Reference in New Issue
Block a user