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
67 lines
1.6 KiB
Plaintext
67 lines
1.6 KiB
Plaintext
# 2009 December 8
|
|
#
|
|
# 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.
|
|
#
|
|
# Verify that we can create zero-length tables.
|
|
#
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
do_test tkt-78e04-1.0 {
|
|
execsql {
|
|
CREATE TABLE ""("" UNIQUE, x CHAR(100));
|
|
CREATE TABLE t2(x);
|
|
INSERT INTO ""("") VALUES(1);
|
|
INSERT INTO t2 VALUES(2);
|
|
SELECT * FROM "", t2;
|
|
}
|
|
} {1 {} 2}
|
|
do_test tkt-78e04-1.1 {
|
|
catchsql {
|
|
INSERT INTO ""("") VALUES(1);
|
|
}
|
|
} {1 {UNIQUE constraint failed: .}}
|
|
do_test tkt-78e04-1.2 {
|
|
execsql {
|
|
PRAGMA table_info("");
|
|
}
|
|
} {0 {} {} 0 {} 0 1 x CHAR(100) 0 {} 0}
|
|
do_test tkt-78e04-1.3 {
|
|
execsql {
|
|
CREATE INDEX i1 ON ""("" COLLATE nocase);
|
|
}
|
|
} {}
|
|
do_test tkt-78e04-1.4 {
|
|
db eval {EXPLAIN QUERY PLAN SELECT "" FROM "" WHERE "" LIKE '1e5%';}
|
|
} {/*SCAN USING COVERING INDEX i1*/}
|
|
do_test tkt-78e04-1.5 {
|
|
execsql {
|
|
DROP TABLE "";
|
|
SELECT name FROM sqlite_master;
|
|
}
|
|
} {t2}
|
|
|
|
do_test tkt-78e04-2.1 {
|
|
execsql {
|
|
CREATE INDEX "" ON t2(x);
|
|
EXPLAIN QUERY PLAN SELECT * FROM t2 WHERE x=5;
|
|
}
|
|
} {/*SEARCH t2 USING COVERING INDEX (x=?)*/}
|
|
do_test tkt-78e04-2.2 {
|
|
execsql {
|
|
DROP INDEX "";
|
|
EXPLAIN QUERY PLAN SELECT * FROM t2 WHERE x=2;
|
|
}
|
|
} {/*SCAN t2*/}
|
|
|
|
finish_test
|