SQLite
Check-in [c7f2ed9f44]
Not logged in
Overview
SHA1 Hash:c7f2ed9f44be3b66a542ee42c0db63bab8ffd2db
Date: 2013-11-16 12:56:46
User: drh
Comment:Fix testcase misc7-16 so that it works with the new UNIQUE constraint error message format.
Tags And Properties
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to test/misc7.test

351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
    BEGIN;
      PRAGMA cache_size = 10;
      INSERT INTO t3 VALUES( randstr(100, 100), randstr(100, 100) );
      UPDATE t3 SET a = b;
    COMMIT;
  }} msg]

  if {!$rc || ($rc && [string first "columns" $msg]==0)} {
    set msg
  } else {
    error $msg
  }
}

sqlite3 db test.db







|







351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
    BEGIN;
      PRAGMA cache_size = 10;
      INSERT INTO t3 VALUES( randstr(100, 100), randstr(100, 100) );
      UPDATE t3 SET a = b;
    COMMIT;
  }} msg]

  if {!$rc || ($rc && [string first "UNIQUE" $msg]==0)} {
    set msg
  } else {
    error $msg
  }
}

sqlite3 db test.db