note 14944 added to function.mysql-pconnect.php

From: Date: Wed, 22 Aug 2001 09:37:23 +0000
Subject: note 14944 added to function.mysql-pconnect.php
Groups: php.notes 
Request: Send a blank email to php-notes+get-16978@lists.php.net to get a copy of this message
Beware that mysql does not consider the selected database a part of the persistent connection. Try this: open persistent connection handle a select database x open persistent connection handle b select database y perform query q using handle a You'd expect query q to use database x, in fact mysql will use database y (because it was selected last). Of course, a quick workaround is selecting the database before each query. However, the manual is contradictory about this (see persistent connections section). For more information see the discussion on bug #12885. Stefan http://www.php.net/manual/en/function.mysql-pconnect.php

« previous php.notes (#16978) next »