diff options
author | drh <> | 2023-09-05 15:03:23 +0000 |
---|---|---|
committer | drh <> | 2023-09-05 15:03:23 +0000 |
commit | 5a05a68315c7f283dfccb89a2cb9bc6af9af16a2 (patch) | |
tree | dec39d41ad91a76feca39cf8be2de63758a60cd1 /src/main.c | |
parent | dd24b1c8a14f11587c3ea61142fd76ceaff912bb (diff) | |
download | sqlite-5a05a68315c7f283dfccb89a2cb9bc6af9af16a2.tar.gz sqlite-5a05a68315c7f283dfccb89a2cb9bc6af9af16a2.zip |
Fix a few SQLITE_MISUSE returns so that they call sqlite3MisuseError().
FossilOrigin-Name: 93f74490faf8cc07e107afdab6737c6e5141ae1f01a05142bfcede2dd1b2ba4e
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index b8f262261..b6d31c1c5 100644 --- a/src/main.c +++ b/src/main.c @@ -2473,7 +2473,7 @@ int sqlite3_wal_checkpoint_v2( if( eMode<SQLITE_CHECKPOINT_PASSIVE || eMode>SQLITE_CHECKPOINT_TRUNCATE ){ /* EVIDENCE-OF: R-03996-12088 The M parameter must be a valid checkpoint ** mode: */ - return SQLITE_MISUSE; + return SQLITE_MISUSE_BKPT; } sqlite3_mutex_enter(db->mutex); |