Support for mutiple statements and REPLACE
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- JavaScript
- Star
- 13.7k
- Fork
- 1.1k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- javascript, sqlite
- Lĩnh vực
- databases
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 32/100