drizzle-team / drizzle-team/drizzle-orm
[BUG]:Drizzle Studio - Cannot test queries
- Dominant language
- TypeScript
- Stars
- 35.8k
- Forks
- 1.6k
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 4
Description
### Report hasn't been filed before.
- [x] I have verified that the bug I'm about to report hasn't been filed before.
### What version of `drizzle-orm` are you using?
0.44.3
### What version of `drizzle-kit` are you using?
0.31.4
### Other packages
_No response_
### Describe the Bug
I can't test queries via Drizzle Studio's _Drizzle Runner_. I tried on both Chromium-based and Firefox browsers.
I am using a local PostgreSQL database. I can view the tables correctly via _Database Studio_, but _Drizzle Runner_ queries always return errors:
- Google Chrome & Microsoft Edge: `Cannot read properties of undefined (reading 'name')`
- Firefox: `can't access property "name", l is undefined`

*I can view tables*

*And query them via _SQL Console_*

*But I can't test any query in Drizzle Runner*
```
TypeError: can't access property "name", l is undefined
on https://local.drizzle.studio/index.js:532
on https://local.drizzle.studio/index.js:532
blogPosts https://local.drizzle.studio/index.js line 2095 > Function:75
aD https://local.drizzle.studio/index.js:492
PLe https://local.drizzle.studio/index.js:538
anonymous https://local.drizzle.studio/index.js line 2095 > Function:1112
OCn https://local.drizzle.studio/index.js:2095
executeDrizzleQuery https://local.drizzle.studio/index.js:31673
click https://local.drizzle.studio/index.js:32199
cXt https://local.drizzle.studio/index.js:83
i https://local.drizzle.studio/index.js:32910
index.js:32910:2292
```
Also, there are no errors displayed in the terminal.
Contributor guide
Research direction
Start by reproducing the failure in Drizzle Studio's Drizzle Runner against a local PostgreSQL database, comparing it with the working SQL Console and the browser stack trace at local.drizzle.studio/index.js. Trace the undefined value associated with the reported name access; done means valid queries execute in Drizzle Runner without the browser errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- postgresql, typescript
- Domain
- databases, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100