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/15pg_delete.phpt ('PostgreSQL pg_delete()')

Script

1: <?php
2: error_reporting
(E_ALL);
3:
4: include 
'config.inc';
5:
6:
$db pg_connect($conn_str);
7:
8:
$fields = array('num'=>'1234''str'=>'XXX''bin'=>'YYY');
9:
$ids = array('num'=>'1234');
10: echo 
pg_delete($db$table_name$idsPGSQL_DML_STRING)."\n";
11: echo 
pg_delete($db$table_name$idsPGSQL_DML_STRING|PGSQL_DML_ESCAPE)."\n";
12: if (!
pg_delete($db$table_name$ids)) {
13:     echo 
"Error\n";
14: }
15: else {
16:     echo 
"Ok\n";
17: }
18:
?>
19:

Expected

DELETE FROM "php_pgsql_test" WHERE "num"=1234;
DELETE FROM "php_pgsql_test" WHERE "num"='1234';
Ok

Output

DELETE FROM "php_pgsql_test" WHERE "num"=1234;
DELETE FROM "php_pgsql_test" WHERE "num='1234';
Ok

Diff

002+ DELETE FROM "php_pgsql_test" WHERE "num='1234';
002- DELETE FROM "php_pgsql_test" WHERE "num"='1234';

 

Generated at Sat, 13 Dec 2014 06:16:29 +0000 (8 days ago)

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