Skip to content
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

fix: WithSchemaPlugin is adding schema to function arguments and causes db errors. #827

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

igalklebanov
Copy link
Member

@igalklebanov igalklebanov commented Jan 1, 2024

Hey 👋

Recently we've added eb.fn.jsonAgg and eb.fn.toJson. Both accept table names or sql.table/eb.table as arguments.

WithSchemaPlugin adds schema names to the arguments, resulting in DB errors.

This makes the plugin not usable anytime such functions are used, which is quite an annoyance.

This PR makes sure the plugin leaves TableNodes in specific functions' (currently we know of jsonAgg and toJson but there might be more) arguments as-is (no schema is added).

@igalklebanov igalklebanov added bug Something isn't working built-in plugin Related to a built-in plugin postgres Related to PostgreSQL ready for review labels Jan 1, 2024
Copy link

vercel bot commented Jan 1, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
kysely ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2024 11:08pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working built-in plugin Related to a built-in plugin postgres Related to PostgreSQL ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant