drizzle-team / drizzle-team/drizzle-orm

[BUG]:Drizzle Studio - Cannot test queries

Open
#4,793 1 comment 0 reactions 0 assignees View on GitHub
bug drizzle/studio
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`

![tables](https://github.com/user-attachments/assets/8d95a438-96c1-46b6-85e0-9ecd62f5832c)
*I can view tables*

![SQL Console](https://github.com/user-attachments/assets/3bd8dc8b-20e9-41b1-b732-32f2f0f1fcce)
*And query them via _SQL Console_*

![Drizzle Runner](https://github.com/user-attachments/assets/6812e97b-ff12-45db-a06c-3b5001a1c18c)
*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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.