aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-07-15 00:27:34 +0000
committerdrh <drh@noemail.net>2008-07-15 00:27:34 +0000
commit85e9e22b336b53736f2186bcf734e28dac2cac3b (patch)
tree975085c23c2816115edc0e2751b76b5c78318bfc /src
parentc2c66a030d1bc9d75a06bb3d131f1559fea5d663 (diff)
downloadsqlite-85e9e22b336b53736f2186bcf734e28dac2cac3b.tar.gz
sqlite-85e9e22b336b53736f2186bcf734e28dac2cac3b.zip
Increased test coverage. (CVS 5414)
FossilOrigin-Name: 7cf91e08c08ce515c24c738c7d079f5b81eebee6
Diffstat (limited to 'src')
-rw-r--r--src/printf.c4
-rw-r--r--src/select.c4
-rw-r--r--src/test_btree.c4
3 files changed, 8 insertions, 4 deletions
diff --git a/src/printf.c b/src/printf.c
index 3eb853b0a..5935f97e4 100644
--- a/src/printf.c
+++ b/src/printf.c
@@ -5,7 +5,7 @@
** an historical reference. Most of the "enhancements" have been backed
** out so that the functionality is now the same as standard printf().
**
-** $Id: printf.c,v 1.91 2008/07/14 12:52:53 drh Exp $
+** $Id: printf.c,v 1.92 2008/07/15 00:27:35 drh Exp $
**
**************************************************************************
**
@@ -892,7 +892,7 @@ char *sqlite3_snprintf(int n, char *zBuf, const char *zFormat, ...){
return z;
}
-#if defined(SQLITE_TEST) || defined(SQLITE_DEBUG) || defined(SQLITE_MEMDEBUG)
+#if defined(SQLITE_DEBUG)
/*
** A version of printf() that understands %lld. Used for debugging.
** The printf() built into some versions of windows does not understand %lld
diff --git a/src/select.c b/src/select.c
index 56ede613c..30b9ddeb3 100644
--- a/src/select.c
+++ b/src/select.c
@@ -12,7 +12,7 @@
** This file contains C code routines that are called by the parser
** to handle SELECT statements in SQLite.
**
-** $Id: select.c,v 1.455 2008/07/11 21:02:54 drh Exp $
+** $Id: select.c,v 1.456 2008/07/15 00:27:35 drh Exp $
*/
#include "sqliteInt.h"
@@ -2281,6 +2281,7 @@ static int generateOutputSubroutine(
break;
}
+#if 0 /* Never occurs on an ORDER BY query */
/* If any row exist in the result set, record that fact and abort.
*/
case SRT_Exists: {
@@ -2288,6 +2289,7 @@ static int generateOutputSubroutine(
/* The LIMIT clause will terminate the loop for us */
break;
}
+#endif
/* If this is a scalar select that is part of an expression, then
** store the results in the appropriate memory cell and break out
diff --git a/src/test_btree.c b/src/test_btree.c
index 1b33ef9b0..006df8152 100644
--- a/src/test_btree.c
+++ b/src/test_btree.c
@@ -13,7 +13,7 @@
** is not included in the SQLite library. It is used for automated
** testing of the SQLite library.
**
-** $Id: test_btree.c,v 1.5 2008/07/11 21:02:54 drh Exp $
+** $Id: test_btree.c,v 1.6 2008/07/15 00:27:35 drh Exp $
*/
#include "btreeInt.h"
#include <tcl.h>
@@ -48,6 +48,7 @@ int sqlite3BtreeSharedCacheReport(
** Print debugging information about all cursors to standard output.
*/
void sqlite3BtreeCursorList(Btree *p){
+#ifdef SQLITE_DEBUG
BtCursor *pCur;
BtShared *pBt = p->pBt;
for(pCur=pBt->pCursor; pCur; pCur=pCur->pNext){
@@ -59,6 +60,7 @@ void sqlite3BtreeCursorList(Btree *p){
(pCur->eState==CURSOR_VALID) ? "" : " eof"
);
}
+#endif
}