JavaScript promise rejection: Loading CSS chunk index-domready failed. (error: https://sirherobrine23.com.br/assets/css/index-domready.9de057c0.css). Open browser console to see more details.
0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-07-10 11:49:25 +00:00
Files
libsql/test/misc2.test

56 lines
1.4 KiB
Plaintext
Raw Normal View History

# 2003 June 21
#
# The author disclaims copyright to this source code. In place of
# a legal notice, here is a blessing:
#
# May you do good and not evil.
# May you find forgiveness for yourself and forgive others.
# May you share freely, never taking more than you give.
#
#***********************************************************************
# This file implements regression tests for SQLite library.
#
# This file implements tests for miscellanous features that were
# left out of other test files.
#
# $Id: misc2.test,v 1.3 2003/06/29 20:25:09 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
# Test for ticket #360
#
do_test misc2-1.1 {
catchsql {
CREATE TABLE FOO(bar integer);
CREATE TRIGGER foo_insert BEFORE INSERT ON foo BEGIN
SELECT CASE WHEN (NOT new.bar BETWEEN 0 AND 20)
THEN raise(rollback, 'aiieee') END;
END;
INSERT INTO foo(bar) VALUES (1);
}
} {0 {}}
do_test misc2-1.2 {
catchsql {
INSERT INTO foo(bar) VALUES (111);
}
} {1 aiieee}
# Make sure ROWID works on a view and a subquery. Ticket #364
#
do_test misc2-2.1 {
execsql {
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
CREATE TABLE t2(x,y,z);
INSERT INTO t2 VALUES(7,8,9);
SELECT rowid, * FROM (SELECT * FROM t1, t2);
}
} {{} 1 2 3 7 8 9}
do_test misc2-2.2 {
execsql {
CREATE VIEW v1 AS SELECT * FROM t1, t2;
SELECT rowid, * FROM v1;
}
} {{} 1 2 3 7 8 9}