PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/pgsql/tests/14pg_update.phpt ('PostgreSQL pg_update()')

Script

1: <?php
2: error_reporting
(E_ALL);
3:
4: include 
'config.inc';
5:
6:
$db pg_connect($conn_str);
7:
$fields = array('num'=>'1234''str'=>'ABC''bin'=>'XYZ');
8:
$ids = array('num'=>'1234');
9:
10:
pg_update($db$table_name$fields$ids) or print "Error in test 1\n";
11: echo 
pg_update($db$table_name$fields$idsPGSQL_DML_STRING)."\n";
12: echo 
pg_update($db$table_name$fields$idsPGSQL_DML_STRING|PGSQL_DML_ESCAPE)."\n";
13:
14: echo 
"Ok\n";
15:
?>
16:

Expected

UPDATE "php_pgsql_test" SET "num"=1234,"str"=E'ABC',"bin"=E'XYZ' WHERE "num"=1234;
Ok

Output

UPDATE "php_pgsql_test" SET "num"=1234,"str"=E'ABC',"bin"=E'XYZ' WHERE "num"=1234;
UPDATE "php_pgsql_test" SET "num='1234',"str='ABC',"bin='XYZ' WHERE "num='1234';
Ok

Diff

002+ UPDATE "php_pgsql_test" SET "num='1234',"str='ABC',"bin='XYZ' WHERE "num='1234';

 

Generated at Tue, 22 Jul 2014 01:33:26 +0000 (8 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.