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
79 lines
2.5 KiB
Plaintext
79 lines
2.5 KiB
Plaintext
# 2013 March 05
|
|
#
|
|
# 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. Specifically,
|
|
# it tests that ticket [fc7bd6358f]:
|
|
#
|
|
# The following SQL yields an incorrect result (zero rows) in all
|
|
# versions of SQLite between 3.6.14 and 3.7.15.2:
|
|
#
|
|
# CREATE TABLE t(textid TEXT);
|
|
# INSERT INTO t VALUES('12');
|
|
# INSERT INTO t VALUES('34');
|
|
# CREATE TABLE i(intid INTEGER PRIMARY KEY);
|
|
# INSERT INTO i VALUES(12);
|
|
# INSERT INTO i VALUES(34);
|
|
#
|
|
# SELECT t1.textid AS a, i.intid AS b, t2.textid AS c
|
|
# FROM t t1, i, t t2
|
|
# WHERE t1.textid = i.intid
|
|
# AND t1.textid = t2.textid;
|
|
#
|
|
# The correct result should be two rows, one with 12|12|12 and the other
|
|
# with 34|34|34. With this bug, no rows are returned. Bisecting shows that
|
|
# this bug was introduced with check-in [dd4d67a67454] on 2009-04-23.
|
|
#
|
|
|
|
set testdir [file dirname $argv0]
|
|
source $testdir/tester.tcl
|
|
|
|
do_test tkt-fc7bd6358f.100 {
|
|
db eval {
|
|
CREATE TABLE t(textid TEXT);
|
|
INSERT INTO t VALUES('12');
|
|
INSERT INTO t VALUES('34');
|
|
CREATE TABLE i(intid INTEGER PRIMARY KEY);
|
|
INSERT INTO i VALUES(12);
|
|
INSERT INTO i VALUES(34);
|
|
}
|
|
} {}
|
|
unset -nocomplain from
|
|
unset -nocomplain where
|
|
unset -nocomplain a
|
|
unset -nocomplain b
|
|
foreach {a from} {
|
|
1 {FROM t t1, i, t t2}
|
|
2 {FROM i, t t1, t t2}
|
|
3 {FROM t t1, t t2, i}
|
|
} {
|
|
foreach {b where} {
|
|
1 {WHERE t1.textid=i.intid AND t1.textid=t2.textid}
|
|
2 {WHERE i.intid=t1.textid AND t1.textid=t2.textid}
|
|
3 {WHERE t1.textid=i.intid AND i.intid=t2.textid}
|
|
4 {WHERE t1.textid=i.intid AND t2.textid=i.intid}
|
|
5 {WHERE i.intid=t1.textid AND i.intid=t2.textid}
|
|
6 {WHERE i.intid=t1.textid AND t2.textid=i.intid}
|
|
7 {WHERE t1.textid=t2.textid AND i.intid=t2.textid}
|
|
8 {WHERE t1.textid=t2.textid AND t2.textid=i.intid}
|
|
} {
|
|
do_test tkt-fc7bd6358f.110.$a.$b.1 {
|
|
db eval {PRAGMA automatic_index=ON}
|
|
db eval "SELECT t1.textid, i.intid, t2.textid $from $where"
|
|
} {12 12 12 34 34 34}
|
|
do_test tkt-fc7bd6358f.110.$a.$b.2 {
|
|
db eval {PRAGMA automatic_index=OFF}
|
|
db eval "SELECT t1.textid, i.intid, t2.textid $from $where"
|
|
} {12 12 12 34 34 34}
|
|
}
|
|
}
|
|
|
|
|
|
finish_test
|