mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 02:48:24 +00:00
fix(ext/node): sqlite bind support bigint values (#27890)
This commit is contained in:
parent
b8a878cfc2
commit
1cbaee9f52
2 changed files with 23 additions and 0 deletions
|
@ -52,6 +52,15 @@ Deno.test(
|
|||
},
|
||||
);
|
||||
|
||||
Deno.test("[node/sqlite] StatementSync bind bigints", () => {
|
||||
const db = new DatabaseSync(":memory:");
|
||||
db.exec("CREATE TABLE data(key INTEGER PRIMARY KEY);");
|
||||
|
||||
const stmt = db.prepare("INSERT INTO data (key) VALUES (?)");
|
||||
assertEquals(stmt.run(100n), { lastInsertRowid: 100, changes: 1 });
|
||||
db.close();
|
||||
});
|
||||
|
||||
Deno.test("[node/sqlite] StatementSync read bigints are supported", () => {
|
||||
const db = new DatabaseSync(":memory:");
|
||||
db.exec("CREATE TABLE data(key INTEGER PRIMARY KEY);");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue