dblayeroo : listTables : sort the tables. Do not return the sqlite_sequence table
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4291 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -269,7 +269,10 @@ class dblayeroo
|
||||
$st->execute ();
|
||||
$res = array ();
|
||||
while ($d = $st->fetch (\PDO::FETCH_ASSOC))
|
||||
$res[] = $d["name"];
|
||||
{
|
||||
if ($d["name"] !== "sqlite_sequence")
|
||||
$res[] = $d["name"];
|
||||
}
|
||||
break;
|
||||
case "mysql":
|
||||
$req = "SELECT TABLE_NAME
|
||||
@@ -295,7 +298,8 @@ class dblayeroo
|
||||
$this->DBException (dgettext ("domframework",
|
||||
"Unknown database driver in listTables"));
|
||||
}
|
||||
return $res;
|
||||
natsort ($res);
|
||||
return array_values ($res);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user