changed the regular expression in _handle_show_query() to manipulate FROM or IN db_name
git-svn-id: https://plugins.svn.wordpress.org/sqlite-integration/trunk@751138 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
d48bb8ab28
commit
4147af7334
|
@ -96,7 +96,7 @@ class PDOSQLiteDriver {
|
|||
*/
|
||||
private function _handle_show_query(){
|
||||
$table_name = '';
|
||||
$pattern = '/^\\s*SHOW\\s*TABLES\\s*(LIKE\\s*(.*))$/im';
|
||||
$pattern = '/^\\s*SHOW\\s*TABLES\\s*.*?(LIKE\\s*(.*))$/im';
|
||||
if (preg_match($pattern, $this->_query, $matches)) {
|
||||
$table_name = str_replace(array("'", ';'), '', $matches[2]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue