@@ -84,13 +84,6 @@ def date_extract_sql(self, lookup_type, sql, params):
8484 """
8585 return f"django_date_extract(%s, { sql } )" , (lookup_type .lower (), * params )
8686
87- def fetch_returned_insert_rows (self , cursor ):
88- """
89- Given a cursor object that has just performed an INSERT...RETURNING
90- statement into a table, return the list of returned data.
91- """
92- return cursor .fetchall ()
93-
9487 def format_for_duration_arithmetic (self , sql ):
9588 """Do nothing since formatting is handled in the custom function."""
9689 return sql
@@ -399,20 +392,6 @@ def insert_statement(self, on_conflict=None):
399392 return "INSERT OR IGNORE INTO"
400393 return super ().insert_statement (on_conflict = on_conflict )
401394
402- def return_insert_columns (self , fields ):
403- # SQLite < 3.35 doesn't support an INSERT...RETURNING statement.
404- if not fields :
405- return "" , ()
406- columns = [
407- "%s.%s"
408- % (
409- self .quote_name (field .model ._meta .db_table ),
410- self .quote_name (field .column ),
411- )
412- for field in fields
413- ]
414- return "RETURNING %s" % ", " .join (columns ), ()
415-
416395 def on_conflict_suffix_sql (self , fields , on_conflict , update_fields , unique_fields ):
417396 if (
418397 on_conflict == OnConflict .UPDATE
0 commit comments