~ubuntu-branches/ubuntu/wily/sqlite3/wily

« back to all changes in this revision

Viewing changes to test/check.test

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2010-02-02 18:44:27 UTC
  • mfrom: (9.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100202184427-ti0xppn5lywwzb8h
Tags: 3.6.22-1
New upstream release (closes: #568061).

Show diffs side-by-side

added added

removed removed

Lines of Context:
239
239
    SELECT * FROM t4
240
240
  }
241
241
} {4 3}
242
 
do_test check-4.3 {
 
242
do_test check-4.4 {
243
243
  execsql {
244
244
    UPDATE t4 SET x=12, y=2;
245
245
    SELECT * FROM t4
246
246
  }
247
247
} {12 2}
248
 
do_test check-4.4 {
 
248
do_test check-4.5 {
249
249
  execsql {
250
250
    UPDATE t4 SET x=12, y=-22;
251
251
    SELECT * FROM t4
252
252
  }
253
253
} {12 -22}
254
 
do_test check-4.5 {
255
 
  catchsql {
256
 
    UPDATE t4 SET x=0, y=1;
257
 
  }
258
 
} {1 {constraint failed}}
259
254
do_test check-4.6 {
260
 
  execsql {
261
 
    SELECT * FROM t4;
 
255
  catchsql {
 
256
    UPDATE t4 SET x=0, y=1;
262
257
  }
263
 
} {12 -22}
 
258
} {1 {constraint failed}}
264
259
do_test check-4.7 {
265
260
  execsql {
 
261
    SELECT * FROM t4;
 
262
  }
 
263
} {12 -22}
 
264
do_test check-4.8 {
 
265
  execsql {
266
266
    PRAGMA ignore_check_constraints=ON;
267
267
    UPDATE t4 SET x=0, y=1;
268
268
    SELECT * FROM t4;
269
269
  }
270
270
} {0 1}
271
 
do_test check-4.8 {
 
271
do_test check-4.9 {
272
272
  catchsql {
273
273
    PRAGMA ignore_check_constraints=OFF;
274
274
    UPDATE t4 SET x=0, y=2;
275
275
  }
276
276
} {1 {constraint failed}}
277
277
ifcapable vacuum {
278
 
  do_test check_4.9 {
 
278
  do_test check_4.10 {
279
279
    catchsql {
280
280
      VACUUM
281
281
    }