3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #*************************************************************************
11 # This file implements regression tests for SQLite library. The
12 # focus of this file is testing corner cases of the DEFAULT syntax
13 # on table definitions.
15 # $Id: default.test,v 1.3 2009/02/19 14:39:25 danielk1977 Exp $
18 set testdir [file dirname $argv0]
19 source $testdir/tester.tcl
26 b BLOB DEFAULT x'6869'
28 INSERT INTO t1(a) VALUES(1);
37 y INTEGER DEFAULT NULL
39 INSERT INTO t2(x) VALUES(1);
47 y INTEGER DEFAULT (max(x,5))
50 } {1 {default value of column [y] is not constant}}
55 CREATE TABLE t4(c DEFAULT 'abc');
56 PRAGMA table_info(t4);
61 INSERT INTO t4 DEFAULT VALUES;
62 PRAGMA table_info(t4);