Re: pdo comments

From: Date: Tue, 19 Oct 2004 21:43:19 +0000
Subject: Re: pdo comments
References: 1 2 3 4 5 6  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-1488@lists.php.net to get a copy of this message
Wez Furlong wrote:
PDO won't have buffered queries in the mysql sense; instead we have different cursor types for the statement handle. This isn't completely implemented yet, but the idea is that you will choose a scrollable cursor in the case where you need to be able to jump around the result set.
uhm .. now this doesnt sound as simple as things are now in mysql. this also sounds like people will have to then explictly manage freeing the buffer instead of now where things can happen automatically once no variable refernces the result set. I still think that you are mixing two things that dont have anything to do with eachother and that you are making things less intuitive and less simple. If your argument is correct why bother even having a statement object? MDB actually works fine with prepared queries without one and return result ressources (not objects). With MDB2 I moved to having result object and statement objects and I find it much clearer and also much simpler to prevent unintentional memory leaks. regards, Lukas

« previous php.pecl.dev (#1488) next »