Skip to content

Commit

Permalink
MariaDB 10: SP used a case sensitive check for „CURRENT_TIMESTAMP“ wh…
Browse files Browse the repository at this point in the history
…ich failed on recent MariaDB versions due to changes to the „SHOW CREATE TABLE“ output (#2876)
  • Loading branch information
dmoagx committed Sep 3, 2017
1 parent 2e809e6 commit e19029b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/SPConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,8 @@
NSString *SPBundleShellVariableUsedQueryForTable = @"SP_USED_QUERY_FOR_TABLE";

#define OWS @"\\s*" /* optional whitespace */
// CURRENT_TIMESTAMP [ ( [n] ) ]
NSString *SPCurrentTimestampPattern = (@"^" OWS @"CURRENT_TIMESTAMP" @"(?:" OWS @"\\(" OWS @"(\\d*)" OWS @"\\)" @")?" OWS @"$");
// CURRENT_TIMESTAMP [ ( [n] ) ]
NSString *SPCurrentTimestampPattern = (@"(?i)^" OWS @"CURRENT_TIMESTAMP" @"(?:" OWS @"\\(" OWS @"(\\d*)" OWS @"\\)" @")?" OWS @"$");
#undef OWS

// URL scheme
Expand Down

0 comments on commit e19029b

Please sign in to comment.