aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeapi.c
diff options
context:
space:
mode:
authordrh <>2023-09-05 15:03:23 +0000
committerdrh <>2023-09-05 15:03:23 +0000
commit5a05a68315c7f283dfccb89a2cb9bc6af9af16a2 (patch)
treedec39d41ad91a76feca39cf8be2de63758a60cd1 /src/vdbeapi.c
parentdd24b1c8a14f11587c3ea61142fd76ceaff912bb (diff)
downloadsqlite-5a05a68315c7f283dfccb89a2cb9bc6af9af16a2.tar.gz
sqlite-5a05a68315c7f283dfccb89a2cb9bc6af9af16a2.zip
Fix a few SQLITE_MISUSE returns so that they call sqlite3MisuseError().
FossilOrigin-Name: 93f74490faf8cc07e107afdab6737c6e5141ae1f01a05142bfcede2dd1b2ba4e
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r--src/vdbeapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index 79b5de9f0..1213dbe6d 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -907,7 +907,7 @@ static int valueFromValueList(
ValueList *pRhs;
*ppOut = 0;
- if( pVal==0 ) return SQLITE_MISUSE;
+ if( pVal==0 ) return SQLITE_MISUSE_BKPT;
if( (pVal->flags & MEM_Dyn)==0 || pVal->xDel!=sqlite3VdbeValueListFree ){
return SQLITE_ERROR;
}else{
@@ -1508,7 +1508,7 @@ static int vdbeUnbind(Vdbe *p, unsigned int i){
}
sqlite3_mutex_enter(p->db->mutex);
if( p->eVdbeState!=VDBE_READY_STATE ){
- sqlite3Error(p->db, SQLITE_MISUSE);
+ sqlite3Error(p->db, SQLITE_MISUSE_BKPT);
sqlite3_mutex_leave(p->db->mutex);
sqlite3_log(SQLITE_MISUSE,
"bind on a busy prepared statement: [%s]", p->zSql);