diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-01-21 13:16:56 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-01-21 13:16:56 +0000 |
commit | d1af3d55bace5a74766d29da0c72665989038067 (patch) | |
tree | 6e851f9385a2153493ab582d5a084047007bfcf4 /Source | |
parent | bc01bc7bcfe8b332ffa638c0f89adb8f2e5f748a (diff) | |
download | sequelpro-d1af3d55bace5a74766d29da0c72665989038067.tar.gz sequelpro-d1af3d55bace5a74766d29da0c72665989038067.tar.bz2 sequelpro-d1af3d55bace5a74766d29da0c72665989038067.zip |
• avoid updating TablesList for queries in Custom Query Editor à la "SHOW CREATE …"
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CustomQuery.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index 790db8f5..62deb15d 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -626,7 +626,7 @@ } else { // Check if table/db list needs an update // The regex is a compromise between speed and usefullness. TODO: further improvements are needed - if(!tableListNeedsReload && [query isMatchedByRegex:@"(?i)\\b(create|alter|drop|rename)\\b\\s+."]) + if(!tableListNeedsReload && [query isMatchedByRegex:@"(?i)(?<!show\\s+)\\b(create|alter|drop|rename)\\b\\s+."]) tableListNeedsReload = YES; if(!databaseWasChanged && [query isMatchedByRegex:@"(?i)\\b(use|drop\\s+database|drop\\s+schema)\\b\\s+."]) databaseWasChanged = YES; |