diff options
author | rowanbeentje <rowan@beent.je> | 2010-03-07 22:27:48 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2010-03-07 22:27:48 +0000 |
commit | 3df9eae4ed4aa8d21293e624c0beca069e77bdea (patch) | |
tree | de4ab38fe5b053ef61f712675525565c73401365 /Source/CustomQuery.m | |
parent | ee8c83d433d0351dffda4ce273e3d1278154f769 (diff) | |
download | sequelpro-3df9eae4ed4aa8d21293e624c0beca069e77bdea.tar.gz sequelpro-3df9eae4ed4aa8d21293e624c0beca069e77bdea.tar.bz2 sequelpro-3df9eae4ed4aa8d21293e624c0beca069e77bdea.zip |
- Add a check for valid columns - this addresses http://log.sequelpro.com/view/25
Diffstat (limited to 'Source/CustomQuery.m')
-rw-r--r-- | Source/CustomQuery.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/CustomQuery.m b/Source/CustomQuery.m index e3d26d74..2992d373 100644 --- a/Source/CustomQuery.m +++ b/Source/CustomQuery.m @@ -1679,6 +1679,7 @@ // Prevent sorting while a query is running if ([tableDocumentInstance isWorking]) return; + if (!cqColumnDefinition || ![cqColumnDefinition count]) return; NSMutableString *queryString = [NSMutableString stringWithString:lastExecutedQuery]; |