1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-05 15:55:57 +03:00

Fix a few SQLITE_MISUSE returns so that they call sqlite3MisuseError().

FossilOrigin-Name: 93f74490faf8cc07e107afdab6737c6e5141ae1f01a05142bfcede2dd1b2ba4e
This commit is contained in:
drh
2023-09-05 15:03:23 +00:00
parent dd24b1c8a1
commit 5a05a68315
6 changed files with 16 additions and 16 deletions

View File

@@ -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);