Open valentinbeggi opened 4 weeks ago
I'm getting the same kind of error on my project. Hoping someone has an answer to this issue. π€ Thanks !!!
Also getting this same error on same versions as OP.
same error all of a sudden. it was fixed a couple of months back but now broken again
here's the patch while we're waiting for proper fix
sed -i '' 's/const proxy = async (params) => {/const proxy = async (params) => {\n params.sql = params.sql.replace(\/a.attidentity AS identity_type\/i, '\''a.attidentity::text AS identity_type'\''); \n params.sql = params.sql.replace(\/a.attgenerated AS generated_type\/i, '\''a.attgenerated::text AS generated_type'\'');/g' node_modules/drizzle-kit/bin.cjs
+1
Getting the error all of a sudden
These are different issues but i'm linking them here because they are related to type casting in drizzle-studio. They make relation visualization / drizzle query editor unusable in the studio.
https://github.com/drizzle-team/drizzle-orm/issues/2583 https://github.com/drizzle-team/drizzle-orm/issues/3409
Would really be awesome if these were fixed π
@larryonward, thank you for the sed expression.
I made a patch file out of your sed exp for pnpm patch
/ npx patch-package
.
This applies to the latest drizzle-kit version 0.28.0
https://gist.github.com/NikolaRusakov/88858b5b6a4e1585ca772f40f4e4d559#file-drizzle-kit-0-28-0-patch
The patches were working for me but they suddenly stopped today. π’
What version of
drizzle-orm
are you using?0.34.1
What version of
drizzle-kit
are you using?0.25.0
Describe the Bug
It was working fine last week but now, when trying to run the studio, I'm getting this error.
Error: The result contains the unsupported data type "CHAR". at _ (https://local.drizzle.studio/index.js:14138:33349) at async https://local.drizzle.studio/index.js:14138:33539 at async Promise.all (index 1) at async $oi (https://local.drizzle.studio/index.js:13940:1587) at async Xkl (https://local.drizzle.studio/index.js:14138:33520)
I managed to debug and get the query responsible for this error. I reproduce this error within the query editor of RDS
Casting these 2 lines seems to fix the issue:
It seems similar to this issue: https://github.com/drizzle-team/drizzle-kit-mirror/issues/542
Thank you for your help π
Expected behavior
No response
Environment & setup
No response