apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jor...@apache.org
Subject svn commit: r190566 - in /apr/apr-util/trunk: dbd/apr_dbd_sqlite3.c test/Makefile.in test/data/
Date Tue, 14 Jun 2005 10:03:51 GMT
Author: jorton
Date: Tue Jun 14 03:03:51 2005
New Revision: 190566

URL: http://svn.apache.org/viewcvs?rev=190566&view=rev
Log:
* dbd/apr_dbd_sqlite3.c (dbd_sqlite3_select): Initialize retry_count
to zero.  (dbd_sqlite3_get_row): Remove unused variables.
(dbd_sqlite3_query): Remove unused variable.

* test/Makefile.in (CLEAN_TARGETS): Clean up test output.

Modified:
    apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c
    apr/apr-util/trunk/test/Makefile.in
    apr/apr-util/trunk/test/data/   (props changed)

Modified: apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c?rev=190566&r1=190565&r2=190566&view=diff
==============================================================================
--- apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c (original)
+++ apr/apr-util/trunk/dbd/apr_dbd_sqlite3.c Tue Jun 14 03:03:51 2005
@@ -86,7 +86,7 @@
 {
     sqlite3_stmt *stmt = NULL;
     const char *tail = NULL;
-    int i, ret, retry_count;
+    int i, ret, retry_count = 0;
     size_t num_tuples = 0;
     int increment = 0;
     apr_dbd_row_t *row = NULL;
@@ -187,8 +187,8 @@
 
 static int dbd_sqlite3_get_row(apr_pool_t * pool, apr_dbd_results_t * res, apr_dbd_row_t
** rowp, int rownum)
 {
-    int ret, retry_count, i = 0;
-    apr_dbd_row_t *row;
+    int i = 0;
+
     if (rownum == -1) {
         *rowp = res->next_row;
         if (*rowp == 0)
@@ -232,7 +232,7 @@
 {
     sqlite3_stmt *stmt = NULL;
     const char *tail = NULL;
-    int ret, retry_count = 0, length = 0;
+    int ret, length = 0;
     apr_status_t res;
     apr_pool_t *pool;
 

Modified: apr/apr-util/trunk/test/Makefile.in
URL: http://svn.apache.org/viewcvs/apr/apr-util/trunk/test/Makefile.in?rev=190566&r1=190565&r2=190566&view=diff
==============================================================================
--- apr/apr-util/trunk/test/Makefile.in (original)
+++ apr/apr-util/trunk/test/Makefile.in Tue Jun 14 03:03:51 2005
@@ -10,7 +10,7 @@
 APRUTIL_MAJOR_VERSION=@APRUTIL_MAJOR_VERSION@
 TARGET_LIB_PATH = ../lib@APRUTIL_LIBNAME@.la
 
-CLEAN_TARGETS = manyfile.bin testfile.txt
+CLEAN_TARGETS = manyfile.bin testfile.txt data/sqlite*.db
 
 # bring in rules.mk for standard functionality
 @INCLUDE_RULES@

Propchange: apr/apr-util/trunk/test/data/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Jun 14 03:03:51 2005
@@ -1 +1,2 @@
 sqlite2.db
+sqlite3.db



Mime
View raw message