CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
81 lines
1.9 KiB
Plaintext
81 lines
1.9 KiB
Plaintext
# 2008 August 12
|
|
#
|
|
# 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 tests changes to the name resolution logic that occurred
|
|
# in august of 2008 and where associated with tickets #3298 and #3301
|
|
#
|
|
# $Id: tkt3298.test,v 1.3 2009/04/07 14:14:23 danielk1977 Exp $
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
ifcapable !trigger { finish_test ; return }
|
|
|
|
do_test tkt3298-1.1 {
|
|
execsql {
|
|
CREATE TABLE t1(a INTEGER PRIMARY KEY, b INT);
|
|
INSERT INTO t1 VALUES(0, 1);
|
|
INSERT INTO t1 VALUES(1, 1);
|
|
INSERT INTO t1 VALUES(2, 1);
|
|
CREATE VIEW v1 AS SELECT a AS x, b+1 AS y FROM t1;
|
|
CREATE TRIGGER r1 INSTEAD OF UPDATE ON v1
|
|
BEGIN
|
|
UPDATE t1 SET b=new.y-1 WHERE a=new.x;
|
|
END;
|
|
CREATE TRIGGER r2 INSTEAD OF DELETE ON v1
|
|
BEGIN
|
|
DELETE FROM t1 WHERE a=old.x;
|
|
END;
|
|
SELECT * FROM v1 ORDER BY x;
|
|
}
|
|
} {0 2 1 2 2 2}
|
|
do_test tkt3298-1.2 {
|
|
execsql {
|
|
UPDATE v1 SET y=3 WHERE x=0;
|
|
SELECT * FROM v1 ORDER by x;
|
|
}
|
|
} {0 3 1 2 2 2}
|
|
do_test tkt3298-1.3 {
|
|
execsql {
|
|
UPDATE v1 SET y=4 WHERE v1.x=2;
|
|
SELECT * FROM v1 ORDER by x;
|
|
}
|
|
} {0 3 1 2 2 4}
|
|
do_test tkt3298-1.4 {
|
|
execsql {
|
|
DELETE FROM v1 WHERE x=1;
|
|
SELECT * FROM v1 ORDER BY x;
|
|
}
|
|
} {0 3 2 4}
|
|
do_test tkt3298-1.5 {
|
|
execsql {
|
|
DELETE FROM v1 WHERE v1.x=2;
|
|
SELECT * FROM v1 ORDER BY x;
|
|
}
|
|
} {0 3}
|
|
|
|
# Ticket #3301
|
|
#
|
|
do_test tkt3298-2.1 {
|
|
execsql {
|
|
CREATE TABLE t2(p,q);
|
|
INSERT INTO t2 VALUES(1,11);
|
|
INSERT INTO t2 VALUES(2,22);
|
|
CREATE TABLE t3(x,y);
|
|
INSERT INTO t3 VALUES(1,'one');
|
|
|
|
SELECT *, (SELECT z FROM (SELECT y AS z FROM t3 WHERE x=t1.a+1) ) FROM t1;
|
|
}
|
|
} {0 2 one}
|
|
|
|
|
|
finish_test
|