diff options
author | drh <drh@noemail.net> | 2001-11-09 13:41:09 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2001-11-09 13:41:09 +0000 |
commit | ce927065c21c89a019ff8601da8ae64b473f048d (patch) | |
tree | e6f545fefbdce72d8e5146c0349a9fc59650ffe8 /src/test3.c | |
parent | 487ab3ca18834979fe1a3e08ba03296caa2b518e (diff) | |
download | sqlite-ce927065c21c89a019ff8601da8ae64b473f048d.tar.gz sqlite-ce927065c21c89a019ff8601da8ae64b473f048d.zip |
Bug fixes. (CVS 306)
FossilOrigin-Name: 84997fda33fd6ce93b821d3da3a7251cf60e06ec
Diffstat (limited to 'src/test3.c')
-rw-r--r-- | src/test3.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test3.c b/src/test3.c index 978631159..54f946269 100644 --- a/src/test3.c +++ b/src/test3.c @@ -13,7 +13,7 @@ ** is not included in the SQLite library. It is used for automated ** testing of the SQLite library. ** -** $Id: test3.c,v 1.12 2001/09/23 02:35:53 drh Exp $ +** $Id: test3.c,v 1.13 2001/11/09 13:41:10 drh Exp $ */ #include "sqliteInt.h" #include "pager.h" @@ -589,6 +589,8 @@ static int btree_move_to( Tcl_AppendResult(interp, errorName(rc), 0); return TCL_ERROR; } + if( res<0 ) res = -1; + if( res>0 ) res = 1; sprintf(zBuf,"%d",res); Tcl_AppendResult(interp, zBuf, 0); return SQLITE_OK; |