Error encountered: django.db.utils.ProgrammingError: zero-length delimited identifier at or near """"
This issue occurs when attempting to do a bulk_update_or_create with a model which already has double-quotes in the table name. This occurs if you define your model with a table_name which includes a double-quoted schema name prefix, like so:
class MyModel(models.Model):
class Meta:
db_table = '"schema"."mymodel"'
Error encountered: django.db.utils.ProgrammingError: zero-length delimited identifier at or near """"
This issue occurs when attempting to do a bulk_update_or_create with a model which already has double-quotes in the table name. This occurs if you define your model with a table_name which includes a double-quoted schema name prefix, like so:
class MyModel(models.Model): class Meta: db_table = '"schema"."mymodel"'