ifx.php - getListOf('databases')

From: Date: Wed, 21 Jan 2004 20:07:52 +0000
Subject: ifx.php - getListOf('databases')
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-25222@lists.php.net to get a copy of this message
Hi all, I was looking at how to implement this function, and hit a snag. In common, getListOf() calls getSpecialQuery(), which may return either an SQL string, or a result set. In Informix, I need to call sqgetdbs() in ifx.ec, which returns a list of C strings. This would be called from ifx.php ... but, how can ifx.php return this list looking like a result set? Should it construct a result object to simulate the expected behaviour? Or is a change in common called for? (E.g. allowing getSpecialQuery to return an array as a third option) Any thoughts/suggestions appreciated. Kind regards, Peter

« previous php.pear.dev (#25222) next »