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:
kjmtsh 2013-08-04 15:08:47 +00:00
parent d48bb8ab28
commit 4147af7334
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class PDOSQLiteDriver {
*/ */
private function _handle_show_query(){ private function _handle_show_query(){
$table_name = ''; $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)) { if (preg_match($pattern, $this->_query, $matches)) {
$table_name = str_replace(array("'", ';'), '', $matches[2]); $table_name = str_replace(array("'", ';'), '', $matches[2]);
} }