From 4147af7334bd4389c93967844b8d9366dd9533e1 Mon Sep 17 00:00:00 2001 From: kjmtsh Date: Sun, 4 Aug 2013 15:08:47 +0000 Subject: [PATCH] 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 --- query.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/query.class.php b/query.class.php index e0c15ff..718ba4a 100644 --- a/query.class.php +++ b/query.class.php @@ -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]); }