From 4e0379461da042cf14a0e5ee5f48929b2c26f0b3 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 20 Mar 2005 12:14:42 +0000 Subject: [PATCH] do not add ON UPDATE CURRENT_TIMESTAMP twice --- ChangeLog | 1 + tbl_properties.inc.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b81118a09d..8ad41c6014 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2005-03-20 Marc Delisle * lang/spanish: Updated, thanks to Daniel Hinostroza (hinostroza). + * tbl_properties.inc.php: do not add ON UPDATE CURRENT_TIMESTAMP twice 2005-03-19 Alexander M. Turek * lang/german-*.inc.php: Translations #1120157 (bad translation of diff --git a/tbl_properties.inc.php b/tbl_properties.inc.php index a3b7ba5433..83b6a3166b 100644 --- a/tbl_properties.inc.php +++ b/tbl_properties.inc.php @@ -331,7 +331,7 @@ for ($i = 0 ; $i < $num_fields; $i++) { } // Dynamically add ON UPDATE CURRENT_TIMESTAMP to the possible attributes - if (PMA_MYSQL_INT_VERSION >= 40102) { + if (PMA_MYSQL_INT_VERSION >= 40102 && !in_array('ON UPDATE CURRENT_TIMESTAMP', $cfg['AttributeTypes'])) { $cfg['AttributeTypes'][] = 'ON UPDATE CURRENT_TIMESTAMP'; }