cvs: pear /Structures_DataGrid package2-ds-dbquery.xml /Structures_DataGrid/DataGrid/DataSource DBQuery.php
| From: | Olivier Guilyardi | Date: | Tue, 23 Jan 2007 15:19:36 +0000 |
| Subject: | cvs: pear /Structures_DataGrid package2-ds-dbquery.xml /Structures_DataGrid/DataGrid/DataSource DBQuery.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-44358@lists.php.net to get a copy of this message | ||
olivierg Tue Jan 23 15:19:36 2007 UTC
Modified files:
/pear/Structures_DataGrid package2-ds-dbquery.xml
/pear/Structures_DataGrid/DataGrid/DataSource DBQuery.php
Log:
fix bug#9871: corrected LIMIT dropping regex + prepare for release
http://cvs.php.net/viewvc.cgi/pear/Structures_DataGrid/package2-ds-dbquery.xml?r1=1.13&r2=1.14&diff_format=u
Index: pear/Structures_DataGrid/package2-ds-dbquery.xml
diff -u pear/Structures_DataGrid/package2-ds-dbquery.xml:1.13
pear/Structures_DataGrid/package2-ds-dbquery.xml:1.14
--- pear/Structures_DataGrid/package2-ds-dbquery.xml:1.13 Sat Dec 16 15:54:43 2006
+++ pear/Structures_DataGrid/package2-ds-dbquery.xml Tue Jan 23 15:19:36 2007
@@ -27,10 +27,10 @@
<email>wiesemann@php.net</email>
<active>yes</active>
</lead>
- <date>2006-12-16</date>
- <time>17:00:00</time>
+ <date>2006-01-23</date>
+ <time>16:00:00</time>
<version>
- <release>0.1.4</release>
+ <release>0.1.5</release>
<api>0.1.1</api>
</version>
<stability>
@@ -39,10 +39,8 @@
</stability>
<license uri="http://opensource.org/licenses/bsd-license.php">New
BSD</license>
<notes>
-- Bug #9342: fix records count for UNION queries
- (thanks to HarrySchool, HarrySchool at netscape dot net)
-- small optimizations for streaming support
-- this package is now licensed under the New BSD license
+- Bug #9871: regex fix for correctly removing the LIMIT statement
+ (thanks Michael Mauch, michael dot mauch at gmx dot de)
</notes>
<contents>
<dir name="/">
http://cvs.php.net/viewvc.cgi/pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php?r1=1.23&r2=1.24&diff_format=u
Index: pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php
diff -u pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.23
pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.24
--- pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php:1.23 Mon Jan 1 10:31:18 2007
+++ pear/Structures_DataGrid/DataGrid/DataSource/DBQuery.php Tue Jan 23 15:19:36 2007
@@ -35,9 +35,9 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * CSV file id: $Id: DBQuery.php,v 1.23 2007/01/01 10:31:18 wiesemann Exp $
+ * CSV file id: $Id: DBQuery.php,v 1.24 2007/01/23 15:19:36 olivierg Exp $
*
- * @version $Revision: 1.23 $
+ * @version $Revision: 1.24 $
* @category Structures
* @package Structures_DataGrid_DataSource_DBQuery
* @license http://opensource.org/licenses/bsd-license.php
New BSD License
@@ -78,7 +78,7 @@
* If you want to give a default sorting statement that is only used if there is
* no sorting query in the HTTP request, then use $datagrid->setDefaultSort().
*
- * @version $Revision: 1.23 $
+ * @version $Revision: 1.24 $
* @author Andrew S. Nagy <asnagy@php.net>
* @author Mark Wiesemann <wiesemann@php.net>
* @author Olivier Guilyardi <olivier@samalyse.com>
@@ -202,7 +202,7 @@
$query = $this->_query;
// drop LIMIT statement
- $query = preg_replace('#LIMIT\s.*$#isD', '', $query);
+ $query = preg_replace('#\sLIMIT\s.*$#isD', ' ', $query);
// if we have a sort string, we need to add it to the query string
if ($sortString != '') {