Ai
8 Star 20 Fork 10

Gitee 极速下载/sqlite

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/sqlite/sqlite
克隆/下载
aggfault.test 980 Bytes
一键复制 编辑 原始数据 按行查看 历史
dan 提交于 2023-03-30 20:19 +08:00 . Fix an error in new test script test/aggfault.test.
# 2023 March 30
#
# 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.
#
#***********************************************************************
#
set testdir [file dirname $argv0]
source $testdir/tester.tcl
set testprefix aggfault
do_execsql_test 1 {
CREATE TABLE t1(x);
CREATE INDEX t1x ON t1(x, x=0);
}
faultsim_save_and_close
do_faultsim_test 2 -faults oom* -prep {
faultsim_restore_and_reopen
execsql { SELECT * FROM sqlite_schema }
} -body {
execsql {
SELECT * FROM t1 AS a1 WHERE (
SELECT count(x AND 0=a1.x) FROM t1 GROUP BY abs(1)
) AND x=(
SELECT * FROM t1 AS a1
WHERE (SELECT count(x IS 1 AND a1.x=0)
FROM t1
GROUP BY abs(1)) AND x=0
);
}
} -test {
faultsim_test_result {0 {}}
}
finish_test
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/mirrors/sqlite.git
git@gitee.com:mirrors/sqlite.git
mirrors
sqlite
sqlite
master

搜索帮助