php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #61266
Patch unittest_pg_affected_rows_returns_0_after_select revision 2012-03-03 13:45 UTC by ben dot pineau at gmail dot com
Patch pg_affected_rows_returns_0_after_select.patch revision 2012-03-03 13:43 UTC by ben dot pineau at gmail dot com

Patch unittest_pg_affected_rows_returns_0_after_select for Documentation problem Bug #61266

Patch version 2012-03-03 13:45 UTC

Return to Bug #61266 | Download this patch
Patch Revisions:

Developer: ben.pineau@gmail.com

--TEST--
pg_affected_rows() should return 0 after a SELECT
--SKIPIF--
<?php include("skipif.inc"); ?>
--FILE--
<?php
include('config.inc');
$db = pg_connect($conn_str);
$qu = pg_query($db, "SELECT * from generate_series(1, 42);");

var_dump(pg_affected_rows($qu));
?>
--EXPECT--
int(0)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC