apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject svn commit: r657528 - /apr/apr-util/trunk/dbd/apr_dbd_mysql.c
Date Sun, 18 May 2008 10:20:12 GMT
Author: bojan
Date: Sun May 18 03:20:11 2008
New Revision: 657528

URL: http://svn.apache.org/viewvc?rev=657528&view=rev
Log:
Do not seek if rownum is not greater than zero.

Modified:
    apr/apr-util/trunk/dbd/apr_dbd_mysql.c

Modified: apr/apr-util/trunk/dbd/apr_dbd_mysql.c
URL: http://svn.apache.org/viewvc/apr/apr-util/trunk/dbd/apr_dbd_mysql.c?rev=657528&r1=657527&r2=657528&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_mysql.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_mysql.c Sun May 18 03:20:11 2008
@@ -268,7 +268,7 @@
 
     if (res->statement) {
         if (res->random) {
-            if (rownum >= 0) {
+            if (rownum > 0) {
                 mysql_stmt_data_seek(res->statement, (my_ulonglong) --rownum);
             }
         }
@@ -287,7 +287,7 @@
     }
     else {
         if (res->random) {
-            if (rownum >= 0) {
+            if (rownum > 0) {
                 mysql_data_seek(res->res, (my_ulonglong) --rownum);
             }
         }



Mime
View raw message