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
84 lines
2.1 KiB
Plaintext
84 lines
2.1 KiB
Plaintext
# 2008 Jul 14
|
|
#
|
|
# 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.
|
|
#
|
|
#***********************************************************************
|
|
#
|
|
# The focus of this file is testing the r-tree extension when it is
|
|
# configured to store values as 32 bit integers.
|
|
#
|
|
|
|
if {![info exists testdir]} {
|
|
set testdir [file join [file dirname [info script]] .. .. test]
|
|
}
|
|
source [file join [file dirname [info script]] rtree_util.tcl]
|
|
source $testdir/tester.tcl
|
|
|
|
ifcapable !rtree {
|
|
finish_test
|
|
return
|
|
}
|
|
|
|
do_test rtree5-1.0 {
|
|
execsql { CREATE VIRTUAL TABLE t1 USING rtree_i32(id, x1, x2, y1, y2) }
|
|
} {}
|
|
do_test rtree5-1.1 {
|
|
execsql { INSERT INTO t1 VALUES(1, 5, 10, 4, 11.2) }
|
|
} {}
|
|
do_test rtree5-1.2 {
|
|
execsql { SELECT * FROM t1 }
|
|
} {1 5 10 4 11}
|
|
do_test rtree5-1.3 {
|
|
execsql { SELECT typeof(x1) FROM t1 }
|
|
} {integer}
|
|
|
|
do_test rtree5-1.4 {
|
|
execsql { SELECT x1==5 FROM t1 }
|
|
} {1}
|
|
do_test rtree5-1.5 {
|
|
execsql { SELECT x1==5.2 FROM t1 }
|
|
} {0}
|
|
do_test rtree5-1.6 {
|
|
execsql { SELECT x1==5.0 FROM t1 }
|
|
} {1}
|
|
|
|
do_test rtree5-1.7 {
|
|
execsql { SELECT count(*) FROM t1 WHERE x1==5 }
|
|
} {1}
|
|
ifcapable !rtree_int_only {
|
|
do_test rtree5-1.8 {
|
|
execsql { SELECT count(*) FROM t1 WHERE x1==5.2 }
|
|
} {0}
|
|
}
|
|
do_test rtree5-1.9 {
|
|
execsql { SELECT count(*) FROM t1 WHERE x1==5.0 }
|
|
} {1}
|
|
|
|
do_test rtree5-1.10 {
|
|
execsql { SELECT (1<<31)-5, (1<<31)-1, -1*(1<<31), -1*(1<<31)+5 }
|
|
} {2147483643 2147483647 -2147483648 -2147483643}
|
|
do_test rtree5-1.11 {
|
|
execsql {
|
|
INSERT INTO t1 VALUES(2, (1<<31)-5, (1<<31)-1, -1*(1<<31), -1*(1<<31)+5)
|
|
}
|
|
} {}
|
|
do_test rtree5-1.12 {
|
|
execsql { SELECT * FROM t1 WHERE id=2 }
|
|
} {2 2147483643 2147483647 -2147483648 -2147483643}
|
|
do_test rtree5-1.13 {
|
|
execsql {
|
|
SELECT * FROM t1 WHERE
|
|
x1=2147483643 AND x2=2147483647 AND
|
|
y1=-2147483648 AND y2=-2147483643
|
|
}
|
|
} {2 2147483643 2147483647 -2147483648 -2147483643}
|
|
do_rtree_integrity_test rtree5-1.14 t1
|
|
|
|
expand_all_sql db
|
|
finish_test
|