1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-27 20:41:58 +03:00

Change sqlite3_busy_timeout so that it checks for an invalid database

pointer. (CVS 3320)

FossilOrigin-Name: 225a9597b21bde7666451fc2eb7695dc35c438bb
This commit is contained in:
drh
2006-07-06 10:59:57 +00:00
parent 72c4d3e7ed
commit 3086765b6f
5 changed files with 52 additions and 12 deletions

View File

@ -13,7 +13,7 @@
# This file implements tests for miscellanous features that were
# left out of other test files.
#
# $Id: misc5.test,v 1.12 2006/02/27 23:19:21 drh Exp $
# $Id: misc5.test,v 1.13 2006/07/06 10:59:58 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -571,4 +571,13 @@ do_test misc5-7.1 {
catchsql $sql
} {1 {parser stack overflow}}
# Check the MISUSE return from sqlitee3_busy_timeout
#
do_test misc5-8.1 {
set DB [sqlite3_connection_pointer db]
db close
sqlite3_busy_timeout $DB 1000
} SQLITE_MISUSE
sqlite3 db test.db
finish_test