Add support for UTC_DATE, UTC_TIME and UTC_TIMESTAMP functions, based on patch #1563585, thanks to Alexander Schuch - ci-dev.
This commit is contained in:
@@ -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 <lem9@users.sourceforge.net>
|
||||
### 2.9.0.2 released from MAINT_2_9_0
|
||||
|
@@ -705,6 +705,9 @@ if ($cfg['ShowFunctionFields']) {
|
||||
'SUM',
|
||||
'CURDATE',
|
||||
'CURTIME',
|
||||
'UTC_DATE',
|
||||
'UTC_TIME',
|
||||
'UTC_TIMESTAMP',
|
||||
'FROM_DAYS',
|
||||
'FROM_UNIXTIME',
|
||||
'PERIOD_ADD',
|
||||
@@ -775,6 +778,9 @@ if ($cfg['ShowFunctionFields']) {
|
||||
'PERIOD_DIFF',
|
||||
'TO_DAYS',
|
||||
'UNIX_TIMESTAMP',
|
||||
'UTC_DATE',
|
||||
'UTC_TIME',
|
||||
'UTC_TIMESTAMP',
|
||||
'WEEKDAY'
|
||||
),
|
||||
|
||||
|
@@ -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 . '), ';
|
||||
|
Reference in New Issue
Block a user