国产探花免费观看_亚洲丰满少妇自慰呻吟_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.

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 嘉定区| 灵台县| 封丘县| 武宣县| 朔州市| 黑河市| 永宁县| 淅川县| 清丰县| 左贡县| 托克托县| 镇雄县| 潼南县| 余江县| 霍州市| 屯门区| 通许县| 墨江| 汕头市| 呼伦贝尔市| 辽宁省| 都安| 绥化市| 遂溪县| 阿鲁科尔沁旗| 玛沁县| 资阳市| 铜鼓县| 高淳县| 大港区| 高唐县| 额济纳旗| 商河县| 喜德县| 桂东县| 景德镇市| 富平县| 高清| 云南省| 芒康县| 桃源县|