Update database.php
This commit is contained in:
parent
6d5e8beada
commit
ab9e0ad798
|
@ -366,9 +366,9 @@ if(!check_function_exists("get_bind_to_sql_select")) {
|
||||||
|
|
||||||
foreach($setfields as $k=>$v) {
|
foreach($setfields as $k=>$v) {
|
||||||
// concat and delimiter
|
// concat and delimiter
|
||||||
if(!array_keys_empty(array("concat", "delimiter"), $v)) {
|
if(!array_keys_empty("concat", $v)) {
|
||||||
// add to s1a
|
$delimiter = get_value_in_array("delimiter", $v, " ");
|
||||||
$s1a[$k] = sprintf("concat(%s)", implode(sprintf(", '%s', ", $v['delimiter']), $v['concat']));
|
$s1a[$k] = sprintf("concat(%s)", implode(sprintf(", '%s', ", $delimiter), $v['concat']));
|
||||||
}
|
}
|
||||||
|
|
||||||
// use mysql function
|
// use mysql function
|
||||||
|
|
Loading…
Reference in New Issue
Block a user