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.
|
* Documentation.html: Fixes thanks to Matt LaPlante - cyberdog3k.
|
||||||
- Fix Wikipedia URLs (patch #1568498).
|
- Fix Wikipedia URLs (patch #1568498).
|
||||||
- Fix duplicate ids (patch #1568504).
|
- 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>
|
2006-10-03 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
### 2.9.0.2 released from MAINT_2_9_0
|
### 2.9.0.2 released from MAINT_2_9_0
|
||||||
|
@@ -701,6 +701,9 @@ if ($cfg['ShowFunctionFields']) {
|
|||||||
'SUM',
|
'SUM',
|
||||||
'CURDATE',
|
'CURDATE',
|
||||||
'CURTIME',
|
'CURTIME',
|
||||||
|
'UTC_DATE',
|
||||||
|
'UTC_TIME',
|
||||||
|
'UTC_TIMESTAMP',
|
||||||
'FROM_DAYS',
|
'FROM_DAYS',
|
||||||
'FROM_UNIXTIME',
|
'FROM_UNIXTIME',
|
||||||
'PERIOD_ADD',
|
'PERIOD_ADD',
|
||||||
@@ -771,6 +774,9 @@ if ($cfg['ShowFunctionFields']) {
|
|||||||
'PERIOD_DIFF',
|
'PERIOD_DIFF',
|
||||||
'TO_DAYS',
|
'TO_DAYS',
|
||||||
'UNIX_TIMESTAMP',
|
'UNIX_TIMESTAMP',
|
||||||
|
'UTC_DATE',
|
||||||
|
'UTC_TIME',
|
||||||
|
'UTC_TIMESTAMP',
|
||||||
'WEEKDAY'
|
'WEEKDAY'
|
||||||
),
|
),
|
||||||
|
|
||||||
|
@@ -162,7 +162,7 @@ foreach ($loop_array AS $primary_key_index => $enc_primary_key) {
|
|||||||
$cur_value = $val . ', ';
|
$cur_value = $val . ', ';
|
||||||
} elseif (preg_match('@^(UNIX_TIMESTAMP)$@', $me_funcs[$encoded_key]) && $val != '\'\'') {
|
} elseif (preg_match('@^(UNIX_TIMESTAMP)$@', $me_funcs[$encoded_key]) && $val != '\'\'') {
|
||||||
$cur_value = $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] . '(), ';
|
$cur_value = $me_funcs[$encoded_key] . '(), ';
|
||||||
} else {
|
} else {
|
||||||
$cur_value = $me_funcs[$encoded_key] . '(' . $val . '), ';
|
$cur_value = $me_funcs[$encoded_key] . '(' . $val . '), ';
|
||||||
|
Reference in New Issue
Block a user