Skip to content

customize for trino oracle #2

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

customize for trino oracle #2

wants to merge 3 commits into from

Conversation

duc-dn
Copy link
Collaborator

@duc-dn duc-dn commented Nov 21, 2023

No description provided.

t.new(**({key: [item.upper() for item in value] for key, value in override_attrs.items()}
if t.database_type == "Oracle" else override_attrs))
for t in tables
]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new codes don't handle in case override_attrs is None

@@ -240,7 +240,7 @@ def _compile(self, compiler: Compiler, elem) -> str:
elif isinstance(elem, ColType):
return self.render_coltype(attrs.evolve(compiler, root=False), elem)
elif isinstance(elem, str):
return f"'{elem}'"
return f"{elem}"
elif isinstance(elem, (int, float)):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

double check this

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.

3 participants