Support for mutiple statements and REPLACE
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 13.7k
- 派生
- 1.1k
- PR 合并指标
- 30 天内没有已合并 PR
描述
I'm a little confused.
When I try to run this, I get 0 results:
INSERT OR REPLACE INTO driver (license_plate, country, province, insert_date)
VALUES (:license_plate, :country, :province, '2018-10-17T08:51:34.116Z');
SELECT * FROM driver WHERE license_plate = :license_plate;
But when I try
INSERT INTO driver (license_plate, country, province, insert_date)
VALUES (:license_plate, :country, :province, '2018-10-17T08:51:34.116Z');
SELECT * FROM driver WHERE id = last_insert_rowid()
I get 1 result. I don't understand why
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
No source file, test, or entry point is named. Start by reproducing both SQL snippets in sql.js and compare how the multiple statements, INSERT OR REPLACE, and last_insert_rowid() cases are executed. Done means the expected behavior is established and the relevant behavior or documentation is updated accordingly.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, sqlite
- 领域
- databases
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 32/100