aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-01-21 13:16:56 +0000
committerBibiko <bibiko@eva.mpg.de>2010-01-21 13:16:56 +0000
commitd1af3d55bace5a74766d29da0c72665989038067 (patch)
tree6e851f9385a2153493ab582d5a084047007bfcf4
parentbc01bc7bcfe8b332ffa638c0f89adb8f2e5f748a (diff)
downloadsequelpro-d1af3d55bace5a74766d29da0c72665989038067.tar.gz
sequelpro-d1af3d55bace5a74766d29da0c72665989038067.tar.bz2
sequelpro-d1af3d55bace5a74766d29da0c72665989038067.zip
• avoid updating TablesList for queries in Custom Query Editor à la "SHOW CREATE …"
-rw-r--r--Source/CustomQuery.m2
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;