diff --git a/ChangeLog b/ChangeLog index 3987b5b96..f8141a64d 100755 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,9 @@ $Source$ * Documentation.html: Fixes thanks to Matt LaPlante - cyberdog3k. - Fix Wikipedia URLs (patch #1568498). - Fix duplicate ids (patch #1568504). + * tbl_replace.php, libraries/config.default.php: Add support for UTC_DATE, + UTC_TIME and UTC_TIMESTAMP functions, based on patch #1563585, thanks to + Alexander Schuch - ci-dev. 2006-10-03 Marc Delisle ### 2.9.0.2 released from MAINT_2_9_0 diff --git a/libraries/config.default.php b/libraries/config.default.php index c524ad97b..f90c80cab 100644 --- a/libraries/config.default.php +++ b/libraries/config.default.php @@ -701,6 +701,9 @@ if ($cfg['ShowFunctionFields']) { 'SUM', 'CURDATE', 'CURTIME', + 'UTC_DATE', + 'UTC_TIME', + 'UTC_TIMESTAMP', 'FROM_DAYS', 'FROM_UNIXTIME', 'PERIOD_ADD', @@ -771,6 +774,9 @@ if ($cfg['ShowFunctionFields']) { 'PERIOD_DIFF', 'TO_DAYS', 'UNIX_TIMESTAMP', + 'UTC_DATE', + 'UTC_TIME', + 'UTC_TIMESTAMP', 'WEEKDAY' ), diff --git a/tbl_replace.php b/tbl_replace.php index cea073715..4a88ca6cf 100644 --- a/tbl_replace.php +++ b/tbl_replace.php @@ -162,7 +162,7 @@ foreach ($loop_array AS $primary_key_index => $enc_primary_key) { $cur_value = $val . ', '; } elseif (preg_match('@^(UNIX_TIMESTAMP)$@', $me_funcs[$encoded_key]) && $val != '\'\'') { $cur_value = $me_funcs[$encoded_key] . '(' . $val . '), '; - } elseif (preg_match('@^(NOW|CURDATE|CURTIME|UNIX_TIMESTAMP|RAND|USER|LAST_INSERT_ID)$@', $me_funcs[$encoded_key])) { + } elseif (preg_match('@^(NOW|CURDATE|CURTIME|UTC_DATE|UTC_TIME|UTC_TIMESTAMP|UNIX_TIMESTAMP|RAND|USER|LAST_INSERT_ID)$@', $me_funcs[$encoded_key])) { $cur_value = $me_funcs[$encoded_key] . '(), '; } else { $cur_value = $me_funcs[$encoded_key] . '(' . $val . '), ';