diff options
author | Max <post@wickenrode.com> | 2017-09-03 19:24:16 +0200 |
---|---|---|
committer | Max <post@wickenrode.com> | 2017-09-03 19:24:16 +0200 |
commit | e19029b0b1f8d6cd81530993efbe78b84bad0337 (patch) | |
tree | d33bebf89f5c96c19880ef969d93afff003c40bc /Source | |
parent | 2e809e64e4f2a22efc68ec9ba7afa6489218cf3d (diff) | |
download | sequelpro-e19029b0b1f8d6cd81530993efbe78b84bad0337.tar.gz sequelpro-e19029b0b1f8d6cd81530993efbe78b84bad0337.tar.bz2 sequelpro-e19029b0b1f8d6cd81530993efbe78b84bad0337.zip |
MariaDB 10: SP used a case sensitive check for „CURRENT_TIMESTAMP“ which failed on recent MariaDB versions due to changes to the „SHOW CREATE TABLE“ output (#2876)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPConstants.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPConstants.m b/Source/SPConstants.m index aba9b83e..1f27e5f1 100644 --- a/Source/SPConstants.m +++ b/Source/SPConstants.m @@ -436,8 +436,8 @@ NSString *SPBundleShellVariableSelectedTextRange = @"SP_SELECTED_TEXT 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 |