mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
fix(ext/node): Fix Database#exec
should return undefined (#29368)
This commit is contained in:
parent
5a8c0a23db
commit
ff2354be0b
7 changed files with 87 additions and 10 deletions
|
@ -7,7 +7,10 @@ const tempDir = Deno.makeTempDirSync();
|
|||
Deno.test("[node/sqlite] in-memory databases", () => {
|
||||
const db1 = new DatabaseSync(":memory:");
|
||||
const db2 = new DatabaseSync(":memory:");
|
||||
db1.exec("CREATE TABLE data(key INTEGER PRIMARY KEY);");
|
||||
assertEquals(
|
||||
db1.exec("CREATE TABLE data(key INTEGER PRIMARY KEY);"),
|
||||
undefined,
|
||||
);
|
||||
db1.exec("INSERT INTO data (key) VALUES (1);");
|
||||
|
||||
db2.exec("CREATE TABLE data(key INTEGER PRIMARY KEY);");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue