Skip to content

Why does _generate_insert_sql use %s as a placeholder instead of ?, or how to use GenericTransfer? #19583

Answered by potiuk
jplauri asked this question in Q&A
Discussion options

You must be logged in to vote

I think MsSQLHook lacks the proper implementaiton of the _generate_insert_sql . Every database has it's own form of prepared statements - Postgres/Mysql use '%s' (and this is the default implementation) , mssql uses ? - and that's why _generate_insert_sql needs to be provided by Hooks that do not support '%s' syntax. I think the best way woudl be to add a PR fixing it.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@jplauri
Comment options

@jplauri
Comment options

@potiuk
Comment options

potiuk Nov 14, 2021
Collaborator

@arunaj
Comment options

@jplauri
Comment options

Answer selected by jplauri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants