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 schema name is not prepended to the table name when aliased const #1903 #2074

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

wuyongzhi
Copy link

Fix schema name is not prepended to the table name when aliased const

see #1903

@rwyde
Copy link

rwyde commented Jul 30, 2024

just tested this. you need to wrap tableSchema with the sql.identifier() function like this:

return tableSchema ? sql`${sql.identifier(tableSchema)}.${originalName} ${sql.identifier(table[Table.Symbol.Name])}`

@wuyongzhi
Copy link
Author

just tested this. you need to wrap tableSchema with the sql.identifier() function like this:

return tableSchema ? sql`${sql.identifier(tableSchema)}.${originalName} ${sql.identifier(table[Table.Symbol.Name])}`

Thank you, I have revised and submitted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants