~ubuntu-branches/ubuntu/maverick/sqlite3/maverick-updates

« back to all changes in this revision

Viewing changes to test/capi3b.test

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2008-10-01 20:16:18 UTC
  • mfrom: (3.1.20 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081001201618-yfvqqj1qs29wdtcc
Tags: 3.5.9-5
Backport fix for distinct on indexes (closes: #500792).

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# particular the behavior of sqlite3_step() when trying to commit
14
14
# with lock contention.
15
15
#
16
 
# $Id: capi3b.test,v 1.3 2006/01/03 00:33:50 drh Exp $
 
16
# $Id: capi3b.test,v 1.4 2007/08/10 19:46:14 drh Exp $
17
17
#
18
18
 
19
19
set testdir [file dirname $argv0]
20
20
source $testdir/tester.tcl
21
21
 
22
22
 
 
23
# These tests depend on the pager holding changes in cache
 
24
# until it is time to commit.  But that won't happen if the
 
25
# soft-heap-limit is set too low.  So disable the soft heap limit
 
26
# for the duration of this test.
 
27
#
 
28
sqlite3_soft_heap_limit 0
 
29
 
 
30
 
23
31
set DB [sqlite3_connection_pointer db]
24
32
sqlite3 db2 test.db
25
33
set DB2 [sqlite3_connection_pointer db2]
132
140
} {1 2 3 4}
133
141
 
134
142
catch {db2 close}
 
143
 
 
144
sqlite3_soft_heap_limit $soft_limit
135
145
finish_test