Re: [PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Jimmy
Hi Shane, > Actually, I'd be interested to know why the same connection is used for two > connections to the same database? > I'm guessing people could fall over this trying to do, say, unbuffered > queries through one to fetch a huge result set, and normal queries through > another to make chan

Re: [PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Shane Wright
Actually, I'd be interested to know why the same connection is used for two connections to the same database? I'm guessing people could fall over this trying to do, say, unbuffered queries through one to fetch a huge result set, and normal queries through another to make changes Of cours

[PHP] strange behaviour of mysql_pconnect()

2002-01-22 Thread Jimmy
Hi list, I do a small test on mysql_connect() and mysql_pconnect(), and discover a strange behaviour. the output if using mysql_connect(): Resource id #1 Resource id #1 (both resource id are the same, as expected) the output if using mysql_pconnect(): Resource id #1 Resource id #2 (both resou