国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 數據庫 > SQLite > 正文

SQLite 3.3.13 中執行查詢時的BUG

2024-09-07 00:10:01
字體:
來源:轉載
供稿:網友

Under latest release 3.3.13 query results in crash (used to run fine)

To create tables/data, run this:
  CREATE TABLE inmk(
cls TEXT,
sec INTEGER,
inst INTEGER
);
INSERT INTO inmk VALUES ('ORD', 2751, 2750);
CREATE TABLE clss(
hrar TEXT,
cls TEXT,
PRIMARY KEY (hrar, cls)
);
CREATE TABLE rels(
prnt_inst INTEGER,
chld_inst INTEGER
);

Then run this query:

  SELECT I.sec
FROM inmk I
LEFT JOIN
rels R ON R.prnt_inst = I.inst
LEFT JOIN
inmk UI ON UI.inst = R.chld_inst
LEFT JOIN
clss C1U ON C1U.cls = UI.cls AND C1U.hrar = 'STH'
LEFT JOIN
clss C10U ON C10U.hrar = c1u.hrar AND C10U.cls IN (C1U.cls)
WHERE I.sec = 2751;

The crash only happens in the latest 3.3.13 build.

Observations

If "C10U.cls IN (C1U.cls)" is replaced with "C10U.cls = C1U.cls", the query does not result in a crash but obviously this is not how the original query look like. In the original one, be it

   ...AND C10U.cls IN (C1U.cls, C2U.cls...)

or

  AND (C10U.cls = C1U.cls OR C10U.cls = C2U.cls...)

is immaterial and the crash still results.

The presence of the primary key in 'clss' table also seems to be important for the crash to occur.

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 邢台市| 陵川县| 迁西县| 上饶市| 青龙| 分宜县| 关岭| 昭觉县| 苏尼特左旗| 交城县| 怀远县| 射洪县| 乌兰县| 卓资县| 松原市| 嘉兴市| 兰坪| 扶绥县| 长沙县| 孟津县| 沁水县| 田阳县| 通化市| 汨罗市| 宝清县| 天柱县| 卓资县| 辽阳县| 宜黄县| 奉化市| 缙云县| 江门市| 永修县| 新干县| 蓬莱市| 西畴县| 巩义市| 青龙| 民丰县| 浦城县| 保康县|