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

Support "quoting" column names #71

Open
xiaoxianma opened this issue Jul 21, 2024 · 0 comments
Open

Support "quoting" column names #71

xiaoxianma opened this issue Jul 21, 2024 · 0 comments
Labels
good first issue Good for newcomers

Comments

@xiaoxianma
Copy link

When passing a "quoting" column name to binary_copy_to_table, psqlpy raises syntax error. Callers have to wrap those columns in a double quote by themselves. It would be great to support this in the library.

workaround,

async def main():
    res = await conn.binary_copy_to_table(
        columns=[
            '"a-b"',
        ],
        ...
    )
@chandr-andr chandr-andr added the good first issue Good for newcomers label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants