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
77 lines
1.9 KiB
Plaintext
77 lines
1.9 KiB
Plaintext
# 2013-10-19
|
|
#
|
|
# 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.
|
|
#
|
|
#***********************************************************************
|
|
#
|
|
# Test the operation of table-options in the WITH clause of the
|
|
# CREATE TABLE statement.
|
|
#
|
|
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
do_test tableopt-1.1 {
|
|
catchsql {
|
|
CREATE TABLE t1(a,b) WITHOUT rowid;
|
|
}
|
|
} {1 {PRIMARY KEY missing on table t1}}
|
|
do_test tableopt-1.1b {
|
|
catchsql {
|
|
CREATE TABLE t1(a INTEGER PRIMARY KEY AUTOINCREMENT,b) WITHOUT rowid;
|
|
}
|
|
} {1 {AUTOINCREMENT not allowed on WITHOUT ROWID tables}}
|
|
do_test tableopt-1.2 {
|
|
catchsql {
|
|
CREATE TABLE t1(a,b) WITHOUT unknown2;
|
|
}
|
|
} {1 {unknown table option: unknown2}}
|
|
|
|
do_execsql_test tableopt-2.1 {
|
|
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
|
|
INSERT INTO t1 VALUES(1,2,3),(2,3,4);
|
|
SELECT c FROM t1 WHERE a IN (1,2) ORDER BY b;
|
|
} {3 4}
|
|
do_test tableopt-2.1.1 {
|
|
catchsql {
|
|
SELECT rowid, * FROM t1;
|
|
}
|
|
} {1 {no such column: rowid}}
|
|
do_test tableopt-2.1.2 {
|
|
catchsql {
|
|
SELECT _rowid_, * FROM t1;
|
|
}
|
|
} {1 {no such column: _rowid_}}
|
|
do_test tableopt-2.1.3 {
|
|
catchsql {
|
|
SELECT oid, * FROM t1;
|
|
}
|
|
} {1 {no such column: oid}}
|
|
do_execsql_test tableopt-2.2 {
|
|
VACUUM;
|
|
SELECT c FROM t1 WHERE a IN (1,2) ORDER BY b;
|
|
} {3 4}
|
|
do_test tableopt-2.3 {
|
|
sqlite3 db2 test.db
|
|
db2 eval {SELECT c FROM t1 WHERE a IN (1,2) ORDER BY b;}
|
|
} {3 4}
|
|
db2 close
|
|
|
|
# Make sure the "without" keyword is still usable as a table or
|
|
# column name.
|
|
#
|
|
do_execsql_test tableopt-3.1 {
|
|
CREATE TABLE without(x INTEGER PRIMARY KEY, without TEXT);
|
|
INSERT INTO without VALUES(1, 'xyzzy'), (2, 'fizzle');
|
|
SELECT * FROM without WHERE without='xyzzy';
|
|
} {1 xyzzy}
|
|
|
|
|
|
finish_test
|