cvs: php4 /pear/DB oci8.php

From: Date: Thu, 01 Nov 2001 08:54:25 +0000
Subject: cvs: php4 /pear/DB oci8.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1224@lists.php.net to get a copy of this message
cox Thu Nov 1 03:54:25 2001 EDT Modified files: /php4/pear/DB oci8.php Log: support for multiple columns and lines for the emulated numRows() (contributed by Paul Edmondson <paul@yospace.com>) Index: php4/pear/DB/oci8.php diff -u php4/pear/DB/oci8.php:1.33 php4/pear/DB/oci8.php:1.34 --- php4/pear/DB/oci8.php:1.33 Wed Oct 31 10:08:53 2001 +++ php4/pear/DB/oci8.php Thu Nov 1 03:54:25 2001 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: oci8.php,v 1.33 2001/10/31 15:08:53 cox Exp $ +// $Id: oci8.php,v 1.34 2001/11/01 08:54:25 cox Exp $ // // Database independent query interface definition for PHP's Oracle 8 // call-interface extension. @@ -268,7 +268,7 @@ // emulate numRows for Oracle. yuck. if ($this->options['optimize'] == 'portability' && $result === $this->last_stmt) { - $countquery = preg_replace('/^\s*SELECT\s+(.*)\s+FROM\s+/i', + $countquery = preg_replace('/^\s*SELECT\s+(.*?)[,\s].*\s+FROM\s+/is', 'SELECT COUNT(\1) FROM ', $this->last_query); $save_query = $this->last_query; @@ -504,6 +504,7 @@ } return $query; } + // }}} // {{{ nextId()

« previous php.pear.cvs (#1224) next »