Changeset 6511 for branches/2.1/include/dblayer/functions_pgsql.inc.php
- Timestamp:
- Jun 9, 2010, 10:26:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/include/dblayer/functions_pgsql.inc.php
r6342 r6511 315 315 } 316 316 } // foreach update 317 } // if mysql_ver or count<X317 } 318 318 else 319 319 { … … 327 327 mass_inserts($temporary_tablename, $all_fields, $datas); 328 328 if ( $flags & MASS_UPDATES_SKIP_EMPTY ) 329 $func_set = create_function('$s , $t', 'return "$s = IFNULL(t2.$s, '.$tablename.'.$s)";');329 $func_set = create_function('$s', 'return "$s = NULLIF(t2.$s, '.$tablename.'.$s)";'); 330 330 else 331 331 $func_set = create_function('$s', 'return "$s = t2.$s";'); … … 344 344 "\n AND ", 345 345 array_map( 346 create_function('$s , $t', 'return "'.$tablename.'.$s = t2.$s";'),346 create_function('$s', 'return "'.$tablename.'.$s = t2.$s";'), 347 347 $dbfields['primary'] 348 348 ) … … 586 586 587 587 // my_error returns (or send to standard output) the message concerning the 588 // error occured for the last mysql query.588 // error occured for the last pgsql query. 589 589 function my_error($header, $die) 590 590 {
Note: See TracChangeset
for help on using the changeset viewer.