Skip to content

Conversation

@alexandermalyga
Copy link
Contributor

Added ON CONFLICT DO NOTHING statement when replace=True and all target fields are primary keys.
Also made _generate_insert_sql() use cls.placeholder for standardization sake.

Previously, if all inserted columns were primary keys, the generated SQL statement would not be syntactically correct.

…mary keys. Also made _generate_insert_sql use cls.placeholder for standarization sake
@kaxil
Copy link
Member

kaxil commented Sep 27, 2022

cc @utkarsharma2

@alexandermalyga
Copy link
Contributor Author

@potiuk @eladkal could you have a look please?

@potiuk potiuk merged commit d7d2061 into apache:main Nov 10, 2022
Adityamalik123 pushed a commit to Adityamalik123/airflow that referenced this pull request Nov 12, 2022
…fields are primary keys (apache#26661)

 Added ON CONFLICT DO NOTHING statement when all target fields are primary keys. Also made _generate_insert_sql use cls.placeholder for standarization sake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants