Changeset 6581 for branches/2.1/include
- Timestamp:
- Jun 22, 2010, 11:19:17 PM (14 years ago)
- Location:
- branches/2.1/include/dblayer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/dblayer/functions_pdo-sqlite.inc.php
r6579 r6581 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 -
branches/2.1/include/dblayer/functions_pgsql.inc.php
r6579 r6581 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 -
branches/2.1/include/dblayer/functions_sqlite.inc.php
r6579 r6581 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.