aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTablesList.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2016-11-01 19:00:30 +0100
committerMax <post@wickenrode.com>2016-11-01 19:00:30 +0100
commitf77f8715cf1bcc8811804008fc5d3ac964988ce1 (patch)
treed1954e726cb160790ba5ceca5f414d03da671e00 /Source/SPTablesList.m
parentee5e4db6cf7f35e9802d25bc413aa74221bed371 (diff)
downloadsequelpro-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.m1
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]];