ID: 44509 Updated by: [EMAIL PROTECTED] Reported By: andre dot baggio at bol dot com dot br -Status: Open +Status: Bogus Bug Type: PostgreSQL related Operating System: Linux hm517 2.6.9-67.0.4.ELsmp # PHP Version: 5.2.5 New Comment:
Thank you for taking the time to report a problem with PHP. Unfortunately you are not using a current version of PHP -- the problem might already be fixed. Please download a new PHP version from http://www.php.net/downloads.php If you are able to reproduce the bug with one of the latest versions of PHP, please change the PHP version on this bug report to the version you tested and change the status back to "Open". Again, thank you for your continued support of PHP. Previous Comments: ------------------------------------------------------------------------ [2008-03-23 04:23:51] andre dot baggio at bol dot com dot br Description: ------------ PHP Version is 5.1.6 PostgreSQL(libpq) Version 8.1.6 Hi, Problem 1: In this code, the part 1 with pg_send_query() stores one record in the DB. (it's ok) the part 2 with the pg_send_prepare() and pg_send_excute() DOESN'T stores the record in the DB. Problem 2: Besides , when I use: pg_send_query($con,"select my_slow_func()"); sending a very slow query, the page takes the same time to be ready, as if it was using pg_query(). but it was supposed that will be fast; It seems that the pg_send_query is been bloking. Reproduce code: --------------- ///part 1 $query = "insert into teste (dt_ini,dt_fim) values ('ggg','hhh')"; $qq = pg_send_query($connrc,$query); /// part 2 $query = "insert into teste (dt_ini,dt_fim) values ('rrrr','tttt')"; pg_send_prepare($connrc, "my_query", $query); if (!pg_connection_busy($connrc) ) pg_send_execute($connrc, "my_query"); Expected result: ---------------- I expected 2 records in the database 'ggg','hhh' 'rrrr','tttt' Problem 2: the page should be ready quickly; Actual result: -------------- Only one record is 'ggg','hhh' Problem 2: the page takes the same time as using pg_query(); ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=44509&edit=1
