aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-03-19 19:51:00 +0100
committerMax <post@wickenrode.com>2014-03-19 19:51:00 +0100
commitf9837de31479152d8c29f06222bac3f5541b60b3 (patch)
treee84021b72921740b3b7799e7d0f7d9e8bb1ebc00 /Source/SPTableData.m
parent2645c9480332d8dde088e09a57504cdd26a541b1 (diff)
downloadsequelpro-f9837de31479152d8c29f06222bac3f5541b60b3.tar.gz
sequelpro-f9837de31479152d8c29f06222bac3f5541b60b3.tar.bz2
sequelpro-f9837de31479152d8c29f06222bac3f5541b60b3.zip
Add basic support for CURRENT_TIMESTAMP in DATETIME columns (MySQL 5.6.5)
See #1867
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index e4945305..5158d4be 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -1343,7 +1343,7 @@
[detailParser release];
definitionPartsIndex++;
- // Special timestamp case - Whether fields are set to update the current timestamp
+ // Special timestamp/datetime case - Whether fields are set to update the current timestamp
} else if ([detailString isEqualToString:@"ON"] && (definitionPartsIndex + 2 < partsArrayLength)
&& [[NSArrayObjectAtIndex(definitionParts, definitionPartsIndex+1) uppercaseString] isEqualToString:@"UPDATE"]
&& [[NSArrayObjectAtIndex(definitionParts, definitionPartsIndex+2) uppercaseString] isEqualToString:@"CURRENT_TIMESTAMP"]) {