From e5b8e59c4550791f55257bc75752517a45de32dd Mon Sep 17 00:00:00 2001 From: julian Date: Wed, 23 May 2018 13:23:36 +1000 Subject: [PATCH] Removed ability to call has_bulk_insert - informix has not got a bulk insert - removed commented out code - put note in for people reading --- django_informixdb/features.py | 2 +- django_informixdb/operations.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/django_informixdb/features.py b/django_informixdb/features.py index 4b20410..e145f17 100644 --- a/django_informixdb/features.py +++ b/django_informixdb/features.py @@ -3,7 +3,7 @@ class DatabaseFeatures(BaseDatabaseFeatures): - has_bulk_insert = False + has_bulk_insert = False # informix does not have a bulk insert query can_use_chunked_reads = True supports_microsecond_precision = False supports_regex_backreferencing = False diff --git a/django_informixdb/operations.py b/django_informixdb/operations.py index 2c6ccd7..d9da8c8 100644 --- a/django_informixdb/operations.py +++ b/django_informixdb/operations.py @@ -128,8 +128,3 @@ def sql_flush(self, style, tables, sequences, allow_cascade=False): style.SQL_FIELD(self.quote_name(table)) ) for table in tables] return sql - - #def bulk_insert_sql(self, fields, placeholder_rows): - # placeholder_rows_sql = (", ".join(row) for row in placeholder_rows) - # values_sql = ", ".join("(%s)" % sql for sql in placeholder_rows_sql) - # return "VALUES " + values_sql