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

« back to all changes in this revision

Viewing changes to test/bindxfer.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:
11
11
# This file implements regression tests for SQLite library.  The
12
12
# focus of this script testing the sqlite_transfer_bindings() API.
13
13
#
14
 
# $Id: bindxfer.test,v 1.2 2006/01/03 00:33:50 drh Exp $
 
14
# $Id: bindxfer.test,v 1.5 2008/03/17 16:23:27 drh Exp $
15
15
#
16
16
 
17
17
set testdir [file dirname $argv0]
67
67
do_test bindxfer-1.8 {
68
68
  set VALUES
69
69
} {one two {}}
 
70
do_test bindxfer-1.9-misuse {
 
71
  catch {sqlite3_finalize $VM1}
 
72
  catch {sqlite3_finalize $VM2}
 
73
  sqlite3_transfer_bindings $VM1 $VM2
 
74
} 21 ;# SQLITE_MISUSE
 
75
do_test bindxfer-1.10 {
 
76
  set VM1 [sqlite3_prepare $DB {SELECT ?, ?, ?} -1 TAIL]
 
77
  set VM2 [sqlite3_prepare $DB {SELECT ?, ?, ?, ?} -1 TAIL]
 
78
  sqlite3_transfer_bindings $VM1 $VM2
 
79
} 1  ;# SQLITE_ERROR
70
80
catch {sqlite3_finalize $VM1}
71
81
catch {sqlite3_finalize $VM2}
72
82
 
 
83
 
73
84
finish_test