Permalink
Browse files

Fix an error where Sequel Pro would crash when loading the list of St…

…ored Procs/Funcs (probably related to MySQL 5.8/8.0)
  • Loading branch information...
dmoagx committed Jun 10, 2017
1 parent 38d40d0 commit d3ac918c1d066800b32e023658aeb75aadef804f
Showing with 2 additions and 1 deletion.
  1. +2 −1 Source/SPTablesList.m
View
@@ -232,7 +232,8 @@ - (IBAction)updateTables:(nullable id)sender
NSString *pQuery = [NSString stringWithFormat:@"SELECT * FROM information_schema.routines WHERE routine_schema = %@ ORDER BY routine_name", [[tableDocumentInstance database] tickQuotedString]];
theResult = [mySQLConnection queryString:pQuery];
[theResult setDefaultRowReturnType:SPMySQLResultRowAsArray];
[theResult setReturnDataAsStrings:YES]; //see tables above
// Check for mysql errors - if information_schema is not accessible for some reasons
// omit adding procedures and functions
if(![mySQLConnection queryErrored] && theResult != nil && [theResult numberOfRows] && [theResult numberOfFields] > 3) {

0 comments on commit d3ac918

Please sign in to comment.