-
-
Notifications
You must be signed in to change notification settings - Fork 688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG]: Cannot run drizzle-studio with DATA-API. Unsupported data type "CHAR" #3273
Comments
I'm getting the same kind of error on my project. |
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
|
+1 Getting the error all of a sudden |
@larryonward, thank you for the sed expression. I made a patch file out of your sed exp for https://gist.github.com/NikolaRusakov/88858b5b6a4e1585ca772f40f4e4d559#file-drizzle-kit-0-28-0-patch |
The patches were working for me but they suddenly stopped today. 😢 |
Adding this to bin.js > proxy params.sql = params.sql.replace(/con\.contype AS constraint_type/i, 'con.contype::text AS constraint_type'); Fixes the new unsupported data type issue, but I have another one popping when trying to access table data ERROR: bind message supplies 0 parameters, but prepared statement "sqlx_s_xxx" requires 1; SQLState: 08P01 |
@valentinbeggi yeah, stumbled on that too.
temporary fixed by adding
here (should be a better way) |
This fix doesn't seem to work. This is the resulting code that isn't working but includes this suggested change: |
@larryonward thx, fixes it for me (at least for now) Patches are getting out of hand tho 🙈 |
agree So, after updating to the latest versions all the issues are still there.
reproducible with following config:
I've compiled all the patches here:
|
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
The text was updated successfully, but these errors were encountered: