Cross-DB query using temp doesn't work
还没有人认领这个 Issue。
评估
调研方向
首先,通过此 package 的准备路径复现报告的 DELETE 查询和 schema,包括临时表。将行为与 modernc.org/sqlite 进行比较,然后调查为什么组合常规表和临时表的查询无法准备。完成标准是:报告的跨数据库查询能够成功准备并运行,同时不会使仅使用其中一种表类型的查询发生回归。
由索引模型根据 Issue 内容生成。
描述
Porting from modernc.org/sqlite to this package, one of my queries fail preparation, where it executed without issue on modernc:
sqlite.Prepare: SQLITE_ERROR: no such table: temp.seen (DELETE FROM dirty WHERE NOT EXISTS (SELECT 1 FROM temp.seen WHERE temp.seen.path = dirty.path))
Schema, for context:
CREATE TABLE IF NOT EXISTS dirty (
id INTEGER PRIMARY KEY,
path TEXT,
mtime DATETIME,
size INTEGER,
dev INTEGER,
inode INTEGER,
canread INTEGER,
dirty INTEGER
);
CREATE TEMPORARY TABLE temp.seen (path TEXT);
afaict, queries across regular and temporary tables should Just Work, but something about how this package sets things up makes it unable to query temporary tables in the same query as a non-temporary table (other queries that only touch the temporary table or non-temporary table work fine).
- 主要语言
- C
- 星标
- 225
- 派生
- 11
- 平均合并
- 20 分钟
- 30 天内合并 PR
- 2
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
tailscale/sqlite 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 42/100
-
难度 4/5 3-5 天 新手友好度 42/100
-
难度 5/5 一周以上 新手友好度 20/100
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
BasedHardware/omi#15662 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
-
level/task module/gcp type/bug
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 1/5 1 小时以内 新手友好度 86/100
hapostgres/pg_auto_failover#1190 ·