SQLite4
Hex Artifact Content
Not logged in

Artifact 19b60da067e877aa3870dce131cae6c9e4d8e991:


0000: 23 20 32 30 30 31 20 53 65 70 74 65 6d 62 65 72  # 2001 September
0010: 20 31 35 0a 23 0a 23 20 54 68 65 20 61 75 74 68   15.#.# The auth
0020: 6f 72 20 64 69 73 63 6c 61 69 6d 73 20 63 6f 70  or disclaims cop
0030: 79 72 69 67 68 74 20 74 6f 20 74 68 69 73 20 73  yright to this s
0040: 6f 75 72 63 65 20 63 6f 64 65 2e 20 20 49 6e 20  ource code.  In 
0050: 70 6c 61 63 65 20 6f 66 0a 23 20 61 20 6c 65 67  place of.# a leg
0060: 61 6c 20 6e 6f 74 69 63 65 2c 20 68 65 72 65 20  al notice, here 
0070: 69 73 20 61 20 62 6c 65 73 73 69 6e 67 3a 0a 23  is a blessing:.#
0080: 0a 23 20 20 20 20 4d 61 79 20 79 6f 75 20 64 6f  .#    May you do
0090: 20 67 6f 6f 64 20 61 6e 64 20 6e 6f 74 20 65 76   good and not ev
00a0: 69 6c 2e 0a 23 20 20 20 20 4d 61 79 20 79 6f 75  il..#    May you
00b0: 20 66 69 6e 64 20 66 6f 72 67 69 76 65 6e 65 73   find forgivenes
00c0: 73 20 66 6f 72 20 79 6f 75 72 73 65 6c 66 20 61  s for yourself a
00d0: 6e 64 20 66 6f 72 67 69 76 65 20 6f 74 68 65 72  nd forgive other
00e0: 73 2e 0a 23 20 20 20 20 4d 61 79 20 79 6f 75 20  s..#    May you 
00f0: 73 68 61 72 65 20 66 72 65 65 6c 79 2c 20 6e 65  share freely, ne
0100: 76 65 72 20 74 61 6b 69 6e 67 20 6d 6f 72 65 20  ver taking more 
0110: 74 68 61 6e 20 79 6f 75 20 67 69 76 65 2e 0a 23  than you give..#
0120: 0a 23 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  .#**************
0130: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0140: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0150: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a  ****************
0160: 2a 2a 2a 2a 2a 2a 2a 2a 2a 0a 23 20 54 65 73 74  *********.# Test
0170: 20 74 68 61 74 20 69 66 20 73 71 6c 69 74 65 34   that if sqlite4
0180: 5f 70 72 65 70 61 72 65 5f 76 32 28 29 20 69 73  _prepare_v2() is
0190: 20 75 73 65 64 20 74 6f 20 70 72 65 70 61 72 65   used to prepare
01a0: 20 61 20 71 75 65 72 79 2c 20 74 68 65 0a 23 20   a query, the.# 
01b0: 65 72 72 6f 72 2d 6d 65 73 73 61 67 65 20 61 73  error-message as
01c0: 73 6f 63 69 61 74 65 64 20 77 69 74 68 20 61 6e  sociated with an
01d0: 20 73 71 6c 69 74 65 34 5f 73 74 65 70 28 29 20   sqlite4_step() 
01e0: 65 72 72 6f 72 20 69 73 20 61 76 61 69 6c 61 62  error is availab
01f0: 6c 65 0a 23 20 69 6d 6d 65 64 69 61 74 65 6c 79  le.# immediately
0200: 2e 20 57 68 65 72 65 61 73 20 69 66 20 73 71 6c  . Whereas if sql
0210: 69 74 65 34 5f 70 72 65 70 61 72 65 28 29 20 69  ite4_prepare() i
0220: 73 20 75 73 65 64 2c 20 69 74 20 69 73 20 6e 6f  s used, it is no
0230: 74 20 61 76 61 69 6c 61 62 6c 65 0a 23 20 75 6e  t available.# un
0240: 74 69 6c 20 73 71 6c 69 74 65 34 5f 66 69 6e 61  til sqlite4_fina
0250: 6c 69 7a 65 28 29 20 6f 72 20 73 71 6c 69 74 65  lize() or sqlite
0260: 34 5f 72 65 73 65 74 28 29 20 68 61 73 20 62 65  4_reset() has be
0270: 65 6e 20 63 61 6c 6c 65 64 2e 0a 23 0a 0a 73 65  en called..#..se
0280: 74 20 74 65 73 74 64 69 72 20 5b 66 69 6c 65 20  t testdir [file 
0290: 64 69 72 6e 61 6d 65 20 24 61 72 67 76 30 5d 0a  dirname $argv0].
02a0: 73 6f 75 72 63 65 20 24 74 65 73 74 64 69 72 2f  source $testdir/
02b0: 74 65 73 74 65 72 2e 74 63 6c 0a 0a 73 65 74 20  tester.tcl..set 
02c0: 74 65 73 74 70 72 65 66 69 78 20 65 72 72 6d 73  testprefix errms
02d0: 67 0a 0a 23 20 54 65 73 74 20 6f 72 67 61 6e 69  g..# Test organi
02e0: 7a 61 74 69 6f 6e 3a 0a 23 0a 23 20 20 20 65 72  zation:.#.#   er
02f0: 72 6d 73 67 2d 31 2e 2a 20 20 20 20 20 20 20 20  rmsg-1.*        
0300: 20 55 73 65 72 2d 64 65 66 69 6e 65 64 20 53 51   User-defined SQ
0310: 4c 20 66 75 6e 63 74 69 6f 6e 20 65 72 72 6f 72  L function error
0320: 73 0a 23 20 20 20 65 72 72 6d 73 67 2d 32 2e 2a  s.#   errmsg-2.*
0330: 20 20 20 20 20 20 20 20 20 45 72 72 6f 72 73 20           Errors 
0340: 67 65 6e 65 72 61 74 65 64 20 62 79 20 74 68 65  generated by the
0350: 20 56 44 42 45 20 28 63 6f 6e 73 74 72 61 69 6e   VDBE (constrain
0360: 74 20 66 61 69 6c 75 72 65 73 20 65 74 63 2e 29  t failures etc.)
0370: 0a 23 20 20 20 65 72 72 6d 73 67 2d 33 2e 2a 20  .#   errmsg-3.* 
0380: 20 20 20 20 20 20 20 20 53 51 4c 49 54 45 34 5f          SQLITE4_
0390: 53 43 48 45 4d 41 20 61 6e 64 20 73 74 61 74 65  SCHEMA and state
03a0: 6d 65 6e 74 20 72 65 63 6f 6d 70 69 6c 61 74 69  ment recompilati
03b0: 6f 6e 20 65 72 72 6f 72 73 2e 0a 23 0a 0a 70 72  on errors..#..pr
03c0: 6f 63 20 65 72 72 6f 72 5f 6d 65 73 73 61 67 65  oc error_message
03d0: 73 5f 77 6f 72 6b 65 72 20 7b 70 72 65 70 61 72  s_worker {prepar
03e0: 65 20 73 71 6c 20 73 63 68 65 6d 61 7d 20 7b 0a  e sql schema} {.
03f0: 20 20 73 65 74 20 72 65 74 20 5b 6c 69 73 74 5d    set ret [list]
0400: 0a 0a 20 20 73 65 74 20 73 74 6d 74 20 5b 24 70  ..  set stmt [$p
0410: 72 65 70 61 72 65 20 64 62 20 24 73 71 6c 20 2d  repare db $sql -
0420: 31 20 64 75 6d 6d 79 5d 0a 20 20 65 78 65 63 73  1 dummy].  execs
0430: 71 6c 20 24 73 63 68 65 6d 61 0a 20 20 6c 61 70  ql $schema.  lap
0440: 70 65 6e 64 20 72 65 74 20 5b 73 71 6c 69 74 65  pend ret [sqlite
0450: 34 5f 73 74 65 70 20 24 73 74 6d 74 5d 0a 20 20  4_step $stmt].  
0460: 6c 61 70 70 65 6e 64 20 72 65 74 20 5b 73 71 6c  lappend ret [sql
0470: 69 74 65 34 5f 65 72 72 6d 73 67 20 64 62 5d 0a  ite4_errmsg db].
0480: 20 20 6c 61 70 70 65 6e 64 20 72 65 74 20 5b 73    lappend ret [s
0490: 71 6c 69 74 65 34 5f 66 69 6e 61 6c 69 7a 65 20  qlite4_finalize 
04a0: 24 73 74 6d 74 5d 0a 20 20 6c 61 70 70 65 6e 64  $stmt].  lappend
04b0: 20 72 65 74 20 5b 73 71 6c 69 74 65 34 5f 65 72   ret [sqlite4_er
04c0: 72 6d 73 67 20 64 62 5d 0a 0a 20 20 73 65 74 20  rmsg db]..  set 
04d0: 72 65 74 0a 7d 0a 0a 70 72 6f 63 20 65 72 72 6f  ret.}..proc erro
04e0: 72 5f 6d 65 73 73 61 67 65 73 5f 76 32 20 7b 73  r_messages_v2 {s
04f0: 71 6c 20 7b 73 63 68 65 6d 61 20 7b 7d 7d 7d 20  ql {schema {}}} 
0500: 7b 0a 20 20 65 72 72 6f 72 5f 6d 65 73 73 61 67  {.  error_messag
0510: 65 73 5f 77 6f 72 6b 65 72 20 73 71 6c 69 74 65  es_worker sqlite
0520: 34 5f 70 72 65 70 61 72 65 20 24 73 71 6c 20 24  4_prepare $sql $
0530: 73 63 68 65 6d 61 0a 7d 0a 0a 70 72 6f 63 20 65  schema.}..proc e
0540: 72 72 6f 72 5f 6d 65 73 73 61 67 65 73 20 7b 73  rror_messages {s
0550: 71 6c 20 7b 73 63 68 65 6d 61 20 7b 7d 7d 7d 20  ql {schema {}}} 
0560: 7b 0a 20 20 65 72 72 6f 72 5f 6d 65 73 73 61 67  {.  error_messag
0570: 65 73 5f 77 6f 72 6b 65 72 20 73 71 6c 69 74 65  es_worker sqlite
0580: 34 5f 70 72 65 70 61 72 65 20 24 73 71 6c 20 24  4_prepare $sql $
0590: 73 63 68 65 6d 61 0a 7d 0a 0a 70 72 6f 63 20 73  schema.}..proc s
05a0: 71 6c 5f 65 72 72 6f 72 20 7b 6d 73 67 7d 20 7b  ql_error {msg} {
05b0: 20 65 72 72 6f 72 20 24 6d 73 67 20 7d 0a 64 62   error $msg }.db
05c0: 20 66 75 6e 63 20 73 71 6c 5f 65 72 72 6f 72 20   func sql_error 
05d0: 73 71 6c 5f 65 72 72 6f 72 0a 0a 23 2d 2d 2d 2d  sql_error..#----
05e0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
05f0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0600: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0610: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0620: 2d 2d 2d 2d 2d 0a 23 20 54 65 73 74 20 65 72 72  -----.# Test err
0630: 6f 72 20 6d 65 73 73 61 67 65 73 20 72 65 74 75  or messages retu
0640: 72 6e 65 64 20 62 79 20 75 73 65 72 2d 64 65 66  rned by user-def
0650: 69 6e 65 64 20 53 51 4c 20 66 75 6e 63 74 69 6f  ined SQL functio
0660: 6e 73 2e 0a 23 0a 64 6f 5f 74 65 73 74 20 31 2e  ns..#.do_test 1.
0670: 31 20 7b 0a 20 20 65 72 72 6f 72 5f 6d 65 73 73  1 {.  error_mess
0680: 61 67 65 73 20 22 53 45 4c 45 43 54 20 73 71 6c  ages "SELECT sql
0690: 5f 65 72 72 6f 72 28 27 63 75 73 74 6f 6d 20 6d  _error('custom m
06a0: 65 73 73 61 67 65 27 29 22 0a 7d 20 5b 6c 69 73  essage')".} [lis
06b0: 74 20 7b 2a 7d 7b 0a 20 20 20 20 53 51 4c 49 54  t {*}{.    SQLIT
06c0: 45 34 5f 45 52 52 4f 52 20 7b 63 75 73 74 6f 6d  E4_ERROR {custom
06d0: 20 6d 65 73 73 61 67 65 7d 0a 20 20 20 20 53 51   message}.    SQ
06e0: 4c 49 54 45 34 5f 45 52 52 4f 52 20 7b 63 75 73  LITE4_ERROR {cus
06f0: 74 6f 6d 20 6d 65 73 73 61 67 65 7d 0a 7d 5d 0a  tom message}.}].
0700: 64 6f 5f 74 65 73 74 20 31 2e 32 20 7b 0a 20 20  do_test 1.2 {.  
0710: 65 72 72 6f 72 5f 6d 65 73 73 61 67 65 73 5f 76  error_messages_v
0720: 32 20 22 53 45 4c 45 43 54 20 73 71 6c 5f 65 72  2 "SELECT sql_er
0730: 72 6f 72 28 27 63 75 73 74 6f 6d 20 6d 65 73 73  ror('custom mess
0740: 61 67 65 27 29 22 0a 7d 20 5b 6c 69 73 74 20 7b  age')".} [list {
0750: 2a 7d 7b 0a 20 20 20 20 53 51 4c 49 54 45 34 5f  *}{.    SQLITE4_
0760: 45 52 52 4f 52 20 7b 63 75 73 74 6f 6d 20 6d 65  ERROR {custom me
0770: 73 73 61 67 65 7d 0a 20 20 20 20 53 51 4c 49 54  ssage}.    SQLIT
0780: 45 34 5f 45 52 52 4f 52 20 7b 63 75 73 74 6f 6d  E4_ERROR {custom
0790: 20 6d 65 73 73 61 67 65 7d 0a 7d 5d 0a 0a 23 2d   message}.}]..#-
07a0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07b0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07c0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07d0: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
07e0: 2d 2d 2d 2d 2d 2d 2d 2d 0a 23 20 54 65 73 74 20  --------.# Test 
07f0: 65 72 72 6f 72 20 6d 65 73 73 61 67 65 73 20 67  error messages g
0800: 65 6e 65 72 61 74 65 64 20 64 69 72 65 63 74 6c  enerated directl
0810: 79 20 62 79 20 56 44 42 45 20 63 6f 64 65 20 28  y by VDBE code (
0820: 65 2e 67 2e 20 63 6f 6e 73 74 72 61 69 6e 74 0a  e.g. constraint.
0830: 23 20 66 61 69 6c 75 72 65 73 29 2e 0a 23 0a 64  # failures)..#.d
0840: 6f 5f 65 78 65 63 73 71 6c 5f 74 65 73 74 20 32  o_execsql_test 2
0850: 2e 31 20 7b 0a 20 20 43 52 45 41 54 45 20 54 41  .1 {.  CREATE TA
0860: 42 4c 45 20 74 31 28 61 20 50 52 49 4d 41 52 59  BLE t1(a PRIMARY
0870: 20 4b 45 59 2c 20 62 20 55 4e 49 51 55 45 29 3b   KEY, b UNIQUE);
0880: 0a 20 20 49 4e 53 45 52 54 20 49 4e 54 4f 20 74  .  INSERT INTO t
0890: 31 20 56 41 4c 55 45 53 28 27 61 62 63 27 2c 20  1 VALUES('abc', 
08a0: 27 64 65 66 27 29 3b 0a 7d 0a 64 6f 5f 74 65 73  'def');.}.do_tes
08b0: 74 20 32 2e 32 20 7b 0a 20 20 65 72 72 6f 72 5f  t 2.2 {.  error_
08c0: 6d 65 73 73 61 67 65 73 20 22 49 4e 53 45 52 54  messages "INSERT
08d0: 20 49 4e 54 4f 20 74 31 20 56 41 4c 55 45 53 28   INTO t1 VALUES(
08e0: 27 67 68 69 27 2c 20 27 64 65 66 27 29 22 0a 7d  'ghi', 'def')".}
08f0: 20 5b 6c 69 73 74 20 7b 2a 7d 7b 0a 20 20 20 20   [list {*}{.    
0900: 53 51 4c 49 54 45 34 5f 43 4f 4e 53 54 52 41 49  SQLITE4_CONSTRAI
0910: 4e 54 20 7b 63 6f 6c 75 6d 6e 20 62 20 69 73 20  NT {column b is 
0920: 6e 6f 74 20 75 6e 69 71 75 65 7d 0a 20 20 20 20  not unique}.    
0930: 53 51 4c 49 54 45 34 5f 43 4f 4e 53 54 52 41 49  SQLITE4_CONSTRAI
0940: 4e 54 20 7b 63 6f 6c 75 6d 6e 20 62 20 69 73 20  NT {column b is 
0950: 6e 6f 74 20 75 6e 69 71 75 65 7d 0a 7d 5d 0a 64  not unique}.}].d
0960: 6f 5f 74 65 73 74 20 32 2e 33 20 7b 0a 20 20 65  o_test 2.3 {.  e
0970: 72 72 6f 72 5f 6d 65 73 73 61 67 65 73 5f 76 32  rror_messages_v2
0980: 20 22 49 4e 53 45 52 54 20 49 4e 54 4f 20 74 31   "INSERT INTO t1
0990: 20 56 41 4c 55 45 53 28 27 67 68 69 27 2c 20 27   VALUES('ghi', '
09a0: 64 65 66 27 29 22 0a 7d 20 5b 6c 69 73 74 20 7b  def')".} [list {
09b0: 2a 7d 7b 0a 20 20 20 20 53 51 4c 49 54 45 34 5f  *}{.    SQLITE4_
09c0: 43 4f 4e 53 54 52 41 49 4e 54 20 7b 63 6f 6c 75  CONSTRAINT {colu
09d0: 6d 6e 20 62 20 69 73 20 6e 6f 74 20 75 6e 69 71  mn b is not uniq
09e0: 75 65 7d 0a 20 20 20 20 53 51 4c 49 54 45 34 5f  ue}.    SQLITE4_
09f0: 43 4f 4e 53 54 52 41 49 4e 54 20 7b 63 6f 6c 75  CONSTRAINT {colu
0a00: 6d 6e 20 62 20 69 73 20 6e 6f 74 20 75 6e 69 71  mn b is not uniq
0a10: 75 65 7d 0a 7d 5d 0a 0a 23 2d 2d 2d 2d 2d 2d 2d  ue}.}]..#-------
0a20: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a30: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a40: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a50: 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d  ----------------
0a60: 2d 2d 0a 23 20 54 65 73 74 20 53 51 4c 49 54 45  --.# Test SQLITE
0a70: 34 5f 53 43 48 45 4d 41 20 65 72 72 6f 72 73 2e  4_SCHEMA errors.
0a80: 20 41 6e 64 2c 20 66 6f 72 20 5f 76 32 28 29 2c   And, for _v2(),
0a90: 20 74 65 73 74 20 74 68 61 74 20 69 66 20 74 68   test that if th
0aa0: 65 20 73 63 68 65 6d 61 0a 23 20 63 68 61 6e 67  e schema.# chang
0ab0: 65 20 69 6e 76 61 6c 69 64 61 74 65 73 20 74 68  e invalidates th
0ac0: 65 20 53 51 4c 20 73 74 61 74 65 6d 65 6e 74 20  e SQL statement 
0ad0: 69 74 73 65 6c 66 20 74 68 65 20 65 72 72 6f 72  itself the error
0ae0: 20 6d 65 73 73 61 67 65 20 69 73 20 72 65 74 75   message is retu
0af0: 72 6e 65 64 0a 23 20 63 6f 72 72 65 63 74 6c 79  rned.# correctly
0b00: 2e 0a 23 0a 64 6f 5f 65 78 65 63 73 71 6c 5f 74  ..#.do_execsql_t
0b10: 65 73 74 20 33 2e 31 2e 31 20 7b 0a 20 20 43 52  est 3.1.1 {.  CR
0b20: 45 41 54 45 20 54 41 42 4c 45 20 74 32 28 61 20  EATE TABLE t2(a 
0b30: 50 52 49 4d 41 52 59 20 4b 45 59 2c 20 62 20 55  PRIMARY KEY, b U
0b40: 4e 49 51 55 45 29 3b 0a 20 20 49 4e 53 45 52 54  NIQUE);.  INSERT
0b50: 20 49 4e 54 4f 20 74 32 20 56 41 4c 55 45 53 28   INTO t2 VALUES(
0b60: 27 61 62 63 27 2c 20 27 64 65 66 27 29 3b 0a 7d  'abc', 'def');.}
0b70: 0a 64 6f 5f 74 65 73 74 20 33 2e 31 2e 32 20 7b  .do_test 3.1.2 {
0b80: 0a 20 20 65 72 72 6f 72 5f 6d 65 73 73 61 67 65  .  error_message
0b90: 73 20 22 53 45 4c 45 43 54 20 61 20 46 52 4f 4d  s "SELECT a FROM
0ba0: 20 74 32 22 20 22 44 52 4f 50 20 54 41 42 4c 45   t2" "DROP TABLE
0bb0: 20 74 32 22 0a 7d 20 5b 6c 69 73 74 20 7b 2a 7d   t2".} [list {*}
0bc0: 7b 0a 20 20 20 20 53 51 4c 49 54 45 34 5f 45 52  {.    SQLITE4_ER
0bd0: 52 4f 52 20 7b 6e 6f 20 73 75 63 68 20 74 61 62  ROR {no such tab
0be0: 6c 65 3a 20 74 32 7d 20 0a 20 20 20 20 53 51 4c  le: t2} .    SQL
0bf0: 49 54 45 34 5f 45 52 52 4f 52 20 7b 6e 6f 20 73  ITE4_ERROR {no s
0c00: 75 63 68 20 74 61 62 6c 65 3a 20 74 32 7d 0a 7d  uch table: t2}.}
0c10: 5d 0a 64 6f 5f 65 78 65 63 73 71 6c 5f 74 65 73  ].do_execsql_tes
0c20: 74 20 33 2e 32 2e 31 20 7b 0a 20 20 43 52 45 41  t 3.2.1 {.  CREA
0c30: 54 45 20 54 41 42 4c 45 20 74 32 28 61 20 50 52  TE TABLE t2(a PR
0c40: 49 4d 41 52 59 20 4b 45 59 2c 20 62 20 55 4e 49  IMARY KEY, b UNI
0c50: 51 55 45 29 3b 0a 20 20 49 4e 53 45 52 54 20 49  QUE);.  INSERT I
0c60: 4e 54 4f 20 74 32 20 56 41 4c 55 45 53 28 27 61  NTO t2 VALUES('a
0c70: 62 63 27 2c 20 27 64 65 66 27 29 3b 0a 7d 0a 64  bc', 'def');.}.d
0c80: 6f 5f 74 65 73 74 20 33 2e 32 2e 32 20 7b 0a 20  o_test 3.2.2 {. 
0c90: 20 65 72 72 6f 72 5f 6d 65 73 73 61 67 65 73 5f   error_messages_
0ca0: 76 32 20 22 53 45 4c 45 43 54 20 61 20 46 52 4f  v2 "SELECT a FRO
0cb0: 4d 20 74 32 22 20 22 44 52 4f 50 20 54 41 42 4c  M t2" "DROP TABL
0cc0: 45 20 74 32 22 0a 7d 20 5b 6c 69 73 74 20 7b 2a  E t2".} [list {*
0cd0: 7d 7b 0a 20 20 20 20 53 51 4c 49 54 45 34 5f 45  }{.    SQLITE4_E
0ce0: 52 52 4f 52 20 7b 6e 6f 20 73 75 63 68 20 74 61  RROR {no such ta
0cf0: 62 6c 65 3a 20 74 32 7d 20 0a 20 20 20 20 53 51  ble: t2} .    SQ
0d00: 4c 49 54 45 34 5f 45 52 52 4f 52 20 7b 6e 6f 20  LITE4_ERROR {no 
0d10: 73 75 63 68 20 74 61 62 6c 65 3a 20 74 32 7d 0a  such table: t2}.
0d20: 7d 5d 0a 0a 66 69 6e 69 73 68 5f 74 65 73 74 0a  }]..finish_test.