diff options
author | Max <post@wickenrode.com> | 2016-11-01 19:00:30 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2016-11-01 19:00:30 +0100 |
commit | f77f8715cf1bcc8811804008fc5d3ac964988ce1 (patch) | |
tree | d1954e726cb160790ba5ceca5f414d03da671e00 /Source/SPTablesList.m | |
parent | ee5e4db6cf7f35e9802d25bc413aa74221bed371 (diff) | |
download | sequelpro-f77f8715cf1bcc8811804008fc5d3ac964988ce1.tar.gz sequelpro-f77f8715cf1bcc8811804008fc5d3ac964988ce1.tar.bz2 sequelpro-f77f8715cf1bcc8811804008fc5d3ac964988ce1.zip |
Some changes suggested in PR #2606 to improve MySQL 5.8 handling
Diffstat (limited to 'Source/SPTablesList.m')
-rw-r--r-- | Source/SPTablesList.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPTablesList.m b/Source/SPTablesList.m index 77817040..3cc8ae3a 100644 --- a/Source/SPTablesList.m +++ b/Source/SPTablesList.m @@ -231,6 +231,7 @@ static NSString *SPDuplicateTable = @"SPDuplicateTable"; // views; on MySQL versions >= 5.0.02 select the "full" list to also select the table type column. theResult = [mySQLConnection queryString:@"SHOW /*!50002 FULL*/ TABLES"]; [theResult setDefaultRowReturnType:SPMySQLResultRowAsArray]; + [theResult setReturnDataAsStrings:YES]; // MySQL 5.8 (beta) seems to return Table_type as data (see PR #2606) if ([theResult numberOfFields] == 1) { for (NSArray *eachRow in theResult) { [tables addObject:[eachRow objectAtIndex:0]]; |