- Timestamp:
- Jun 22, 2010, 11:18:42 PM (14 years ago)
- Location:
- trunk/include/dblayer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/dblayer/functions_pdo-sqlite.inc.php
r6578 r6580 414 414 function pwg_db_concat_ws($array, $separator) 415 415 { 416 $glue = sprintf(' || \'%s\' || ', $separator); 417 418 return implode($array, $glue); 416 return implode($array, ' || \''.$separator.'\' || '); 419 417 } 420 418 -
trunk/include/dblayer/functions_pgsql.inc.php
r6578 r6580 450 450 function pwg_db_concat($array) 451 451 { 452 $string = implode($array, ','); 453 return 'ARRAY_TO_STRING(ARRAY['.$string.'])'; 452 return implode($array, ' || '); 454 453 } 455 454 456 455 function pwg_db_concat_ws($array, $separator) 457 456 { 458 $string = implode($array, ','); 459 return 'ARRAY_TO_STRING(ARRAY['.$string.'],\''.$separator.'\')'; 457 return implode($array, ' || \''.$separator.'\' || '); 460 458 } 461 459 -
trunk/include/dblayer/functions_sqlite.inc.php
r6578 r6580 426 426 function pwg_db_concat_ws($array, $separator) 427 427 { 428 $glue = sprintf(' || \'%s\' || ', $separator); 429 430 return implode($array, $glue); 428 return implode($array, ' || \''.$separator.'\' || '); 431 429 } 432 430
Note: See TracChangeset
for help on using the changeset viewer.