I'm unable to reproduce this with a simple worker: ``` export interface Env { DB: D1Database; } e

I'm unable to reproduce this with a simple worker:
export interface Env {
  DB: D1Database;
}

export default {
  async fetch(
    request: Request,
    env: Env,
    ctx: ExecutionContext
  ): Promise<Response> {
    const res = await env.DB.exec("INSERT INTO test_table (val1) VALUES (1)");
    console.log("res: ", res);
    return new Response("Hello World!");
  },
};


where I've run CREATE TABLE IF NOT EXISTS "test_table" ("val1" INTEGER); beforehand. Could you provide a repo with a minimal reproduction?
Was this page helpful?