Permalink
Browse files

Blind attempt at fixing another MySQL 8 issue (#2699)

  • Loading branch information...
dmoagx committed Jun 30, 2018
1 parent c541d63 commit e62522430ce74aae0c26932ec4964ff807985f79
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/SPDatabaseStructure.m
@@ -359,6 +359,7 @@ - (void)queryDbStructureWithUserInfo:(NSDictionary *)userInfo
// Retrieve the column details (only those we need so we don't fetch the whole function body which might be huge)
theResult = [mySQLConnection queryString:[NSString stringWithFormat:@"SELECT SPECIFIC_NAME, ROUTINE_TYPE, DTD_IDENTIFIER, IS_DETERMINISTIC, SQL_DATA_ACCESS, SECURITY_TYPE, DEFINER FROM `information_schema`.`ROUTINES` WHERE `ROUTINE_SCHEMA` = %@", [currentDatabase tickQuotedString]]];
[theResult setReturnDataAsStrings:YES]; //TODO workaround for #2700 with mysql 8.0 (see #2699)
[theResult setDefaultRowReturnType:SPMySQLResultRowAsArray];
// Loop through the rows and extract the function details

0 comments on commit e625224

Please sign in to comment.