Just a bug in local mode (unfortunately). raw() was fixed back in Feb https://developers.cloudflare.
Just a bug in local mode (unfortunately). raw() was fixed back in Feb https://developers.cloudflare.com/d1/platform/changelog/#api-changes-to-raw-all-and-run
Cloudflare Docs
As of wrangler@3.33.0, wrangler d1 execute and wrangler d1 migrations apply now default to using a local database, to match the default behavior of …


