Skip to content

Commit a659966

Browse files
authored
Exclude sqlite_% from listTables()
1 parent 1e8e5c9 commit a659966

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

system/Database/SQLite3/Connection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ protected function _escapeString(string $str): string
207207
protected function _listTables(bool $prefixLimit = false): string
208208
{
209209
return 'SELECT "NAME" FROM "SQLITE_MASTER" WHERE "TYPE" = \'table\''
210+
. ' AND "NAME" NOT LIKE \'sqlite_%\''
210211
. (($prefixLimit !== false && $this->DBPrefix !== '')
211212
? ' AND "NAME" LIKE \'' . $this->escapeLikeString($this->DBPrefix) . '%\' ' . sprintf($this->likeEscapeStr,
212213
$this->likeEscapeChar)

0 commit comments

Comments
 (0)