drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
24.68k stars 651 forks source link

[BUG]: `point` datatype breaking Drizzle runner queries in drizzle-kit #3534

Open infovore opened 1 week ago

infovore commented 1 week ago

Report hasn't been filed before.

What version of drizzle-orm are you using?

0.36.1

What version of drizzle-kit are you using?

0.28.0

Other packages

No response

Describe the Bug

My schema contains a table with a column called point, of type POINT:

point: point('point', { mode: 'xy' }).notNull()

drizzle-orm handles queries of this table and indeed the whole schema correctly. When attempting to use the Drizzle Runner inside Drizzle Studio, however, the bottom console displays:

point is not defined

and no queries are possible. (This is not a PostGIS geometry type, just the POINT geometry type built into Postgres).

The desired result would be: Drizzle Studio Runner functions correctly.