potiuk commented on code in PR #42947:
URL: https://github.com/apache/airflow/pull/42947#discussion_r1817227395


##########
providers/src/airflow/providers/oracle/hooks/oracle.py:
##########
@@ -350,11 +354,28 @@ def bulk_insert_rows(
             self.set_autocommit(conn, False)
         cursor = conn.cursor()  # type: ignore[attr-defined]
         values_base = target_fields or rows[0]
-        prepared_stm = "insert into {tablename} {columns} values 
({values})".format(
-            tablename=table,
-            columns="({})".format(", ".join(target_fields)) if target_fields 
else "",
-            values=", ".join(f":{i}" for i in range(1, len(values_base) + 1)),
-        )
+
+        if (sequence_column is None) != (sequence_name is None):

Review Comment:
   ```suggestion
           if bool(sequence_column) ^ bool(sequence_name):
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to