oven-sh/bun

"create table foo;" from example isn't working

Open

#12.119 geöffnet am 24. Juni 2024

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Rust (4.486 Forks)batch import
bugbun:sqliteconfirmed bugdocsgood first issue

Repository-Metriken

Stars
 (90.348 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 1T 17h) (357 gemergte PRs in 30 T)

Beschreibung

What version of Bun is running?

1.1.16+bf7b327f6

What platform is your computer?

Darwin 23.5.0 arm64 arm

What steps can reproduce the bug?

const db = new Database(":memory:");
const query = db.query(`create table foo;`);

What is the expected behavior?

A created table.

What do you see instead?

22 | const query = db.query(create table foo); ^ SQLiteError: incomplete input errno: 1

  at prepare (bun:sqlite:277:10)
  at query (bun:sqlite:284:8)
  at /Users/steida/dev/bun/SkiplistSql.ts:22:18

Additional information

No response

Contributor Guide