From c2905ccb2487c97458be6daa3c119d97caf36084 Mon Sep 17 00:00:00 2001 From: Pavlo Mishchenko Date: Tue, 20 May 2025 14:10:39 +0300 Subject: [PATCH 1/5] Run backends tests --- tests/_utils/setup.sql | 18 ++++++++++++++++++ tests/backends/models.py | 34 +++++++++++++++++++++++++++------- 2 files changed, 45 insertions(+), 7 deletions(-) diff --git a/tests/_utils/setup.sql b/tests/_utils/setup.sql index c883b8bf3a9f..952f61785aa2 100644 --- a/tests/_utils/setup.sql +++ b/tests/_utils/setup.sql @@ -570,4 +570,22 @@ CREATE TABLE `bulk_create_relatedmodel_bigautofieldmodel` ( UNIQUE KEY (`relatedmodel_id`, `bigautofieldmodel_id`), KEY (`relatedmodel_id`), KEY (`bigautofieldmodel_id`) + +-- backends +CREATE TABLE `backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person` ( + `verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_id` BIGINT NOT NULL, + `person_id` BIGINT NOT NULL, + SHARD KEY (`verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_id`), + UNIQUE KEY (`verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_id`, `person_id`), + KEY (`verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_id`), + KEY (`person_id`) +); + +CREATE TABLE `backends_object_object` ( + `from_object_id` BIGINT NOT NULL, + `to_object_id` BIGINT NOT NULL, + SHARD KEY (`from_object_id`), + UNIQUE KEY (`from_object_id`, `to_object_id`), + KEY (`from_object_id`), + KEY (`to_object_id`) ); diff --git a/tests/backends/models.py b/tests/backends/models.py index 99e9e86f44d2..1f0b81913129 100644 --- a/tests/backends/models.py +++ b/tests/backends/models.py @@ -40,10 +40,21 @@ class VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ(models.Model): max_length=100 ) m2m_also_quite_long_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz = ( - models.ManyToManyField(Person, blank=True) + models.ManyToManyField("Person", blank=True, through="VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZPerson") ) +class VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZPerson(models.Model): + verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz = models.ForeignKey( + VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ, on_delete=models.CASCADE + ) + person = models.ForeignKey(Person, on_delete=models.CASCADE) + + class Meta: + unique_together = (('verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz', 'person'),) + db_table = "backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person" + + class Tag(models.Model): name = models.CharField(max_length=30) content_type = models.ForeignKey( @@ -102,14 +113,23 @@ def __str__(self): class Object(models.Model): related_objects = models.ManyToManyField( - "self", db_constraint=False, symmetrical=False - ) + "Object", symmetrical=False, through="ObjectFriend" + ) obj_ref = models.ForeignKey("ObjectReference", models.CASCADE, null=True) def __str__(self): return str(self.id) +class ObjectFriend(models.Model): + from_object = models.ForeignKey(Object, on_delete=models.CASCADE, related_name="from_object") + to_object = models.ForeignKey(Object, on_delete=models.CASCADE, related_name="to_object") + + class Meta: + unique_together = (('from_object', 'to_object'),) + db_table = "backends_object_object" + + class ObjectReference(models.Model): obj = models.ForeignKey(Object, models.CASCADE, db_constraint=False) @@ -118,12 +138,12 @@ def __str__(self): class ObjectSelfReference(models.Model): - key = models.CharField(max_length=3, unique=True) + key = models.CharField(max_length=3, primary_key=True) obj = models.ForeignKey("ObjectSelfReference", models.SET_NULL, null=True) class CircularA(models.Model): - key = models.CharField(max_length=3, unique=True) + key = models.CharField(max_length=3, primary_key=True) obj = models.ForeignKey("CircularB", models.SET_NULL, null=True) def natural_key(self): @@ -131,7 +151,7 @@ def natural_key(self): class CircularB(models.Model): - key = models.CharField(max_length=3, unique=True) + key = models.CharField(max_length=3, primary_key=True) obj = models.ForeignKey("CircularA", models.SET_NULL, null=True) def natural_key(self): @@ -143,7 +163,7 @@ class RawData(models.Model): class Author(models.Model): - name = models.CharField(max_length=255, unique=True) + name = models.CharField(max_length=255, primary_key=True) class Book(models.Model): From 1a0ce20fe1c915ab169766113181d83fe883a89c Mon Sep 17 00:00:00 2001 From: Pavlo Mishchenko Date: Tue, 20 May 2025 16:35:17 +0300 Subject: [PATCH 2/5] Test results --- test_results.txt | 8738 +++--------------------------------- tests/_utils/local_test.sh | 2 +- 2 files changed, 504 insertions(+), 8236 deletions(-) diff --git a/test_results.txt b/test_results.txt index 281909ef54a0..9d9ce6cb2921 100644 --- a/test_results.txt +++ b/test_results.txt @@ -1,17 +1,16 @@ Testing against Django installed in '/home/pmishchenko-ua/github.com/django/django' with up to 16 processes -Importing application model_fields -Found 438 test(s). -Skipping setup of unused database(s): other. +Importing application backends +Found 294 test(s). Using existing test database for alias 'default' ('test_django_db')... Operations to perform: - Synchronize unmigrated apps: auth, contenttypes, messages, model_fields, sessions, staticfiles + Synchronize unmigrated apps: auth, backends, contenttypes, messages, sessions, staticfiles Apply all migrations: admin, sites Running pre-migrate handlers for application contenttypes Running pre-migrate handlers for application auth Running pre-migrate handlers for application sites Running pre-migrate handlers for application sessions Running pre-migrate handlers for application admin -Running pre-migrate handlers for application model_fields +Running pre-migrate handlers for application backends Synchronizing apps without migrations: Creating tables... Running deferred SQL... @@ -22,625 +21,375 @@ Running post-migrate handlers for application auth Running post-migrate handlers for application sites Running post-migrate handlers for application sessions Running post-migrate handlers for application admin -Running post-migrate handlers for application model_fields +Running post-migrate handlers for application backends +Using existing test database for alias 'other' ('test_django_db_other')... +Operations to perform: + Synchronize unmigrated apps: auth, backends, contenttypes, messages, sessions, staticfiles + Apply all migrations: admin, sites +Running pre-migrate handlers for application contenttypes +Running pre-migrate handlers for application auth +Running pre-migrate handlers for application sites +Running pre-migrate handlers for application sessions +Running pre-migrate handlers for application admin +Running pre-migrate handlers for application backends +Synchronizing apps without migrations: + Creating tables... + Running deferred SQL... +Running migrations: + No migrations to apply. +Running post-migrate handlers for application contenttypes +Running post-migrate handlers for application auth +Running post-migrate handlers for application sites +Running post-migrate handlers for application sessions +Running post-migrate handlers for application admin +Running post-migrate handlers for application backends System check identified no issues (0 silenced). -test_backend_range_save (model_fields.test_autofield.AutoFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_autofield.AutoFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_autofield.AutoFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_autofield.AutoFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_autofield.AutoFieldTests.test_invalid_value) ... ok -test_redundant_backend_range_validators (model_fields.test_autofield.AutoFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_autofield.AutoFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_autofield.AutoFieldTests.test_types) ... ok -test_backend_range_save (model_fields.test_autofield.BigAutoFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_autofield.BigAutoFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_autofield.BigAutoFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_autofield.BigAutoFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_autofield.BigAutoFieldTests.test_invalid_value) ... ok -test_redundant_backend_range_validators (model_fields.test_autofield.BigAutoFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_autofield.BigAutoFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_autofield.BigAutoFieldTests.test_types) ... ok -test_backend_range_save (model_fields.test_integerfield.BigIntegerFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_integerfield.BigIntegerFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_integerfield.BigIntegerFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_integerfield.BigIntegerFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_integerfield.BigIntegerFieldTests.test_invalid_value) ... ok -test_redundant_backend_range_validators (model_fields.test_integerfield.BigIntegerFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_integerfield.BigIntegerFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_integerfield.BigIntegerFieldTests.test_types) ... ok -test_backend_range_save (model_fields.test_integerfield.IntegerFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_integerfield.IntegerFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_integerfield.IntegerFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_integerfield.IntegerFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_integerfield.IntegerFieldTests.test_invalid_value) ... ok -test_redundant_backend_range_validators (model_fields.test_integerfield.IntegerFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_integerfield.IntegerFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_integerfield.IntegerFieldTests.test_types) ... ok -test_backend_range_save (model_fields.test_autofield.SmallAutoFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_autofield.SmallAutoFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_autofield.SmallAutoFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_autofield.SmallAutoFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_autofield.SmallAutoFieldTests.test_invalid_value) ... ok -test_redundant_backend_range_validators (model_fields.test_autofield.SmallAutoFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_autofield.SmallAutoFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_autofield.SmallAutoFieldTests.test_types) ... ok -test_backend_range_save (model_fields.test_integerfield.SmallIntegerFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_integerfield.SmallIntegerFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_integerfield.SmallIntegerFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_integerfield.SmallIntegerFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_integerfield.SmallIntegerFieldTests.test_invalid_value) ... ok -test_redundant_backend_range_validators (model_fields.test_integerfield.SmallIntegerFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_integerfield.SmallIntegerFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_integerfield.SmallIntegerFieldTests.test_types) ... ok -test_editable (model_fields.test_binaryfield.BinaryFieldTests.test_editable) ... ok -test_filter (model_fields.test_binaryfield.BinaryFieldTests.test_filter) ... ok -test_filter_bytearray (model_fields.test_binaryfield.BinaryFieldTests.test_filter_bytearray) ... ok -test_filter_memoryview (model_fields.test_binaryfield.BinaryFieldTests.test_filter_memoryview) ... ok -test_max_length (model_fields.test_binaryfield.BinaryFieldTests.test_max_length) ... ok -test_set_and_retrieve (model_fields.test_binaryfield.BinaryFieldTests.test_set_and_retrieve) ... ok -test_booleanfield_choices_blank (model_fields.test_booleanfield.BooleanFieldTests.test_booleanfield_choices_blank) -BooleanField with choices and defaults doesn't generate a formfield ... ok -test_booleanfield_choices_blank_desired (model_fields.test_booleanfield.BooleanFieldTests.test_booleanfield_choices_blank_desired) -BooleanField with choices and no default should generated a formfield ... ok -test_booleanfield_get_prep_value (model_fields.test_booleanfield.BooleanFieldTests.test_booleanfield_get_prep_value) ... ok -test_booleanfield_to_python (model_fields.test_booleanfield.BooleanFieldTests.test_booleanfield_to_python) ... ok -test_null_default (model_fields.test_booleanfield.BooleanFieldTests.test_null_default) -A BooleanField defaults to None, which isn't a valid value (#15124). ... ok -test_nullbooleanfield_formfield (model_fields.test_booleanfield.BooleanFieldTests.test_nullbooleanfield_formfield) ... ok -test_nullbooleanfield_get_prep_value (model_fields.test_booleanfield.BooleanFieldTests.test_nullbooleanfield_get_prep_value) ... ok -test_nullbooleanfield_to_python (model_fields.test_booleanfield.BooleanFieldTests.test_nullbooleanfield_to_python) ... ok -test_return_type (model_fields.test_booleanfield.BooleanFieldTests.test_return_type) ... ok -test_select_related (model_fields.test_booleanfield.BooleanFieldTests.test_select_related) -Boolean fields retrieved via select_related() should return booleans. ... ok -test_assignment_from_choice_enum (model_fields.test_charfield.TestCharField.test_assignment_from_choice_enum) ... ok -test_emoji (model_fields.test_charfield.TestCharField.test_emoji) ... ok -test_lookup_integer_in_charfield (model_fields.test_charfield.TestCharField.test_lookup_integer_in_charfield) ... ok -test_max_length_passed_to_formfield (model_fields.test_charfield.TestCharField.test_max_length_passed_to_formfield) -CharField passes its max_length attribute to form fields created using ... ok -test_datetimefield_to_python_microseconds (model_fields.test_datetimefield.DateTimeFieldTests.test_datetimefield_to_python_microseconds) -DateTimeField.to_python() supports microseconds. ... ok -test_datetimes_save_completely (model_fields.test_datetimefield.DateTimeFieldTests.test_datetimes_save_completely) ... ok -test_lookup_date_with_use_tz (model_fields.test_datetimefield.DateTimeFieldTests.test_lookup_date_with_use_tz) ... skipped "Database doesn't support feature(s): has_zoneinfo_database" -test_lookup_date_without_use_tz (model_fields.test_datetimefield.DateTimeFieldTests.test_lookup_date_without_use_tz) ... ok -test_timefield_to_python_microseconds (model_fields.test_datetimefield.DateTimeFieldTests.test_timefield_to_python_microseconds) -TimeField.to_python() supports microseconds. ... ok -test_default (model_fields.test_decimalfield.DecimalFieldTests.test_default) ... ok -test_fetch_from_db_without_float_rounding (model_fields.test_decimalfield.DecimalFieldTests.test_fetch_from_db_without_float_rounding) ... ok -test_filter_with_strings (model_fields.test_decimalfield.DecimalFieldTests.test_filter_with_strings) -Should be able to filter decimal fields using strings (#8023). ... ok -test_get_prep_value (model_fields.test_decimalfield.DecimalFieldTests.test_get_prep_value) ... ok -test_invalid_value (model_fields.test_decimalfield.DecimalFieldTests.test_invalid_value) ... ok -test_lookup_decimal_larger_than_max_digits (model_fields.test_decimalfield.DecimalFieldTests.test_lookup_decimal_larger_than_max_digits) ... ok -test_lookup_really_big_value (model_fields.test_decimalfield.DecimalFieldTests.test_lookup_really_big_value) -Really big values can be used in a filter statement. ... ok -test_max_decimal_places_validation (model_fields.test_decimalfield.DecimalFieldTests.test_max_decimal_places_validation) ... ok -test_max_digits_validation (model_fields.test_decimalfield.DecimalFieldTests.test_max_digits_validation) ... ok -test_max_whole_digits_validation (model_fields.test_decimalfield.DecimalFieldTests.test_max_whole_digits_validation) ... ok -test_roundtrip_with_trailing_zeros (model_fields.test_decimalfield.DecimalFieldTests.test_roundtrip_with_trailing_zeros) -Trailing zeros in the fractional part aren't truncated. ... ok -test_save_inf_invalid (model_fields.test_decimalfield.DecimalFieldTests.test_save_inf_invalid) ... ok -test_save_nan_invalid (model_fields.test_decimalfield.DecimalFieldTests.test_save_nan_invalid) ... ok -test_save_without_float_conversion (model_fields.test_decimalfield.DecimalFieldTests.test_save_without_float_conversion) -Ensure decimals don't go through a corrupting float conversion during ... ok -test_to_python (model_fields.test_decimalfield.DecimalFieldTests.test_to_python) ... ok -test_exact (model_fields.test_durationfield.TestQuerying.test_exact) ... ok -test_gt (model_fields.test_durationfield.TestQuerying.test_gt) ... ok -test_create_empty (model_fields.test_durationfield.TestSaveLoad.test_create_empty) ... ok -test_fractional_seconds (model_fields.test_durationfield.TestSaveLoad.test_fractional_seconds) ... ok -test_simple_roundtrip (model_fields.test_durationfield.TestSaveLoad.test_simple_roundtrip) ... ok -test_abstract_filefield_model (model_fields.test_filefield.FileFieldTests.test_abstract_filefield_model) -FileField.model returns the concrete model for fields defined in an ... ok -test_changed (model_fields.test_filefield.FileFieldTests.test_changed) -FileField.save_form_data(), if passed a truthy value, updates its ... ok -test_clearable (model_fields.test_filefield.FileFieldTests.test_clearable) -FileField.save_form_data() will clear its instance attribute value if ... ok -test_defer (model_fields.test_filefield.FileFieldTests.test_defer) ... ERROR -test_delete_when_file_unset (model_fields.test_filefield.FileFieldTests.test_delete_when_file_unset) -Calling delete on an unset FileField should not call the file deletion ... ok -test_media_root_pathlib (model_fields.test_filefield.FileFieldTests.test_media_root_pathlib) ... ok -test_move_temporary_file (model_fields.test_filefield.FileFieldTests.test_move_temporary_file) -The temporary uploaded file is moved rather than copied to the ... ok -test_open_returns_self (model_fields.test_filefield.FileFieldTests.test_open_returns_self) -FieldField.open() returns self so it can be used as a context manager. ... ok -test_pickle (model_fields.test_filefield.FileFieldTests.test_pickle) ... ERROR -test_refresh_from_db (model_fields.test_filefield.FileFieldTests.test_refresh_from_db) ... ERROR -test_save_without_name (model_fields.test_filefield.FileFieldTests.test_save_without_name) ... ok -test_unchanged (model_fields.test_filefield.FileFieldTests.test_unchanged) -FileField.save_form_data() considers None to mean "no change" rather ... ok -test_unique_when_same_filename (model_fields.test_filefield.FileFieldTests.test_unique_when_same_filename) -A FileField with unique=True shouldn't allow two instances with the ... ok -test_float_validates_object (model_fields.test_floatfield.TestFloatField.test_float_validates_object) ... ok -test_invalid_value (model_fields.test_floatfield.TestFloatField.test_invalid_value) ... ok -test_abstract_model_app_relative_foreign_key (model_fields.test_foreignkey.ForeignKeyTests.test_abstract_model_app_relative_foreign_key) ... ok -test_abstract_model_pending_operations (model_fields.test_foreignkey.ForeignKeyTests.test_abstract_model_pending_operations) -Foreign key fields declared on abstract models should not add lazy ... ok -test_callable_default (model_fields.test_foreignkey.ForeignKeyTests.test_callable_default) -A lazy callable may be used for ForeignKey.default. ... ok -test_empty_string_fk (model_fields.test_foreignkey.ForeignKeyTests.test_empty_string_fk) -Empty strings foreign key values don't get converted to None (#19299). ... ok -test_fk_to_fk_get_col_output_field (model_fields.test_foreignkey.ForeignKeyTests.test_fk_to_fk_get_col_output_field) ... ok -test_invalid_to_parameter (model_fields.test_foreignkey.ForeignKeyTests.test_invalid_to_parameter) ... ok -test_manager_class_getitem (model_fields.test_foreignkey.ForeignKeyTests.test_manager_class_getitem) ... ok -test_non_local_to_field (model_fields.test_foreignkey.ForeignKeyTests.test_non_local_to_field) ... ok -test_recursive_fks_get_col (model_fields.test_foreignkey.ForeignKeyTests.test_recursive_fks_get_col) ... ok -test_related_name_converted_to_text (model_fields.test_foreignkey.ForeignKeyTests.test_related_name_converted_to_text) ... ok -test_to_python (model_fields.test_foreignkey.ForeignKeyTests.test_to_python) ... ok -test_warning_when_unique_true_on_fk (model_fields.test_foreignkey.ForeignKeyTests.test_warning_when_unique_true_on_fk) ... ok -test_blank_string_saved_as_null (model_fields.test_genericipaddressfield.GenericIPAddressFieldTests.test_blank_string_saved_as_null) ... ok -test_genericipaddressfield_formfield_protocol (model_fields.test_genericipaddressfield.GenericIPAddressFieldTests.test_genericipaddressfield_formfield_protocol) -GenericIPAddressField with a specified protocol does not generate a ... ok -test_null_value (model_fields.test_genericipaddressfield.GenericIPAddressFieldTests.test_null_value) -Null values should be resolved to None. ... ok -test_save_load (model_fields.test_genericipaddressfield.GenericIPAddressFieldTests.test_save_load) ... ok -test_assignment_to_None (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_assignment_to_None) -Assigning ImageField to None clears dimensions. ... ok -test_constructor (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_constructor) -Tests assigning an image field through the model's constructor. ... ok -test_create (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_create) -Tests assigning an image in Manager.create(). ... ok -test_default_value (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_default_value) -The default value for an ImageField is an instance of ... ok -test_dimensions (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_dimensions) -Dimensions are updated correctly in various situations. ... ok -test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_field_save_and_delete_methods) -Tests assignment using the field's save method and deletion using ... ok -test_image_after_constructor (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_image_after_constructor) -Tests behavior when image is not passed in constructor. ... ok -test_assignment_to_None (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_assignment_to_None) -Assigning ImageField to None clears dimensions. ... ok -test_constructor (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_constructor) -Tests assigning an image field through the model's constructor. ... ok -test_create (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_create) -Tests assigning an image in Manager.create(). ... ok -test_default_value (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_default_value) -The default value for an ImageField is an instance of ... ok -test_dimensions (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_dimensions) -Dimensions are updated correctly in various situations. ... ok -test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_field_save_and_delete_methods) -Tests assignment using the field's save method and deletion using ... ok -test_image_after_constructor (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_image_after_constructor) -Tests behavior when image is not passed in constructor. ... ok -test_assignment_to_None (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_assignment_to_None) -Assigning ImageField to None clears dimensions. ... ok -test_constructor (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_constructor) -Tests assigning an image field through the model's constructor. ... ok -test_create (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_create) -Tests assigning an image in Manager.create(). ... ok -test_default_value (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_default_value) -The default value for an ImageField is an instance of ... ok -test_dimensions (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_dimensions) -Dimensions are updated correctly in various situations. ... ok -test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_field_save_and_delete_methods) -Tests assignment using the field's save method and deletion using ... ok -test_image_after_constructor (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_image_after_constructor) -Tests behavior when image is not passed in constructor. ... ok -test_defer (model_fields.test_imagefield.ImageFieldTests.test_defer) ... ok -test_delete_when_missing (model_fields.test_imagefield.ImageFieldTests.test_delete_when_missing) -Bug #8175: correctly delete an object where the file no longer ... ok -test_equal_notequal_hash (model_fields.test_imagefield.ImageFieldTests.test_equal_notequal_hash) -Bug #9786: Ensure '==' and '!=' work correctly. ... ok -test_instantiate_missing (model_fields.test_imagefield.ImageFieldTests.test_instantiate_missing) -If the underlying file is unavailable, still create instantiate the ... ok -test_pickle (model_fields.test_imagefield.ImageFieldTests.test_pickle) -ImageField can be pickled, unpickled, and that the image of ... ok -test_size_method (model_fields.test_imagefield.ImageFieldTests.test_size_method) -Bug #8534: FileField.size should not leave the file open. ... ok -test_assignment_to_None (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_assignment_to_None) -Assigning ImageField to None clears dimensions. ... ok -test_constructor (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_constructor) -Tests assigning an image field through the model's constructor. ... ok -test_create (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_create) -Tests assigning an image in Manager.create(). ... ok -test_default_value (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_default_value) -The default value for an ImageField is an instance of ... ok -test_dimensions (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_dimensions) -Dimensions are updated correctly in various situations. ... ok -test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_field_save_and_delete_methods) -Tests assignment using the field's save method and deletion using ... ok -test_image_after_constructor (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_image_after_constructor) -Tests behavior when image is not passed in constructor. ... ok -test_assignment_to_None (model_fields.test_imagefield.ImageFieldUsingFileTests.test_assignment_to_None) -Assigning ImageField to None clears dimensions. ... ok -test_constructor (model_fields.test_imagefield.ImageFieldUsingFileTests.test_constructor) -Tests assigning an image field through the model's constructor. ... ok -test_create (model_fields.test_imagefield.ImageFieldUsingFileTests.test_create) -Tests assigning an image in Manager.create(). ... ok -test_default_value (model_fields.test_imagefield.ImageFieldUsingFileTests.test_default_value) -The default value for an ImageField is an instance of ... ok -test_dimensions (model_fields.test_imagefield.ImageFieldUsingFileTests.test_dimensions) -Dimensions are updated correctly in various situations. ... ok -test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldUsingFileTests.test_field_save_and_delete_methods) -Tests assignment using the field's save method and deletion using ... ok -test_image_after_constructor (model_fields.test_imagefield.ImageFieldUsingFileTests.test_image_after_constructor) -Tests behavior when image is not passed in constructor. ... ok -test_assignment (model_fields.test_imagefield.TwoImageFieldTests.test_assignment) ... ok -test_constructor (model_fields.test_imagefield.TwoImageFieldTests.test_constructor) ... ok -test_create (model_fields.test_imagefield.TwoImageFieldTests.test_create) ... ok -test_dimensions (model_fields.test_imagefield.TwoImageFieldTests.test_dimensions) -Dimensions are updated correctly in various situations. ... ok -test_field_save_and_delete_methods (model_fields.test_imagefield.TwoImageFieldTests.test_field_save_and_delete_methods) ... ok -test_backend_range_save (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_invalid_value) ... ok -test_redundant_backend_range_validators (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_types) ... ok -test_backend_range_save (model_fields.test_integerfield.PositiveIntegerFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_integerfield.PositiveIntegerFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_integerfield.PositiveIntegerFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_integerfield.PositiveIntegerFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_integerfield.PositiveIntegerFieldTests.test_invalid_value) ... ok -test_negative_values (model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values) ... ok -test_redundant_backend_range_validators (model_fields.test_integerfield.PositiveIntegerFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_integerfield.PositiveIntegerFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_integerfield.PositiveIntegerFieldTests.test_types) ... ok -test_backend_range_save (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_backend_range_save) -Backend specific ranges can be saved without corruption. ... ok -test_backend_range_validation (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_backend_range_validation) -Backend specific ranges are enforced at the model validation level ... ok -test_coercing (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_coercing) ... ok -test_documented_range (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_documented_range) -Values within the documented safe range pass validation, and can be ... ok -test_invalid_value (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_invalid_value) ... ok -test_redundant_backend_range_validators (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_redundant_backend_range_validators) -If there are stricter validators than the ones from the database ... ok -test_rel_db_type (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_rel_db_type) ... ok -test_types (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_types) ... ok -test_custom_encoder_decoder (model_fields.test_jsonfield.JSONFieldTests.test_custom_encoder_decoder) ... ok -test_db_check_constraints (model_fields.test_jsonfield.JSONFieldTests.test_db_check_constraints) ... ok -test_invalid_value (model_fields.test_jsonfield.JSONFieldTests.test_invalid_value) ... ok -test_array_key_contains (model_fields.test_jsonfield.TestQuerying.test_array_key_contains) ... skipped "Database doesn't support feature(s): supports_json_field_contains" -test_contained_by (model_fields.test_jsonfield.TestQuerying.test_contained_by) ... skipped "Database doesn't support feature(s): supports_json_field_contains" -test_contained_by_unsupported (model_fields.test_jsonfield.TestQuerying.test_contained_by_unsupported) ... ok -test_contains (model_fields.test_jsonfield.TestQuerying.test_contains) ... skipped "Database doesn't support feature(s): supports_json_field_contains" -test_contains_contained_by_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_contains_contained_by_with_key_transform) ... skipped "Database doesn't support feature(s): supports_json_field_contains" -test_contains_primitives (model_fields.test_jsonfield.TestQuerying.test_contains_primitives) ... skipped "Database doesn't support feature(s): supports_primitives_in_json_field, supports_json_field_contains" -test_contains_unsupported (model_fields.test_jsonfield.TestQuerying.test_contains_unsupported) ... ok -test_deep_distinct (model_fields.test_jsonfield.TestQuerying.test_deep_distinct) ... skipped "Database doesn't support feature(s): can_distinct_on_fields" -test_deep_lookup_array (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_array) ... ERROR -test_deep_lookup_mixed (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_mixed) ... ERROR -test_deep_lookup_objs (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_objs) ... ERROR -test_deep_lookup_transform (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_transform) ... ERROR -test_deep_values (model_fields.test_jsonfield.TestQuerying.test_deep_values) ... ERROR -test_exact (model_fields.test_jsonfield.TestQuerying.test_exact) ... ok -test_exact_complex (model_fields.test_jsonfield.TestQuerying.test_exact_complex) ... FAIL -test_expression_wrapper_key_transform (model_fields.test_jsonfield.TestQuerying.test_expression_wrapper_key_transform) ... ERROR -test_has_any_keys (model_fields.test_jsonfield.TestQuerying.test_has_any_keys) ... ERROR -test_has_key (model_fields.test_jsonfield.TestQuerying.test_has_key) ... ERROR -test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) ... - test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR - test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR - test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR - test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR - test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR - test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR - test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR - test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR -test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) ... - test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ... ERROR - test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ... ERROR - test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ... ERROR - test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ... ERROR -test_has_key_null_value (model_fields.test_jsonfield.TestQuerying.test_has_key_null_value) ... ERROR -test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) ... - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR - test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR -test_has_keys (model_fields.test_jsonfield.TestQuerying.test_has_keys) ... ERROR -test_icontains (model_fields.test_jsonfield.TestQuerying.test_icontains) ... FAIL -test_isnull (model_fields.test_jsonfield.TestQuerying.test_isnull) ... ok -test_isnull_key (model_fields.test_jsonfield.TestQuerying.test_isnull_key) ... ERROR -test_isnull_key_or_none (model_fields.test_jsonfield.TestQuerying.test_isnull_key_or_none) ... ERROR -test_join_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression) ... ERROR -test_key_contains (model_fields.test_jsonfield.TestQuerying.test_key_contains) ... skipped "Database doesn't support feature(s): supports_json_field_contains" -test_key_endswith (model_fields.test_jsonfield.TestQuerying.test_key_endswith) ... ERROR -test_key_escape (model_fields.test_jsonfield.TestQuerying.test_key_escape) ... ERROR -test_key_icontains (model_fields.test_jsonfield.TestQuerying.test_key_icontains) ... ERROR -test_key_iendswith (model_fields.test_jsonfield.TestQuerying.test_key_iendswith) ... ERROR -test_key_iexact (model_fields.test_jsonfield.TestQuerying.test_key_iexact) ... ERROR -test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) ... - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__c__in', value=[14]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__c__in', value=[14, 15]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__0__in', value=[1]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__0__in', value=[1, 3]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=['bar']) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[KeyTransform(KeyTransform(F(value)))]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[F(value__bax__foo)]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[KeyTransform(KeyTransform(F(value))), 'baz']) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[F(value__bax__foo), 'baz']) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=['bar', 'baz']) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bar__in', value=[['foo', 'bar']]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bar__in', value=[['foo', 'bar'], ['a']]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bax__in', value=[{'foo': 'bar'}, {'a': 'b'}]) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__h__in', value=[True, 'foo']) ... ERROR - test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__i__in', value=[False, 'foo']) ... ERROR -test_key_iregex (model_fields.test_jsonfield.TestQuerying.test_key_iregex) ... ERROR -test_key_istartswith (model_fields.test_jsonfield.TestQuerying.test_key_istartswith) ... ERROR -test_key_quoted_string (model_fields.test_jsonfield.TestQuerying.test_key_quoted_string) ... ERROR -test_key_regex (model_fields.test_jsonfield.TestQuerying.test_key_regex) ... ERROR -test_key_sql_injection (model_fields.test_jsonfield.TestQuerying.test_key_sql_injection) ... skipped "Database doesn't support feature(s): has_json_operators" -test_key_sql_injection_escape (model_fields.test_jsonfield.TestQuerying.test_key_sql_injection_escape) ... FAIL -test_key_startswith (model_fields.test_jsonfield.TestQuerying.test_key_startswith) ... ERROR -test_key_text_transform_char_lookup (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_char_lookup) ... ERROR -test_key_text_transform_from_lookup (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_from_lookup) ... ERROR -test_key_text_transform_from_lookup_invalid (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_from_lookup_invalid) ... ok -test_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_annotation_expression) ... ERROR -test_key_transform_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_expression) ... ERROR -test_key_transform_raw_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_raw_expression) ... ERROR -test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) ... - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__a') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__c') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__d') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__h') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__i') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__j') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__k') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__n') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__p') ... ERROR - test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__r') ... ERROR -test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) ... - test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) (lookup='value__h') ... ERROR - test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) (lookup='value__i') ... ERROR -test_lookup_exclude (model_fields.test_jsonfield.TestQuerying.test_lookup_exclude) ... ERROR -test_lookup_exclude_nonexistent_key (model_fields.test_jsonfield.TestQuerying.test_lookup_exclude_nonexistent_key) ... ERROR -test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) ... - test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_key') ... ERROR - test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_keys') ... ERROR - test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_any_keys') ... ERROR - test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__has_key') ... ERROR -test_nested_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_annotation_expression) ... ERROR -test_nested_key_transform_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_expression) ... ERROR -test_nested_key_transform_on_subquery (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_on_subquery) ... ERROR -test_nested_key_transform_raw_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_raw_expression) ... ERROR -test_none_key (model_fields.test_jsonfield.TestQuerying.test_none_key) ... ERROR -test_none_key_and_exact_lookup (model_fields.test_jsonfield.TestQuerying.test_none_key_and_exact_lookup) ... ERROR -test_none_key_exclude (model_fields.test_jsonfield.TestQuerying.test_none_key_exclude) ... ERROR -test_obj_subquery_lookup (model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup) ... ERROR -test_order_grouping_custom_decoder (model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder) ... ERROR -test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) ... - test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) (field='value') ... ERROR - test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) (field='value_custom') ... ERROR -test_ordering_grouping_by_count (model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count) ... ERROR -test_ordering_grouping_by_key_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform) ... ERROR -test_shallow_list_lookup (model_fields.test_jsonfield.TestQuerying.test_shallow_list_lookup) ... ERROR -test_shallow_lookup_obj_target (model_fields.test_jsonfield.TestQuerying.test_shallow_lookup_obj_target) ... ERROR -test_shallow_obj_lookup (model_fields.test_jsonfield.TestQuerying.test_shallow_obj_lookup) ... ERROR -test_usage_in_subquery (model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery) ... ERROR -test_ambiguous_str_value_deprecation (model_fields.test_jsonfield.TestSaveLoad.test_ambiguous_str_value_deprecation) ... ok -test_dict (model_fields.test_jsonfield.TestSaveLoad.test_dict) ... ok -test_json_null_different_from_sql_null (model_fields.test_jsonfield.TestSaveLoad.test_json_null_different_from_sql_null) ... ok -test_list (model_fields.test_jsonfield.TestSaveLoad.test_list) ... ok -test_null (model_fields.test_jsonfield.TestSaveLoad.test_null) ... ok -test_primitives (model_fields.test_jsonfield.TestSaveLoad.test_primitives) ... ok -test_realistic_object (model_fields.test_jsonfield.TestSaveLoad.test_realistic_object) ... ok -test_value_str_primitives_deprecation (model_fields.test_jsonfield.TestSaveLoad.test_value_str_primitives_deprecation) ... ok -test_value_from_object_instance_with_pk (model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk) ... ok -test_value_from_object_instance_without_pk (model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_without_pk) ... ok -test_slugfield_max_length (model_fields.test_slugfield.SlugFieldTests.test_slugfield_max_length) -SlugField honors max_length. ... ok -test_slugfield_unicode_max_length (model_fields.test_slugfield.SlugFieldTests.test_slugfield_unicode_max_length) -SlugField with allow_unicode=True honors max_length. ... ok -test_choices_generates_select_widget (model_fields.test_textfield.TextFieldTests.test_choices_generates_select_widget) -A TextField with choices uses a Select widget. ... ok -test_emoji (model_fields.test_textfield.TextFieldTests.test_emoji) ... ok -test_lookup_integer_in_textfield (model_fields.test_textfield.TextFieldTests.test_lookup_integer_in_textfield) ... ok -test_max_length_passed_to_formfield (model_fields.test_textfield.TextFieldTests.test_max_length_passed_to_formfield) -TextField passes its max_length attribute to form fields created using ... ok -test_to_python (model_fields.test_textfield.TextFieldTests.test_to_python) -TextField.to_python() should return a string. ... ok -test_creation (model_fields.test_uuid.TestAsPrimaryKey.test_creation) ... ok -test_two_level_foreign_keys (model_fields.test_uuid.TestAsPrimaryKey.test_two_level_foreign_keys) ... ok -test_underlying_field (model_fields.test_uuid.TestAsPrimaryKey.test_underlying_field) ... ok -test_update_with_related_model_id (model_fields.test_uuid.TestAsPrimaryKey.test_update_with_related_model_id) ... ok -test_update_with_related_model_instance (model_fields.test_uuid.TestAsPrimaryKey.test_update_with_related_model_instance) ... ok -test_uuid_pk_on_bulk_create (model_fields.test_uuid.TestAsPrimaryKey.test_uuid_pk_on_bulk_create) ... ok -test_uuid_pk_on_save (model_fields.test_uuid.TestAsPrimaryKey.test_uuid_pk_on_save) ... ok -test_contains (model_fields.test_uuid.TestQuerying.test_contains) ... ok -test_endswith (model_fields.test_uuid.TestQuerying.test_endswith) ... ok -test_exact (model_fields.test_uuid.TestQuerying.test_exact) ... ok -test_filter_with_expr (model_fields.test_uuid.TestQuerying.test_filter_with_expr) ... ERROR -test_icontains (model_fields.test_uuid.TestQuerying.test_icontains) ... ok -test_iendswith (model_fields.test_uuid.TestQuerying.test_iendswith) ... ok -test_iexact (model_fields.test_uuid.TestQuerying.test_iexact) ... ok -test_isnull (model_fields.test_uuid.TestQuerying.test_isnull) ... ok -test_istartswith (model_fields.test_uuid.TestQuerying.test_istartswith) ... ok -test_startswith (model_fields.test_uuid.TestQuerying.test_startswith) ... ok -test_null_handling (model_fields.test_uuid.TestSaveLoad.test_null_handling) ... ok -test_pk_validated (model_fields.test_uuid.TestSaveLoad.test_pk_validated) ... ok -test_str_instance_bad_hyphens (model_fields.test_uuid.TestSaveLoad.test_str_instance_bad_hyphens) ... ok -test_str_instance_hyphens (model_fields.test_uuid.TestSaveLoad.test_str_instance_hyphens) ... ok -test_str_instance_no_hyphens (model_fields.test_uuid.TestSaveLoad.test_str_instance_no_hyphens) ... ok -test_uuid_instance (model_fields.test_uuid.TestSaveLoad.test_uuid_instance) ... ok -test_wrong_value (model_fields.test_uuid.TestSaveLoad.test_wrong_value) ... ok -test_get_choices (model_fields.tests.GetChoicesLimitChoicesToTests.test_get_choices) ... ok -test_get_choices_reverse_related_field (model_fields.tests.GetChoicesLimitChoicesToTests.test_get_choices_reverse_related_field) ... ok -test_get_choices (model_fields.tests.GetChoicesOrderingTests.test_get_choices) ... ok -test_get_choices_default_ordering (model_fields.tests.GetChoicesOrderingTests.test_get_choices_default_ordering) ... ok -test_get_choices_reverse_related_field (model_fields.tests.GetChoicesOrderingTests.test_get_choices_reverse_related_field) ... ok -test_get_choices_reverse_related_field_default_ordering (model_fields.tests.GetChoicesOrderingTests.test_get_choices_reverse_related_field_default_ordering) ... ok -test_isinstance_of_autofield (model_fields.test_autofield.AutoFieldInheritanceTests.test_isinstance_of_autofield) ... ok -test_issubclass_of_autofield (model_fields.test_autofield.AutoFieldInheritanceTests.test_issubclass_of_autofield) ... ok -test_boolean_field_doesnt_accept_empty_input (model_fields.test_booleanfield.ValidationTest.test_boolean_field_doesnt_accept_empty_input) ... ok -test_nullbooleanfield_blank (model_fields.test_booleanfield.ValidationTest.test_nullbooleanfield_blank) -NullBooleanField shouldn't throw a validation error when given a value ... ok -test_deconstruct (model_fields.test_charfield.TestMethods.test_deconstruct) ... ok -test_charfield_cleans_empty_string_when_blank_true (model_fields.test_charfield.ValidationTests.test_charfield_cleans_empty_string_when_blank_true) ... ok -test_charfield_raises_error_on_empty_input (model_fields.test_charfield.ValidationTests.test_charfield_raises_error_on_empty_input) ... ok -test_charfield_raises_error_on_empty_string (model_fields.test_charfield.ValidationTests.test_charfield_raises_error_on_empty_string) ... ok -test_charfield_with_choices_cleans_valid_choice (model_fields.test_charfield.ValidationTests.test_charfield_with_choices_cleans_valid_choice) ... ok -test_charfield_with_choices_raises_error_on_invalid_choice (model_fields.test_charfield.ValidationTests.test_charfield_with_choices_raises_error_on_invalid_choice) ... ok -test_enum_choices_cleans_valid_string (model_fields.test_charfield.ValidationTests.test_enum_choices_cleans_valid_string) ... ok -test_enum_choices_invalid_input (model_fields.test_charfield.ValidationTests.test_enum_choices_invalid_input) ... ok -test_datefield_cleans_date (model_fields.test_datetimefield.ValidationTest.test_datefield_cleans_date) ... ok -test_formfield (model_fields.test_durationfield.TestFormField.test_formfield) ... ok -test_dumping (model_fields.test_durationfield.TestSerialization.test_dumping) ... ok -test_loading (model_fields.test_durationfield.TestSerialization.test_loading) ... ok -test_invalid_string (model_fields.test_durationfield.TestValidation.test_invalid_string) ... ok -test_all_field_types_should_have_flags (model_fields.test_field_flags.FieldFlagsTests.test_all_field_types_should_have_flags) ... ok -test_cardinality_m2m (model_fields.test_field_flags.FieldFlagsTests.test_cardinality_m2m) ... ok -test_cardinality_m2o (model_fields.test_field_flags.FieldFlagsTests.test_cardinality_m2o) ... ok -test_cardinality_o2m (model_fields.test_field_flags.FieldFlagsTests.test_cardinality_o2m) ... ok -test_cardinality_o2o (model_fields.test_field_flags.FieldFlagsTests.test_cardinality_o2o) ... ok -test_each_field_should_have_a_concrete_attribute (model_fields.test_field_flags.FieldFlagsTests.test_each_field_should_have_a_concrete_attribute) ... ok -test_each_field_should_have_a_has_rel_attribute (model_fields.test_field_flags.FieldFlagsTests.test_each_field_should_have_a_has_rel_attribute) ... ok -test_each_field_should_have_an_editable_attribute (model_fields.test_field_flags.FieldFlagsTests.test_each_field_should_have_an_editable_attribute) ... ok -test_each_object_should_have_auto_created (model_fields.test_field_flags.FieldFlagsTests.test_each_object_should_have_auto_created) ... ok -test_field_names_should_always_be_available (model_fields.test_field_flags.FieldFlagsTests.test_field_names_should_always_be_available) ... ok -test_hidden_flag (model_fields.test_field_flags.FieldFlagsTests.test_hidden_flag) ... ok -test_model_and_reverse_model_should_equal_on_relations (model_fields.test_field_flags.FieldFlagsTests.test_model_and_reverse_model_should_equal_on_relations) ... ok -test_non_concrete_fields (model_fields.test_field_flags.FieldFlagsTests.test_non_concrete_fields) ... ok -test_non_editable_fields (model_fields.test_field_flags.FieldFlagsTests.test_non_editable_fields) ... ok -test_null (model_fields.test_field_flags.FieldFlagsTests.test_null) ... ok -test_related_fields (model_fields.test_field_flags.FieldFlagsTests.test_related_fields) ... ok -test_callable_path (model_fields.test_filepathfield.FilePathFieldTests.test_callable_path) ... ok -test_path (model_fields.test_filepathfield.FilePathFieldTests.test_path) ... ok -test_choices_validation_supports_named_groups (model_fields.test_integerfield.ValidationTests.test_choices_validation_supports_named_groups) ... ok -test_enum_choices_cleans_valid_string (model_fields.test_integerfield.ValidationTests.test_enum_choices_cleans_valid_string) ... ok -test_enum_choices_invalid_input (model_fields.test_integerfield.ValidationTests.test_enum_choices_invalid_input) ... ok -test_integerfield_cleans_valid_string (model_fields.test_integerfield.ValidationTests.test_integerfield_cleans_valid_string) ... ok -test_integerfield_raises_error_on_empty_input (model_fields.test_integerfield.ValidationTests.test_integerfield_raises_error_on_empty_input) ... ok -test_integerfield_raises_error_on_invalid_intput (model_fields.test_integerfield.ValidationTests.test_integerfield_raises_error_on_invalid_intput) ... ok -test_integerfield_validates_zero_against_choices (model_fields.test_integerfield.ValidationTests.test_integerfield_validates_zero_against_choices) ... ok -test_nullable_integerfield_cleans_none_on_null_and_blank_true (model_fields.test_integerfield.ValidationTests.test_nullable_integerfield_cleans_none_on_null_and_blank_true) ... ok -test_nullable_integerfield_raises_error_with_blank_false (model_fields.test_integerfield.ValidationTests.test_nullable_integerfield_raises_error_with_blank_false) ... ok -test_formfield (model_fields.test_jsonfield.TestFormField.test_formfield) ... ok -test_formfield_custom_encoder_decoder (model_fields.test_jsonfield.TestFormField.test_formfield_custom_encoder_decoder) ... ok -test_deconstruct (model_fields.test_jsonfield.TestMethods.test_deconstruct) ... ok -test_deconstruct_custom_encoder_decoder (model_fields.test_jsonfield.TestMethods.test_deconstruct_custom_encoder_decoder) ... ok -test_get_prep_value (model_fields.test_jsonfield.TestMethods.test_get_prep_value) ... ok -test_get_transforms (model_fields.test_jsonfield.TestMethods.test_get_transforms) ... ok -test_key_transform_text_lookup_mixin_non_key_transform (model_fields.test_jsonfield.TestMethods.test_key_transform_text_lookup_mixin_non_key_transform) ... ok -test_dumping (model_fields.test_jsonfield.TestSerialization.test_dumping) ... ok -test_loading (model_fields.test_jsonfield.TestSerialization.test_loading) ... ok -test_xml_serialization (model_fields.test_jsonfield.TestSerialization.test_xml_serialization) ... ok -test_custom_encoder (model_fields.test_jsonfield.TestValidation.test_custom_encoder) ... ok -test_invalid_decoder (model_fields.test_jsonfield.TestValidation.test_invalid_decoder) ... ok -test_invalid_encoder (model_fields.test_jsonfield.TestValidation.test_invalid_encoder) ... ok -test_validation_error (model_fields.test_jsonfield.TestValidation.test_validation_error) ... ok -test_abstract_model_app_relative_foreign_key (model_fields.test_manytomanyfield.ManyToManyFieldTests.test_abstract_model_app_relative_foreign_key) ... ok -test_abstract_model_pending_operations (model_fields.test_manytomanyfield.ManyToManyFieldTests.test_abstract_model_pending_operations) -Many-to-many fields declared on abstract models should not add lazy ... ok -test_invalid_to_parameter (model_fields.test_manytomanyfield.ManyToManyFieldTests.test_invalid_to_parameter) ... ok -test_through_db_table_mutually_exclusive (model_fields.test_manytomanyfield.ManyToManyFieldTests.test_through_db_table_mutually_exclusive) ... ok -test_AutoField (model_fields.test_promises.PromiseTest.test_AutoField) ... ok -test_BinaryField (model_fields.test_promises.PromiseTest.test_BinaryField) ... ok -test_BooleanField (model_fields.test_promises.PromiseTest.test_BooleanField) ... ok -test_CharField (model_fields.test_promises.PromiseTest.test_CharField) ... ok -test_DateField (model_fields.test_promises.PromiseTest.test_DateField) ... ok -test_DateTimeField (model_fields.test_promises.PromiseTest.test_DateTimeField) ... ok -test_DecimalField (model_fields.test_promises.PromiseTest.test_DecimalField) ... ok -test_EmailField (model_fields.test_promises.PromiseTest.test_EmailField) ... ok -test_FileField (model_fields.test_promises.PromiseTest.test_FileField) ... ok -test_FilePathField (model_fields.test_promises.PromiseTest.test_FilePathField) ... ok -test_FloatField (model_fields.test_promises.PromiseTest.test_FloatField) ... ok -test_GenericIPAddressField (model_fields.test_promises.PromiseTest.test_GenericIPAddressField) ... ok -test_IPAddressField (model_fields.test_promises.PromiseTest.test_IPAddressField) ... ok -test_ImageField (model_fields.test_promises.PromiseTest.test_ImageField) ... ok -test_IntegerField (model_fields.test_promises.PromiseTest.test_IntegerField) ... ok -test_PositiveBigIntegerField (model_fields.test_promises.PromiseTest.test_PositiveBigIntegerField) ... ok -test_PositiveIntegerField (model_fields.test_promises.PromiseTest.test_PositiveIntegerField) ... ok -test_PositiveSmallIntegerField (model_fields.test_promises.PromiseTest.test_PositiveSmallIntegerField) ... ok -test_SlugField (model_fields.test_promises.PromiseTest.test_SlugField) ... ok -test_SmallIntegerField (model_fields.test_promises.PromiseTest.test_SmallIntegerField) ... ok -test_TextField (model_fields.test_promises.PromiseTest.test_TextField) ... ok -test_TimeField (model_fields.test_promises.PromiseTest.test_TimeField) ... ok -test_URLField (model_fields.test_promises.PromiseTest.test_URLField) ... ok -test_deconstruct (model_fields.test_textfield.TestMethods.test_deconstruct) ... ok -test_unsaved_fk (model_fields.test_uuid.TestAsPrimaryKeyTransactionTests.test_unsaved_fk) ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' -test_deconstruct (model_fields.test_uuid.TestMethods.test_deconstruct) ... ok -test_to_python (model_fields.test_uuid.TestMethods.test_to_python) ... ok -test_to_python_int_too_large (model_fields.test_uuid.TestMethods.test_to_python_int_too_large) ... ok -test_to_python_int_values (model_fields.test_uuid.TestMethods.test_to_python_int_values) ... ok -test_dumping (model_fields.test_uuid.TestSerialization.test_dumping) ... ok -test_loading (model_fields.test_uuid.TestSerialization.test_loading) ... ok -test_nullable_loading (model_fields.test_uuid.TestSerialization.test_nullable_loading) ... ok -test_invalid_uuid (model_fields.test_uuid.TestValidation.test_invalid_uuid) ... ok -test_uuid_instance_ok (model_fields.test_uuid.TestValidation.test_uuid_instance_ok) ... ok -test_abstract_inherited_fields (model_fields.tests.BasicFieldTests.test_abstract_inherited_fields) -Field instances from abstract models are not equal. ... ok -test_choices_form_class (model_fields.tests.BasicFieldTests.test_choices_form_class) -Can supply a custom choices form class to Field.formfield() ... ok -test_deconstruct_nested_field (model_fields.tests.BasicFieldTests.test_deconstruct_nested_field) -deconstruct() uses __qualname__ for nested class support. ... ok -test_field_instance_is_picklable (model_fields.tests.BasicFieldTests.test_field_instance_is_picklable) -Field instances can be pickled. ... ok -test_field_name (model_fields.tests.BasicFieldTests.test_field_name) -A defined field name (name="fieldname") is used instead of the model ... ok -test_field_ordering (model_fields.tests.BasicFieldTests.test_field_ordering) -Fields are ordered based on their creation. ... ok -test_field_repr (model_fields.tests.BasicFieldTests.test_field_repr) -__repr__() of a field displays its name. ... ok -test_field_repr_nested (model_fields.tests.BasicFieldTests.test_field_repr_nested) -__repr__() uses __qualname__ for nested class support. ... ok -test_field_str (model_fields.tests.BasicFieldTests.test_field_str) ... ok -test_field_verbose_name (model_fields.tests.BasicFieldTests.test_field_verbose_name) ... ok -test_formfield_disabled (model_fields.tests.BasicFieldTests.test_formfield_disabled) -Field.formfield() sets disabled for fields with choices. ... ok -test_hash_immutability (model_fields.tests.BasicFieldTests.test_hash_immutability) ... ok -test_show_hidden_initial (model_fields.tests.BasicFieldTests.test_show_hidden_initial) -Fields with choices respect show_hidden_initial as a kwarg to ... ok -test_check (model_fields.tests.ChoicesTests.test_check) ... ok -test_choices (model_fields.tests.ChoicesTests.test_choices) ... ok -test_flatchoices (model_fields.tests.ChoicesTests.test_flatchoices) ... ok -test_formfield (model_fields.tests.ChoicesTests.test_formfield) ... ok -test_invalid_choice (model_fields.tests.ChoicesTests.test_invalid_choice) ... ok -test_blank_in_choices (model_fields.tests.GetChoicesTests.test_blank_in_choices) ... ok -test_blank_in_grouped_choices (model_fields.tests.GetChoicesTests.test_blank_in_grouped_choices) ... ok -test_empty_choices (model_fields.tests.GetChoicesTests.test_empty_choices) ... ok -test_lazy_strings_not_evaluated (model_fields.tests.GetChoicesTests.test_lazy_strings_not_evaluated) ... ok -test_choices_and_field_display (model_fields.tests.GetFieldDisplayTests.test_choices_and_field_display) -get_choices() interacts with get_FIELD_display() to return the expected ... ok -test_empty_iterator_choices (model_fields.tests.GetFieldDisplayTests.test_empty_iterator_choices) -get_choices() works with empty iterators. ... ok -test_get_FIELD_display_translated (model_fields.tests.GetFieldDisplayTests.test_get_FIELD_display_translated) -A translated display value is coerced to str. ... ok -test_iterator_choices (model_fields.tests.GetFieldDisplayTests.test_iterator_choices) -get_choices() works with Iterators. ... ok -test_overriding_FIELD_display (model_fields.tests.GetFieldDisplayTests.test_overriding_FIELD_display) ... ok -test_overriding_inherited_FIELD_display (model_fields.tests.GetFieldDisplayTests.test_overriding_inherited_FIELD_display) ... ok +test_database_queried (backends.base.test_base.ExecuteWrapperTests.test_database_queried) ... ok +test_nested_wrapper_invoked (backends.base.test_base.ExecuteWrapperTests.test_nested_wrapper_invoked) ... ok +test_outer_wrapper_blocks (backends.base.test_base.ExecuteWrapperTests.test_outer_wrapper_blocks) ... ok +test_wrapper_connection_specific (backends.base.test_base.ExecuteWrapperTests.test_wrapper_connection_specific) ... ok +test_wrapper_gets_sql (backends.base.test_base.ExecuteWrapperTests.test_wrapper_gets_sql) ... ok +test_wrapper_invoked (backends.base.test_base.ExecuteWrapperTests.test_wrapper_invoked) ... ok +test_wrapper_invoked_many (backends.base.test_base.ExecuteWrapperTests.test_wrapper_invoked_many) ... ok +test_multi_database_init_connection_state_called_once (backends.base.test_base.MultiDatabaseTests.test_multi_database_init_connection_state_called_once) ... ok +test_distinct_on_fields (backends.base.test_operations.DatabaseOperationTests.test_distinct_on_fields) ... ok +test_subtract_temporals (backends.base.test_operations.DatabaseOperationTests.test_subtract_temporals) ... ok +test_window_frame_raise_not_supported_error (backends.base.test_operations.DatabaseOperationTests.test_window_frame_raise_not_supported_error) ... ok +test_allows_auto_pk_0 (backends.mysql.test_features.TestFeatures.test_allows_auto_pk_0) ... skipped 'MySQL tests' +test_allows_group_by_selected_pks (backends.mysql.test_features.TestFeatures.test_allows_group_by_selected_pks) ... skipped 'MySQL tests' +test_skip_locked_no_wait (backends.mysql.test_features.TestFeatures.test_skip_locked_no_wait) ... skipped 'MySQL tests' +test_supports_transactions (backends.mysql.test_features.TestFeatures.test_supports_transactions) +All storage engines except MyISAM support transactions. ... skipped 'MySQL tests' +test_parse_constraint_columns (backends.mysql.test_introspection.ParsingTests.test_parse_constraint_columns) ... skipped 'MySQL tests' +test_get_storage_engine (backends.mysql.test_introspection.StorageEngineTests.test_get_storage_engine) ... skipped 'MySQL tests' +test_quote_value (backends.mysql.test_schema.SchemaEditorTests.test_quote_value) ... skipped 'MySQL tests' +test_auto_is_null_auto_config (backends.mysql.tests.IsolationLevelTests.test_auto_is_null_auto_config) ... skipped 'MySQL tests' +test_connect_isolation_level (backends.mysql.tests.IsolationLevelTests.test_connect_isolation_level) ... skipped 'MySQL tests' +test_default_isolation_level (backends.mysql.tests.IsolationLevelTests.test_default_isolation_level) ... skipped 'MySQL tests' +test_isolation_level_validation (backends.mysql.tests.IsolationLevelTests.test_isolation_level_validation) ... skipped 'MySQL tests' +test_setting_isolation_level (backends.mysql.tests.IsolationLevelTests.test_setting_isolation_level) ... skipped 'MySQL tests' +test_uppercase_isolation_level (backends.mysql.tests.IsolationLevelTests.test_uppercase_isolation_level) ... skipped 'MySQL tests' +test_check_database_version_supported (backends.mysql.tests.Tests.test_check_database_version_supported) ... skipped 'MySQL tests' +test_create_test_db (backends.oracle.test_creation.DatabaseCreationTests.test_create_test_db) ... skipped 'Oracle tests' +test_create_test_user (backends.oracle.test_creation.DatabaseCreationTests.test_create_test_user) ... skipped 'Oracle tests' +test_oracle_managed_files (backends.oracle.test_creation.DatabaseCreationTests.test_oracle_managed_files) ... skipped 'Oracle tests' +test_boolean_constraints (backends.oracle.tests.Tests.test_boolean_constraints) +Boolean fields have check constraints on their values. ... skipped 'Oracle tests' +test_check_database_version_supported (backends.oracle.tests.Tests.test_check_database_version_supported) ... skipped 'Oracle tests' +test_cursor_var (backends.oracle.tests.Tests.test_cursor_var) +Cursor variables can be passed as query parameters. ... skipped 'Oracle tests' +test_dbms_session (backends.oracle.tests.Tests.test_dbms_session) +A stored procedure can be called through a cursor wrapper. ... skipped 'Oracle tests' +test_order_of_nls_parameters (backends.oracle.tests.Tests.test_order_of_nls_parameters) +An 'almost right' datetime works with configured NLS parameters ... skipped 'Oracle tests' +test_quote_name (backends.oracle.tests.Tests.test_quote_name) +'%' chars are escaped for query execution. ... skipped 'Oracle tests' +test_quote_name_db_table (backends.oracle.tests.Tests.test_quote_name_db_table) ... skipped 'Oracle tests' +test_get_sequences (backends.postgresql.test_introspection.DatabaseSequenceTests.test_get_sequences) ... skipped 'Test only for PostgreSQL' +test_get_sequences_old_serial (backends.postgresql.test_introspection.DatabaseSequenceTests.test_get_sequences_old_serial) ... skipped 'Test only for PostgreSQL' +test_closed_server_side_cursor (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_closed_server_side_cursor) ... skipped 'PostgreSQL tests' +test_server_side_cursor (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_server_side_cursor) ... skipped 'PostgreSQL tests' +test_server_side_cursor_many_cursors (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_server_side_cursor_many_cursors) ... skipped 'PostgreSQL tests' +test_server_side_cursors_setting (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_server_side_cursors_setting) ... skipped 'PostgreSQL tests' +test_values (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_values) ... skipped 'PostgreSQL tests' +test_values_list (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_values_list) ... skipped 'PostgreSQL tests' +test_values_list_fields_not_equal_to_names (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_values_list_fields_not_equal_to_names) ... skipped 'PostgreSQL tests' +test_values_list_flat (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_values_list_flat) ... skipped 'PostgreSQL tests' +test_check_database_version_supported (backends.postgresql.tests.Tests.test_check_database_version_supported) ... skipped 'PostgreSQL tests' +test_client_encoding_utf8_enforce (backends.postgresql.tests.Tests.test_client_encoding_utf8_enforce) ... skipped 'PostgreSQL tests' +test_compose_sql_when_no_connection (backends.postgresql.tests.Tests.test_compose_sql_when_no_connection) ... skipped 'PostgreSQL tests' +test_connect_and_rollback (backends.postgresql.tests.Tests.test_connect_and_rollback) +PostgreSQL shouldn't roll back SET TIME ZONE, even if the first ... skipped 'PostgreSQL tests' +test_connect_custom_cursor_factory (backends.postgresql.tests.Tests.test_connect_custom_cursor_factory) +A custom cursor factory can be configured with DATABASES["options"] ... skipped 'PostgreSQL tests' +test_connect_invalid_isolation_level (backends.postgresql.tests.Tests.test_connect_invalid_isolation_level) ... skipped 'PostgreSQL tests' +test_connect_isolation_level (backends.postgresql.tests.Tests.test_connect_isolation_level) +The transaction level can be configured with ... skipped 'PostgreSQL tests' +test_connect_no_is_usable_checks (backends.postgresql.tests.Tests.test_connect_no_is_usable_checks) ... skipped 'PostgreSQL tests' +test_connect_non_autocommit (backends.postgresql.tests.Tests.test_connect_non_autocommit) +The connection wrapper shouldn't believe that autocommit is enabled ... skipped 'PostgreSQL tests' +test_connect_role (backends.postgresql.tests.Tests.test_connect_role) +The session role can be configured with DATABASES ... skipped 'PostgreSQL tests' +test_connect_server_side_binding (backends.postgresql.tests.Tests.test_connect_server_side_binding) +The server-side parameters binding role can be enabled with DATABASES ... skipped 'PostgreSQL tests' +test_copy_cursors (backends.postgresql.tests.Tests.test_copy_cursors) ... skipped 'PostgreSQL tests' +test_copy_to_expert_cursors (backends.postgresql.tests.Tests.test_copy_to_expert_cursors) ... skipped 'PostgreSQL tests' +test_correct_extraction_psycopg_version (backends.postgresql.tests.Tests.test_correct_extraction_psycopg_version) ... skipped 'PostgreSQL tests' +test_database_name_empty (backends.postgresql.tests.Tests.test_database_name_empty) ... skipped 'PostgreSQL tests' +test_database_name_too_long (backends.postgresql.tests.Tests.test_database_name_too_long) ... skipped 'PostgreSQL tests' +test_get_database_version (backends.postgresql.tests.Tests.test_get_database_version) ... skipped 'PostgreSQL tests' +test_lookup_cast (backends.postgresql.tests.Tests.test_lookup_cast) ... skipped 'PostgreSQL tests' +test_lookup_cast_isnull_noop (backends.postgresql.tests.Tests.test_lookup_cast_isnull_noop) ... skipped 'PostgreSQL tests' +test_nodb_cursor (backends.postgresql.tests.Tests.test_nodb_cursor) +The _nodb_cursor() fallbacks to the default connection database when ... skipped 'PostgreSQL tests' +test_nodb_cursor_raises_postgres_authentication_failure (backends.postgresql.tests.Tests.test_nodb_cursor_raises_postgres_authentication_failure) +_nodb_cursor() re-raises authentication failure to the 'postgres' db ... skipped 'PostgreSQL tests' +test_nodb_cursor_reraise_exceptions (backends.postgresql.tests.Tests.test_nodb_cursor_reraise_exceptions) ... skipped 'PostgreSQL tests' +test_select_ascii_array (backends.postgresql.tests.Tests.test_select_ascii_array) ... skipped 'PostgreSQL tests' +test_select_unicode_array (backends.postgresql.tests.Tests.test_select_unicode_array) ... skipped 'PostgreSQL tests' +test_service_name (backends.postgresql.tests.Tests.test_service_name) ... skipped 'PostgreSQL tests' +test_service_name_default_db (backends.postgresql.tests.Tests.test_service_name_default_db) ... skipped 'PostgreSQL tests' +test_supports_json_field_operational_error (backends.sqlite.test_features.FeaturesTests.test_supports_json_field_operational_error) ... skipped 'SQLite tests.' +test_get_primary_key_column (backends.sqlite.test_introspection.IntrospectionTests.test_get_primary_key_column) +Get the primary key column regardless of whether or not it has ... skipped 'SQLite tests' +test_get_primary_key_column_pk_constraint (backends.sqlite.test_introspection.IntrospectionTests.test_get_primary_key_column_pk_constraint) ... skipped 'SQLite tests' +test_check_and_unique_column (backends.sqlite.test_introspection.ParsingTests.test_check_and_unique_column) ... skipped 'SQLite tests' +test_check_column (backends.sqlite.test_introspection.ParsingTests.test_check_column) ... skipped 'SQLite tests' +test_check_column_with_operators_and_functions (backends.sqlite.test_introspection.ParsingTests.test_check_column_with_operators_and_functions) ... skipped 'SQLite tests' +test_check_constraint (backends.sqlite.test_introspection.ParsingTests.test_check_constraint) ... skipped 'SQLite tests' +test_unique_column (backends.sqlite.test_introspection.ParsingTests.test_unique_column) ... skipped 'SQLite tests' +test_unique_constraint (backends.sqlite.test_introspection.ParsingTests.test_unique_constraint) ... skipped 'SQLite tests' +test_unique_constraint_multicolumn (backends.sqlite.test_introspection.ParsingTests.test_unique_constraint_multicolumn) ... skipped 'SQLite tests' +test_sql_flush (backends.sqlite.test_operations.SQLiteOperationsTests.test_sql_flush) ... skipped 'SQLite tests.' +test_sql_flush_allow_cascade (backends.sqlite.test_operations.SQLiteOperationsTests.test_sql_flush_allow_cascade) ... skipped 'SQLite tests.' +test_sql_flush_sequences (backends.sqlite.test_operations.SQLiteOperationsTests.test_sql_flush_sequences) ... skipped 'SQLite tests.' +test_sql_flush_sequences_allow_cascade (backends.sqlite.test_operations.SQLiteOperationsTests.test_sql_flush_sequences_allow_cascade) ... skipped 'SQLite tests.' +test_parameter_escaping (backends.sqlite.tests.EscapingChecks.test_parameter_escaping) ... skipped 'SQLite tests' +test_parameter_escaping (backends.sqlite.tests.EscapingChecksDebug.test_parameter_escaping) ... skipped 'SQLite tests' +test_large_number_of_parameters (backends.sqlite.tests.LastExecutedQueryTest.test_large_number_of_parameters) ... skipped 'Test only for SQLite' +test_no_interpolation (backends.sqlite.tests.LastExecutedQueryTest.test_no_interpolation) ... skipped 'Test only for SQLite' +test_parameter_quoting (backends.sqlite.tests.LastExecutedQueryTest.test_parameter_quoting) ... skipped 'Test only for SQLite' +test_aggregation (backends.sqlite.tests.Tests.test_aggregation) +Raise NotSupportedError when aggregating on date/time fields. ... skipped 'SQLite tests' +test_check_database_version_supported (backends.sqlite.tests.Tests.test_check_database_version_supported) ... skipped 'SQLite tests' +test_distinct_aggregation (backends.sqlite.tests.Tests.test_distinct_aggregation) ... skipped 'SQLite tests' +test_distinct_aggregation_multiple_args_no_distinct (backends.sqlite.tests.Tests.test_distinct_aggregation_multiple_args_no_distinct) ... skipped 'SQLite tests' +test_memory_db_test_name (backends.sqlite.tests.Tests.test_memory_db_test_name) +A named in-memory db should be allowed where supported. ... skipped 'SQLite tests' +test_pathlib_name (backends.sqlite.tests.Tests.test_pathlib_name) ... skipped 'SQLite tests' +test_regexp_function (backends.sqlite.tests.Tests.test_regexp_function) ... skipped 'SQLite tests' +test_can_reference_existent (backends.tests.DBConstraintTestCase.test_can_reference_existent) ... ok +test_can_reference_non_existent (backends.tests.DBConstraintTestCase.test_can_reference_non_existent) ... ok +test_many_to_many (backends.tests.DBConstraintTestCase.test_many_to_many) ... ok +test_django_date_extract (backends.tests.DateQuotingTest.test_django_date_extract) +Test the custom ``django_date_extract method``, in particular against fields ... ok +test_django_date_trunc (backends.tests.DateQuotingTest.test_django_date_trunc) +Test the custom ``django_date_trunc method``, in particular against ... ok +test_parameter_escaping (backends.tests.EscapingChecks.test_parameter_escaping) ... ok +test_paramless_no_escaping (backends.tests.EscapingChecks.test_paramless_no_escaping) ... ok +test_parameter_escaping (backends.tests.EscapingChecksDebug.test_parameter_escaping) ... ok +test_paramless_no_escaping (backends.tests.EscapingChecksDebug.test_paramless_no_escaping) ... ok +test_debug_sql (backends.tests.LastExecutedQueryTest.test_debug_sql) ... ok +test_last_executed_query (backends.tests.LastExecutedQueryTest.test_last_executed_query) ... ok +test_last_executed_query_dict (backends.tests.LastExecutedQueryTest.test_last_executed_query_dict) ... ok +test_last_executed_query_dict_overlap_keys (backends.tests.LastExecutedQueryTest.test_last_executed_query_dict_overlap_keys) ... ok +test_last_executed_query_with_duplicate_params (backends.tests.LastExecutedQueryTest.test_last_executed_query_with_duplicate_params) ... ok +test_last_executed_query_without_previous_query (backends.tests.LastExecutedQueryTest.test_last_executed_query_without_previous_query) +last_executed_query should not raise an exception even if no previous ... ok +test_query_encoding (backends.tests.LastExecutedQueryTest.test_query_encoding) +last_executed_query() returns a string. ... ok +test_zero_as_autoval (backends.tests.MySQLPKZeroTests.test_zero_as_autoval) ... skipped 'Database has feature(s) allows_auto_pk_0' +test_bad_parameter_count (backends.tests.ParameterHandlingTest.test_bad_parameter_count) +An executemany call with too many/not enough parameters will raise an ... ok +test_generic_relation (backends.tests.SequenceResetTest.test_generic_relation) +Sequence names are correct when resetting generic relations (Ref #13941) ... FAIL +test_health_checks_disabled (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_disabled) ... ok +test_health_checks_enabled (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_enabled) ... ok +test_health_checks_enabled_errors_occurred (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_enabled_errors_occurred) ... ok +test_set_autocommit_health_checks_enabled (backends.base.test_base.ConnectionHealthChecksTests.test_set_autocommit_health_checks_enabled) ... ok +test_commit_debug_log (backends.base.test_base.DatabaseWrapperLoggingTests.test_commit_debug_log) ... ok +test_no_logs_without_debug (backends.base.test_base.DatabaseWrapperLoggingTests.test_no_logs_without_debug) ... ok +test_rollback_debug_log (backends.base.test_base.DatabaseWrapperLoggingTests.test_rollback_debug_log) ... ok +test_check_database_version_supported_with_none_as_database_version (backends.base.test_base.DatabaseWrapperTests.test_check_database_version_supported_with_none_as_database_version) ... ok +test_get_database_version (backends.base.test_base.DatabaseWrapperTests.test_get_database_version) ... ok +test_initialization_class_attributes (backends.base.test_base.DatabaseWrapperTests.test_initialization_class_attributes) +The "initialization" class attributes like client_class and ... ok +test_initialization_display_name (backends.base.test_base.DatabaseWrapperTests.test_initialization_display_name) ... ok +test_repr (backends.base.test_base.DatabaseWrapperTests.test_repr) ... ok +test_runshell_use_environ (backends.base.test_client.SimpleDatabaseClientTests.test_runshell_use_environ) ... ok +test_settings_to_cmd_args_env (backends.base.test_client.SimpleDatabaseClientTests.test_settings_to_cmd_args_env) ... ok +test_mark_expected_failures_and_skips_call (backends.base.test_creation.TestDbCreationTests.test_mark_expected_failures_and_skips_call) +mark_expected_failures_and_skips() isn't called unless ... ok +test_migrate_test_setting_false (backends.base.test_creation.TestDbCreationTests.test_migrate_test_setting_false) ... ok +test_migrate_test_setting_false_ensure_schema (backends.base.test_creation.TestDbCreationTests.test_migrate_test_setting_false_ensure_schema) ... ok +test_migrate_test_setting_true (backends.base.test_creation.TestDbCreationTests.test_migrate_test_setting_true) ... ok +test_custom_test_name (backends.base.test_creation.TestDbSignatureTests.test_custom_test_name) ... ok +test_custom_test_name_with_test_prefix (backends.base.test_creation.TestDbSignatureTests.test_custom_test_name_with_test_prefix) ... ok +test_default_name (backends.base.test_creation.TestDbSignatureTests.test_default_name) ... ok +test_circular_reference (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference) ... ok +test_circular_reference_with_natural_key (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference_with_natural_key) ... ERROR +test_self_reference (backends.base.test_creation.TestDeserializeDbFromString.test_self_reference) ... ERROR +test_serialize_db_to_string_base_manager (backends.base.test_creation.TestDeserializeDbFromString.test_serialize_db_to_string_base_manager) ... ERROR +test_mark_expected_failures_and_skips (backends.base.test_creation.TestMarkTests.test_mark_expected_failures_and_skips) ... ok +test_nonexistent_feature (backends.base.test_features.TestDatabaseFeatures.test_nonexistent_feature) ... ok +test_get_constraints (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_constraints) ... ok +test_get_relations (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_relations) ... ok +test_get_sequences (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_sequences) ... ok +test_get_table_description (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_table_description) ... ok +test_get_table_list (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_table_list) ... ok +test_adapt_datetimefield_value_expression (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_datetimefield_value_expression) ... ok +test_adapt_datetimefield_value_none (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_datetimefield_value_none) ... ok +test_adapt_timefield_value (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_timefield_value) ... ok +test_adapt_timefield_value_expression (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_timefield_value_expression) ... ok +test_adapt_timefield_value_none (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_timefield_value_none) ... ok +test_adapt_timefield_value_unaware (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_timefield_value_unaware) ... ok +test_adapt_unknown_value_date (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_unknown_value_date) ... ok +test_adapt_unknown_value_decimal (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_unknown_value_decimal) ... ok +test_adapt_unknown_value_time (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_unknown_value_time) ... ok +test_date_extract_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_date_extract_sql) ... ok +test_date_trunc_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_date_trunc_sql) ... ok +test_datetime_cast_date_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_datetime_cast_date_sql) ... ok +test_datetime_cast_time_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_datetime_cast_time_sql) ... ok +test_datetime_extract_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_datetime_extract_sql) ... ok +test_datetime_trunc_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_datetime_trunc_sql) ... ok +test_deferrable_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_deferrable_sql) ... ok +test_end_transaction_rollback (backends.base.test_operations.SimpleDatabaseOperationTests.test_end_transaction_rollback) ... ok +test_format_for_duration_arithmetic (backends.base.test_operations.SimpleDatabaseOperationTests.test_format_for_duration_arithmetic) ... ok +test_no_limit_value (backends.base.test_operations.SimpleDatabaseOperationTests.test_no_limit_value) ... ok +test_pk_default_value (backends.base.test_operations.SimpleDatabaseOperationTests.test_pk_default_value) ... ok +test_quote_name (backends.base.test_operations.SimpleDatabaseOperationTests.test_quote_name) ... ok +test_regex_lookup (backends.base.test_operations.SimpleDatabaseOperationTests.test_regex_lookup) ... ok +test_sequence_reset_by_name_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_sequence_reset_by_name_sql) ... ok +test_set_time_zone_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_set_time_zone_sql) ... ok +test_sql_flush (backends.base.test_operations.SimpleDatabaseOperationTests.test_sql_flush) ... ok +test_tablespace_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_tablespace_sql) ... ok +test_time_extract_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_time_extract_sql) ... ok +test_time_trunc_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_time_trunc_sql) ... ok +test_execute_sql_flush_statements (backends.base.test_operations.SqlFlushTests.test_execute_sql_flush_statements) ... FAIL +test_sql_flush_no_tables (backends.base.test_operations.SqlFlushTests.test_sql_flush_no_tables) ... ok +test_effective_default_callable (backends.base.test_schema.SchemaEditorTests.test_effective_default_callable) +SchemaEditor.effective_default() shouldn't call callable defaults. ... ok +test_clone_test_db_database_exists (backends.mysql.test_creation.DatabaseCreationTests.test_clone_test_db_database_exists) ... skipped 'MySQL tests' +test_clone_test_db_options_ordering (backends.mysql.test_creation.DatabaseCreationTests.test_clone_test_db_options_ordering) ... skipped 'MySQL tests' +test_create_test_db_database_exists (backends.mysql.test_creation.DatabaseCreationTests.test_create_test_db_database_exists) ... skipped 'MySQL tests' +test_create_test_db_unexpected_error (backends.mysql.test_creation.DatabaseCreationTests.test_create_test_db_unexpected_error) ... skipped 'MySQL tests' +test_sql_flush (backends.mysql.test_operations.MySQLOperationsTests.test_sql_flush) ... skipped 'MySQL tests.' +test_sql_flush_sequences (backends.mysql.test_operations.MySQLOperationsTests.test_sql_flush_sequences) ... skipped 'MySQL tests.' +test_get_sequences (backends.oracle.test_introspection.DatabaseSequenceTests.test_get_sequences) ... skipped 'Oracle tests' +test_get_sequences_manually_created_index (backends.oracle.test_introspection.DatabaseSequenceTests.test_get_sequences_manually_created_index) ... skipped 'Oracle tests' +test_bulk_batch_size (backends.oracle.test_operations.OperationsTests.test_bulk_batch_size) ... skipped 'Oracle tests' +test_sequence_name_truncation (backends.oracle.test_operations.OperationsTests.test_sequence_name_truncation) ... skipped 'Oracle tests' +test_sql_flush (backends.oracle.test_operations.OperationsTests.test_sql_flush) ... skipped 'Oracle tests' +test_sql_flush_allow_cascade (backends.oracle.test_operations.OperationsTests.test_sql_flush_allow_cascade) ... skipped 'Oracle tests' +test_sql_flush_sequences (backends.oracle.test_operations.OperationsTests.test_sql_flush_sequences) ... skipped 'Oracle tests' +test_sql_flush_sequences_allow_cascade (backends.oracle.test_operations.OperationsTests.test_sql_flush_sequences_allow_cascade) ... skipped 'Oracle tests' +test_hidden_no_data_found_exception (backends.oracle.tests.TransactionalTests.test_hidden_no_data_found_exception) ... skipped 'Oracle tests' +test_password_with_at_sign (backends.oracle.tests.TransactionalTests.test_password_with_at_sign) ... skipped 'Oracle tests' +test_create_test_db (backends.postgresql.test_creation.DatabaseCreationTests.test_create_test_db) ... skipped 'PostgreSQL tests' +test_sql_table_creation_raises_with_collation (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_raises_with_collation) ... skipped 'PostgreSQL tests' +test_sql_table_creation_suffix_with_encoding (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_suffix_with_encoding) ... skipped 'PostgreSQL tests' +test_sql_table_creation_suffix_with_encoding_and_template (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_suffix_with_encoding_and_template) ... skipped 'PostgreSQL tests' +test_sql_table_creation_suffix_with_none_settings (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_suffix_with_none_settings) ... skipped 'PostgreSQL tests' +test_sql_table_creation_suffix_with_template (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_suffix_with_template) ... skipped 'PostgreSQL tests' +test_sql_flush (backends.postgresql.test_operations.PostgreSQLOperationsTests.test_sql_flush) ... skipped 'PostgreSQL tests.' +test_sql_flush_allow_cascade (backends.postgresql.test_operations.PostgreSQLOperationsTests.test_sql_flush_allow_cascade) ... skipped 'PostgreSQL tests.' +test_sql_flush_sequences (backends.postgresql.test_operations.PostgreSQLOperationsTests.test_sql_flush_sequences) ... skipped 'PostgreSQL tests.' +test_sql_flush_sequences_allow_cascade (backends.postgresql.test_operations.PostgreSQLOperationsTests.test_sql_flush_sequences_allow_cascade) ... skipped 'PostgreSQL tests.' +test_custom_test_name (backends.sqlite.test_creation.TestDbSignatureTests.test_custom_test_name) ... skipped 'SQLite tests' +test_get_test_db_clone_settings_name (backends.sqlite.test_creation.TestDbSignatureTests.test_get_test_db_clone_settings_name) ... skipped 'SQLite tests' +test_get_test_db_clone_settings_not_supported (backends.sqlite.test_creation.TestDbSignatureTests.test_get_test_db_clone_settings_not_supported) ... skipped 'SQLite tests' +test_sqlite_date_trunc (backends.sqlite.test_functions.FunctionTests.test_sqlite_date_trunc) ... ok +test_sqlite_datetime_trunc (backends.sqlite.test_functions.FunctionTests.test_sqlite_datetime_trunc) ... ok +test_sqlite_time_trunc (backends.sqlite.test_functions.FunctionTests.test_sqlite_time_trunc) ... ok +test_autoincrement (backends.sqlite.tests.SchemaTests.test_autoincrement) +auto_increment fields are created with the AUTOINCREMENT keyword ... skipped 'SQLite tests' +test_constraint_checks_disabled_atomic_allowed (backends.sqlite.tests.SchemaTests.test_constraint_checks_disabled_atomic_allowed) +SQLite schema editor is usable within an outer transaction as long as ... skipped 'SQLite tests' +test_disable_constraint_checking_failure_disallowed (backends.sqlite.tests.SchemaTests.test_disable_constraint_checking_failure_disallowed) +SQLite schema editor is not usable within an outer transaction if ... skipped 'SQLite tests' +test_field_rename_inside_atomic_block (backends.sqlite.tests.SchemaTests.test_field_rename_inside_atomic_block) +NotImplementedError is raised when a model field rename is attempted ... skipped 'SQLite tests' +test_table_rename_inside_atomic_block (backends.sqlite.tests.SchemaTests.test_table_rename_inside_atomic_block) +NotImplementedError is raised when a table rename is attempted inside ... skipped 'SQLite tests' +test_database_sharing_in_threads (backends.sqlite.tests.ThreadSharing.test_database_sharing_in_threads) ... skipped 'SQLite tests' +test_references_column (backends.test_ddl_references.ColumnsTests.test_references_column) ... ok +test_references_table (backends.test_ddl_references.ColumnsTests.test_references_table) ... ok +test_rename_column_references (backends.test_ddl_references.ColumnsTests.test_rename_column_references) ... ok +test_rename_table_references (backends.test_ddl_references.ColumnsTests.test_rename_table_references) ... ok +test_repr (backends.test_ddl_references.ColumnsTests.test_repr) ... ok +test_str (backends.test_ddl_references.ColumnsTests.test_str) ... ok +test_references_column (backends.test_ddl_references.ExpressionsTests.test_references_column) ... ok +test_references_table (backends.test_ddl_references.ExpressionsTests.test_references_table) ... ok +test_rename_column_references (backends.test_ddl_references.ExpressionsTests.test_rename_column_references) ... ok +test_rename_table_references (backends.test_ddl_references.ExpressionsTests.test_rename_table_references) ... ok +test_rename_table_references_without_alias (backends.test_ddl_references.ExpressionsTests.test_rename_table_references_without_alias) ... ok +test_str (backends.test_ddl_references.ExpressionsTests.test_str) ... ok +test_references_column (backends.test_ddl_references.ForeignKeyNameTests.test_references_column) ... ok +test_references_table (backends.test_ddl_references.ForeignKeyNameTests.test_references_table) ... ok +test_rename_column_references (backends.test_ddl_references.ForeignKeyNameTests.test_rename_column_references) ... ok +test_rename_table_references (backends.test_ddl_references.ForeignKeyNameTests.test_rename_table_references) ... ok +test_repr (backends.test_ddl_references.ForeignKeyNameTests.test_repr) ... ok +test_str (backends.test_ddl_references.ForeignKeyNameTests.test_str) ... ok +test_references_column (backends.test_ddl_references.IndexNameTests.test_references_column) ... ok +test_references_table (backends.test_ddl_references.IndexNameTests.test_references_table) ... ok +test_rename_column_references (backends.test_ddl_references.IndexNameTests.test_rename_column_references) ... ok +test_rename_table_references (backends.test_ddl_references.IndexNameTests.test_rename_table_references) ... ok +test_repr (backends.test_ddl_references.IndexNameTests.test_repr) ... ok +test_str (backends.test_ddl_references.IndexNameTests.test_str) ... ok +test_references_column (backends.test_ddl_references.StatementTests.test_references_column) ... ok +test_references_table (backends.test_ddl_references.StatementTests.test_references_table) ... ok +test_rename_column_references (backends.test_ddl_references.StatementTests.test_rename_column_references) ... ok +test_rename_table_references (backends.test_ddl_references.StatementTests.test_rename_table_references) ... ok +test_repr (backends.test_ddl_references.StatementTests.test_repr) ... ok +test_str (backends.test_ddl_references.StatementTests.test_str) ... ok +test_references_table (backends.test_ddl_references.TableTests.test_references_table) ... ok +test_rename_table_references (backends.test_ddl_references.TableTests.test_rename_table_references) ... ok +test_repr (backends.test_ddl_references.TableTests.test_repr) ... ok +test_str (backends.test_ddl_references.TableTests.test_str) ... ok +test_callproc_kparams (backends.test_utils.CursorWrapperTests.test_callproc_kparams) ... skipped "Database doesn't support feature(s): create_test_procedure_with_int_param_sql, supports_callproc_kwargs" +test_callproc_with_int_params (backends.test_utils.CursorWrapperTests.test_callproc_with_int_params) ... ERROR +test_callproc_without_params (backends.test_utils.CursorWrapperTests.test_callproc_without_params) ... ERROR +test_unsupported_callproc_kparams_raises_error (backends.test_utils.CursorWrapperTests.test_unsupported_callproc_kparams_raises_error) ... ok +test_format_number (backends.test_utils.TestUtils.test_format_number) ... ok +test_split_identifier (backends.test_utils.TestUtils.test_split_identifier) ... ok +test_split_tzname_delta (backends.test_utils.TestUtils.test_split_tzname_delta) ... ok +test_truncate_name (backends.test_utils.TestUtils.test_truncate_name) ... ok +test_cached_db_features (backends.tests.BackendTestCase.test_cached_db_features) ... ok +test_cursor_contextmanager (backends.tests.BackendTestCase.test_cursor_contextmanager) +Cursors can be used as a context manager ... ok +test_cursor_contextmanager_closing (backends.tests.BackendTestCase.test_cursor_contextmanager_closing) ... skipped 'Psycopg specific cursor.closed attribute needed' +test_cursor_execute_with_pyformat (backends.tests.BackendTestCase.test_cursor_execute_with_pyformat) ... ok +test_cursor_executemany (backends.tests.BackendTestCase.test_cursor_executemany) ... ok +test_cursor_executemany_with_empty_params_list (backends.tests.BackendTestCase.test_cursor_executemany_with_empty_params_list) ... ok +test_cursor_executemany_with_iterator (backends.tests.BackendTestCase.test_cursor_executemany_with_iterator) ... ERROR +test_cursor_executemany_with_pyformat (backends.tests.BackendTestCase.test_cursor_executemany_with_pyformat) ... ok +test_cursor_executemany_with_pyformat_iterator (backends.tests.BackendTestCase.test_cursor_executemany_with_pyformat_iterator) ... ERROR +test_database_operations_helper_class (backends.tests.BackendTestCase.test_database_operations_helper_class) ... ok +test_database_operations_init (backends.tests.BackendTestCase.test_database_operations_init) +DatabaseOperations initialization doesn't query the database. ... ok +test_duplicate_table_error (backends.tests.BackendTestCase.test_duplicate_table_error) +Creating an existing table returns a DatabaseError ... ok +test_is_usable_after_database_disconnects (backends.tests.BackendTestCase.test_is_usable_after_database_disconnects) +is_usable() doesn't crash when the database disconnects (#21553). ... FAIL +test_queries (backends.tests.BackendTestCase.test_queries) +Test the documented API of connection.queries. ... ok +test_queries_bare_where (backends.tests.BackendTestCase.test_queries_bare_where) ... ok +test_queries_limit (backends.tests.BackendTestCase.test_queries_limit) +The backend doesn't store an unlimited number of queries (#12581). ... ok +test_queries_logger (backends.tests.BackendTestCase.test_queries_logger) ... ok +test_timezone_none_use_tz_false (backends.tests.BackendTestCase.test_timezone_none_use_tz_false) ... ok +test_unicode_fetches (backends.tests.BackendTestCase.test_unicode_fetches) ... ok +test_unicode_password (backends.tests.BackendTestCase.test_unicode_password) ... ok +test_signal (backends.tests.ConnectionCreatedSignalTest.test_signal) ... ok +test_check_constraints (backends.tests.FkConstraintsTests.test_check_constraints) +Constraint checks should raise an IntegrityError when bad data is in the DB. ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' +test_check_constraints_sql_keywords (backends.tests.FkConstraintsTests.test_check_constraints_sql_keywords) ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' +test_disable_constraint_checks_context_manager (backends.tests.FkConstraintsTests.test_disable_constraint_checks_context_manager) +When constraint checks are disabled (using context manager), should be ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' +test_disable_constraint_checks_manually (backends.tests.FkConstraintsTests.test_disable_constraint_checks_manually) +When constraint checks are disabled, should be able to write bad data ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' +test_integrity_checks_on_creation (backends.tests.FkConstraintsTests.test_integrity_checks_on_creation) +Try to create a model instance that violates a FK constraint. If it ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' +test_integrity_checks_on_update (backends.tests.FkConstraintsTests.test_integrity_checks_on_update) +Try to update a model instance introducing a FK constraint violation. ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' +test_sequence_name_length_limits_create (backends.tests.LongNameTest.test_sequence_name_length_limits_create) +Creation of model with long name and long pk name doesn't error. ... ok +test_sequence_name_length_limits_flush (backends.tests.LongNameTest.test_sequence_name_length_limits_flush) +Sequence resetting as part of a flush with model with long name and ... ok +test_sequence_name_length_limits_m2m (backends.tests.LongNameTest.test_sequence_name_length_limits_m2m) +An m2m save of a model with a long name and a long m2m field name ... ok +test_closing_non_shared_connections (backends.tests.ThreadTests.test_closing_non_shared_connections) +A connection that is not explicitly shareable cannot be closed by ... ok +test_connections_thread_local (backends.tests.ThreadTests.test_connections_thread_local) +The connections are different for each thread (#17258). ... ok +test_default_connection_thread_local (backends.tests.ThreadTests.test_default_connection_thread_local) +The default connection (i.e. django.db.connection) is different for ... ok +test_pass_connection_between_threads (backends.tests.ThreadTests.test_pass_connection_between_threads) +A connection can be passed from one thread to the other (#17258). ... ok +test_thread_sharing_count (backends.tests.ThreadTests.test_thread_sharing_count) ... ok ====================================================================== -ERROR: test_defer (model_fields.test_filefield.FileFieldTests.test_defer) +ERROR: test_circular_reference_with_natural_key (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference_with_natural_key) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute @@ -668,19 +417,24 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -singlestoredb.exceptions.OperationalError: 1054: Unknown column 'model_fields_document.id' in 'field list' +singlestoredb.exceptions.OperationalError: 1054: Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list' The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_filefield.py", line 77, in test_defer - self.assertEqual(Document.objects.defer("myfile")[0].myfile, "something.txt") - ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 449, in __getitem__ - qs._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/tests/backends/base/test_creation.py", line 232, in test_circular_reference_with_natural_key + data = connection.creation.serialize_db_to_string() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 142, in serialize_db_to_string + serializers.serialize("json", get_objects(), indent=None, stream=out) + File "/home/pmishchenko-ua/github.com/django/django/core/serializers/__init__.py", line 134, in serialize + s.serialize(queryset, **options) + File "/home/pmishchenko-ua/github.com/django/django/core/serializers/base.py", line 132, in serialize + for count, obj in enumerate(queryset, start=1): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 138, in get_objects + yield from queryset.iterator() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 516, in _iterator + yield from iterable File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ results = compiler.execute_sql( ^^^^^^^^^^^^^^^^^^^^^ @@ -721,104 +475,10 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -django.db.utils.OperationalError: (1054, "Unknown column 'model_fields_document.id' in 'field list'", None) - -====================================================================== -ERROR: test_pickle (model_fields.test_filefield.FileFieldTests.test_pickle) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.OperationalError: 1054: Unknown column 'model_fields_document.id' in 'where clause' - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_filefield.py", line 172, in test_pickle - document.myfile.delete() - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/files.py", line 119, in delete - self.instance.save() - File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 814, in save - self.save_base( - File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 877, in save_base - updated = self._save_table( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 990, in _save_table - updated = self._do_update( - ^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 1054, in _do_update - return filtered._update(values) > 0 - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1231, in _update - return query.get_compiler(self.db).execute_sql(CURSOR) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1984, in execute_sql - cursor = super().execute_sql(result_type) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.OperationalError: (1054, "Unknown column 'model_fields_document.id' in 'where clause'", None) +django.db.utils.OperationalError: (1054, "Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list'", None) ====================================================================== -ERROR: test_refresh_from_db (model_fields.test_filefield.FileFieldTests.test_refresh_from_db) +ERROR: test_self_reference (backends.base.test_creation.TestDeserializeDbFromString.test_self_reference) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute @@ -846,24 +506,24 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -singlestoredb.exceptions.OperationalError: 1054: Unknown column 'model_fields_document.id' in 'field list' +singlestoredb.exceptions.OperationalError: 1054: Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list' The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_filefield.py", line 63, in test_refresh_from_db - d.refresh_from_db() - File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 724, in refresh_from_db - db_instance = db_instance_qs.get() - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/tests/backends/base/test_creation.py", line 210, in test_self_reference + data = connection.creation.serialize_db_to_string() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 142, in serialize_db_to_string + serializers.serialize("json", get_objects(), indent=None, stream=out) + File "/home/pmishchenko-ua/github.com/django/django/core/serializers/__init__.py", line 134, in serialize + s.serialize(queryset, **options) + File "/home/pmishchenko-ua/github.com/django/django/core/serializers/base.py", line 132, in serialize + for count, obj in enumerate(queryset, start=1): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 138, in get_objects + yield from queryset.iterator() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 516, in _iterator + yield from iterable File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ results = compiler.execute_sql( ^^^^^^^^^^^^^^^^^^^^^ @@ -904,10 +564,10 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -django.db.utils.OperationalError: (1054, "Unknown column 'model_fields_document.id' in 'field list'", None) +django.db.utils.OperationalError: (1054, "Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list'", None) ====================================================================== -ERROR: test_deep_lookup_array (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_array) +ERROR: test_serialize_db_to_string_base_manager (backends.base.test_creation.TestDeserializeDbFromString.test_serialize_db_to_string_base_manager) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute @@ -935,21 +595,24 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 +singlestoredb.exceptions.OperationalError: 1054: Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list' The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 811, in test_deep_lookup_array - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/tests/backends/base/test_creation.py", line 249, in test_serialize_db_to_string_base_manager + data = connection.creation.serialize_db_to_string() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 142, in serialize_db_to_string + serializers.serialize("json", get_objects(), indent=None, stream=out) + File "/home/pmishchenko-ua/github.com/django/django/core/serializers/__init__.py", line 134, in serialize + s.serialize(queryset, **options) + File "/home/pmishchenko-ua/github.com/django/django/core/serializers/base.py", line 132, in serialize + for count, obj in enumerate(queryset, start=1): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 138, in get_objects + yield from queryset.iterator() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 516, in _iterator + yield from iterable File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ results = compiler.execute_sql( ^^^^^^^^^^^^^^^^^^^^^ @@ -990,15 +653,15 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) +django.db.utils.OperationalError: (1054, "Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list'", None) ====================================================================== -ERROR: test_deep_lookup_mixed (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_mixed) +ERROR: test_callproc_with_int_params (backends.test_utils.CursorWrapperTests.test_callproc_with_int_params) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute + return self.cursor.execute(sql) + ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1021,26 +684,18 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 +singlestoredb.exceptions.OperationalError: 1982: Function 'test_procedure' already exists The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 817, in test_deep_lookup_mixed - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper + return test_func(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/tests/backends/test_utils.py", line 114, in test_callproc_with_int_params + self._test_procedure( + File "/home/pmishchenko-ua/github.com/django/tests/backends/test_utils.py", line 98, in _test_procedure + cursor.execute(procedure_sql) File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1051,9 +706,9 @@ Traceback (most recent call last): with self.db.wrap_database_errors: File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute + return self.cursor.execute(sql) + ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1076,15 +731,15 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) +django.db.utils.OperationalError: (1982, "Function 'test_procedure' already exists", None) ====================================================================== -ERROR: test_deep_lookup_objs (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_objs) +ERROR: test_callproc_without_params (backends.test_utils.CursorWrapperTests.test_callproc_without_params) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute + return self.cursor.execute(sql) + ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1107,26 +762,18 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 +singlestoredb.exceptions.OperationalError: 1982: Function 'test_procedure' already exists The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 799, in test_deep_lookup_objs - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper + return test_func(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/tests/backends/test_utils.py", line 108, in test_callproc_without_params + self._test_procedure( + File "/home/pmishchenko-ua/github.com/django/tests/backends/test_utils.py", line 98, in _test_procedure + cursor.execute(procedure_sql) File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1137,9 +784,9 @@ Traceback (most recent call last): with self.db.wrap_database_errors: File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute + return self.cursor.execute(sql) + ^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -1162,7474 +809,95 @@ Traceback (most recent call last): err.raise_mysql_exception(self._data) File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) +django.db.utils.OperationalError: (1982, "Function 'test_procedure' already exists", None) ====================================================================== -ERROR: test_deep_lookup_transform (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_transform) +ERROR: test_cursor_executemany_with_iterator (backends.tests.BackendTestCase.test_cursor_executemany_with_iterator) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 823, in test_deep_lookup_transform - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 343, in test_cursor_executemany_with_iterator + self.create_squares_with_executemany(args) + File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 302, in create_squares_with_executemany + self.create_squares(args, "format", True) + File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 321, in create_squares + cursor.executemany(query, args) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 72, in executemany return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 94, in _executemany + return self.cursor.executemany(sql, param_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 73, in executemany + return self.cursor.executemany(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 242, in executemany + if args is None or len(args) == 0: + ^^^^^^^^^ +TypeError: object of type 'generator' has no len() ====================================================================== -ERROR: test_deep_values (model_fields.test_jsonfield.TestQuerying.test_deep_values) +ERROR: test_cursor_executemany_with_pyformat_iterator (backends.tests.BackendTestCase.test_cursor_executemany_with_pyformat_iterator) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 721, in test_deep_values - self.assertSequenceEqual(qs, expected_objs) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 246, in __iter__ - return compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper + return test_func(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 372, in test_cursor_executemany_with_pyformat_iterator + self.create_squares(args, "pyformat", multiple=True) + File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 321, in create_squares + cursor.executemany(query, args) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 72, in executemany return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 94, in _executemany + return self.cursor.executemany(sql, param_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 73, in executemany + return self.cursor.executemany(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 242, in executemany + if args is None or len(args) == 0: + ^^^^^^^^^ +TypeError: object of type 'generator' has no len() ====================================================================== -ERROR: test_expression_wrapper_key_transform (model_fields.test_jsonfield.TestQuerying.test_expression_wrapper_key_transform) +FAIL: test_generic_relation (backends.tests.SequenceResetTest.test_generic_relation) +Sequence names are correct when resetting generic relations (Ref #13941) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 557, in test_expression_wrapper_key_transform - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_has_any_keys (model_fields.test_jsonfield.TestQuerying.test_has_any_keys) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 632, in test_has_any_keys - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key (model_fields.test_jsonfield.TestQuerying.test_has_key) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 568, in test_has_key - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 620, in test_has_key_list - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 620, in test_has_key_list - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 620, in test_has_key_list - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 620, in test_has_key_list - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_null_value (model_fields.test_jsonfield.TestQuerying.test_has_key_null_value) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 574, in test_has_key_null_value - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_has_keys (model_fields.test_jsonfield.TestQuerying.test_has_keys) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 626, in test_has_keys - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual - difflib.ndiff(pprint.pformat(seq1).splitlines(), - ^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat - underscore_numbers=underscore_numbers).pformat(object) - ^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat - self._format(object, sio, 0, 0, {}, 0) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format - rep = self._repr(object, context, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr - repr, readable, recursive = self.format(object, context.copy(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format - return self._safe_repr(object, context, maxlevels, level) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr - rep = repr(object) - ^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ - data = list(self[: REPR_OUTPUT_SIZE + 1]) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_isnull_key (model_fields.test_jsonfield.TestQuerying.test_isnull_key) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 732, in test_isnull_key - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_isnull_key_or_none (model_fields.test_jsonfield.TestQuerying.test_isnull_key_or_none) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 751, in test_isnull_key_or_none - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_join_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1119, in test_join_key_transform_annotation_expression - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_endswith (model_fields.test_jsonfield.TestQuerying.test_key_endswith) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 997, in test_key_endswith - NullableJSONModel.objects.filter(value__foo__endswith="r").exists(), True - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_escape (model_fields.test_jsonfield.TestQuerying.test_key_escape) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1052, in test_key_escape - NullableJSONModel.objects.filter(**{"value__%total": 10}).get(), obj - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_icontains (model_fields.test_jsonfield.TestQuerying.test_key_icontains) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 982, in test_key_icontains - NullableJSONModel.objects.filter(value__foo__icontains="Ar").exists(), True - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_iendswith (model_fields.test_jsonfield.TestQuerying.test_key_iendswith) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1002, in test_key_iendswith - NullableJSONModel.objects.filter(value__foo__iendswith="R").exists(), True - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_iexact (model_fields.test_jsonfield.TestQuerying.test_key_iexact) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 904, in test_key_iexact - NullableJSONModel.objects.filter(value__foo__iexact="BaR").exists(), True - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__c__in', value=[14]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__c__in', value=[14, 15]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__0__in', value=[1]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__0__in', value=[1, 3]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=['bar']) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[KeyTransform(KeyTransform(F(value)))]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[F(value__bax__foo)]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[KeyTransform(KeyTransform(F(value))), 'baz']) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[F(value__bax__foo), 'baz']) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=['bar', 'baz']) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bar__in', value=[['foo', 'bar']]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bar__in', value=[['foo', 'bar'], ['a']]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bax__in', value=[{'foo': 'bar'}, {'a': 'b'}]) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__h__in', value=[True, 'foo']) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__i__in', value=[False, 'foo']) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_iregex (model_fields.test_jsonfield.TestQuerying.test_key_iregex) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1012, in test_key_iregex - NullableJSONModel.objects.filter(value__foo__iregex=r"^bAr$").exists(), True - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_istartswith (model_fields.test_jsonfield.TestQuerying.test_key_istartswith) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 992, in test_key_istartswith - NullableJSONModel.objects.filter(value__foo__istartswith="B").exists(), True - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_quoted_string (model_fields.test_jsonfield.TestQuerying.test_key_quoted_string) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1017, in test_key_quoted_string - NullableJSONModel.objects.filter(value__o='"quoted"').get(), - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_regex (model_fields.test_jsonfield.TestQuerying.test_key_regex) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1007, in test_key_regex - NullableJSONModel.objects.filter(value__foo__regex=r"^bar$").exists(), True - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_startswith (model_fields.test_jsonfield.TestQuerying.test_key_startswith) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 987, in test_key_startswith - NullableJSONModel.objects.filter(value__foo__startswith="b").exists(), True - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_text_transform_char_lookup (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_char_lookup) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 549, in test_key_text_transform_char_lookup - self.assertSequenceEqual(qs, [self.objs[7]]) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_text_transform_from_lookup (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_from_lookup) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1133, in test_key_text_transform_from_lookup - self.assertSequenceEqual(qs, [self.objs[7]]) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_annotation_expression) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 491, in test_key_transform_annotation_expression - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_transform_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_expression) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 478, in test_key_transform_expression - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_transform_raw_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_raw_expression) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 463, in test_key_transform_raw_expression - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__a') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__c') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__d') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__h') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__i') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__j') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__k') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__n') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__p') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__r') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values - self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) (lookup='value__h') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 969, in test_key_values_boolean - self.assertIs(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) (lookup='value__i') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 969, in test_key_values_boolean - self.assertIs(qs.values_list(lookup, flat=True).get(), expected) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get - num = len(clone) - ^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_lookup_exclude (model_fields.test_jsonfield.TestQuerying.test_lookup_exclude) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 839, in test_lookup_exclude - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_lookup_exclude_nonexistent_key (model_fields.test_jsonfield.TestQuerying.test_lookup_exclude_nonexistent_key) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 853, in test_lookup_exclude_nonexistent_key - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_key') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1073, in test_lookups_with_key_transform - ).exists(), - ^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_keys') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1073, in test_lookups_with_key_transform - ).exists(), - ^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_any_keys') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1073, in test_lookups_with_key_transform - ).exists(), - ^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__has_key') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1073, in test_lookups_with_key_transform - ).exists(), - ^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists - return self.query.has_results(using=self.db) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results - return compiler.has_results() - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results - return bool(self.execute_sql(SINGLE)) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql - sql, params = self.as_sql() - ^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql - self.compile(self.where) if self.where is not None else ("", []) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql - sql, params = compiler.compile(child) - ^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile - sql, params = node.as_sql(self, self.connection) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql - sql = template % lhs - ~~~~~~~~~^~~~~ -TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' - -====================================================================== -ERROR: test_nested_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_annotation_expression) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 520, in test_nested_key_transform_annotation_expression - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_nested_key_transform_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_expression) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 503, in test_nested_key_transform_expression - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_nested_key_transform_on_subquery (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_on_subquery) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 532, in test_nested_key_transform_on_subquery - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_nested_key_transform_raw_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_raw_expression) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 470, in test_nested_key_transform_raw_expression - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_none_key (model_fields.test_jsonfield.TestQuerying.test_none_key) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 759, in test_none_key - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_none_key_and_exact_lookup (model_fields.test_jsonfield.TestQuerying.test_none_key_and_exact_lookup) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1056, in test_none_key_and_exact_lookup - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_none_key_exclude (model_fields.test_jsonfield.TestQuerying.test_none_key_exclude) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 774, in test_none_key_exclude - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_obj_subquery_lookup (model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 796, in test_obj_subquery_lookup - self.assertCountEqual(qs, [self.objs[3], self.objs[4]]) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_order_grouping_custom_decoder (model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 450, in test_order_grouping_custom_decoder - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 208, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) (field='value') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 413, in test_ordering_by_transform - self.assertSequenceEqual(query, expected) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) (field='value_custom') ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 413, in test_ordering_by_transform - self.assertSequenceEqual(query, expected) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_ordering_grouping_by_count (model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 445, in test_ordering_grouping_by_count - self.assertQuerySetEqual(qs, [0, 1], operator.itemgetter("count")) - File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1336, in assertQuerySetEqual - items = map(transform, items) - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 208, in __iter__ - for row in compiler.results_iter( - ^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter - results = self.execute_sql( - ^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_ordering_grouping_by_key_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 423, in test_ordering_grouping_by_key_transform - self.assertSequenceEqual(qs, [self.objs[4]]) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_shallow_list_lookup (model_fields.test_jsonfield.TestQuerying.test_shallow_list_lookup) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 779, in test_shallow_list_lookup - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_shallow_lookup_obj_target (model_fields.test_jsonfield.TestQuerying.test_shallow_lookup_obj_target) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 805, in test_shallow_lookup_obj_target - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_shallow_obj_lookup (model_fields.test_jsonfield.TestQuerying.test_shallow_obj_lookup) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 785, in test_shallow_obj_lookup - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_usage_in_subquery (model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 880, in test_usage_in_subquery - self.assertCountEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual - first_seq, second_seq = list(first), list(second) - ^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) - -====================================================================== -ERROR: test_filter_with_expr (model_fields.test_uuid.TestQuerying.test_filter_with_expr) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REPEAT('0', 4) AS `value` FROM `model_fields_nullableuuidmodel` WHERE `model_fie' at line 1 - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_uuid.py", line 228, in test_filter_with_expr - self.assertSequenceEqual( - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual - len1 = len(seq1) - ^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ - self._fetch_all() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all - self._result_cache = list(self._iterable_class(self)) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REPEAT('0', 4) AS `value` FROM `model_fields_nullableuuidmodel` WHERE `model_fie' at line 1", None) - -====================================================================== -FAIL: test_exact_complex (model_fields.test_jsonfield.TestQuerying.test_exact_complex) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 374, in test_exact_complex - self.assertSequenceEqual( -AssertionError: Sequences differ: != [] - -Second sequence contains 1 additional elements. -First extra element 0: - - -- -+ [] + File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 244, in test_generic_relation + self.assertGreater(obj.pk, 10) +AssertionError: 2 not greater than 10 ====================================================================== -FAIL: test_icontains (model_fields.test_jsonfield.TestQuerying.test_icontains) +FAIL: test_execute_sql_flush_statements (backends.base.test_operations.SqlFlushTests.test_execute_sql_flush_statements) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 380, in test_icontains - self.assertCountEqual( -AssertionError: Element counts were not equal: -First has 0, Second has 1: -First has 0, Second has 1: + File "/home/pmishchenko-ua/github.com/django/tests/backends/base/test_operations.py", line 220, in test_execute_sql_flush_statements + self.assertEqual(author.pk, 1) +AssertionError: 'F. Scott Fitzgerald' != 1 ====================================================================== -FAIL: test_key_sql_injection_escape (model_fields.test_jsonfield.TestQuerying.test_key_sql_injection_escape) +FAIL: test_is_usable_after_database_disconnects (backends.tests.BackendTestCase.test_is_usable_after_database_disconnects) +is_usable() doesn't crash when the database disconnects (#21553). ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper return test_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1046, in test_key_sql_injection_escape - self.assertIn('"test\\"', query) -AssertionError: '"test\\"' not found in 'SELECT `model_fields_jsonmodel`.`id`, `model_fields_jsonmodel`.`value` FROM `model_fields_jsonmodel` WHERE None(`model_fields_jsonmodel`.`value`) = "x"' + File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 486, in test_is_usable_after_database_disconnects + self.assertFalse(connection.is_usable()) +AssertionError: True is not false ---------------------------------------------------------------------- -Ran 438 tests in 46.073s +Ran 294 tests in 5.481s -FAILED (failures=3, errors=103, skipped=10) +FAILED (failures=3, errors=7, skipped=130) Preserving test database for alias 'default' ('test_django_db')... +Preserving test database for alias 'other' ('test_django_db_other')... diff --git a/tests/_utils/local_test.sh b/tests/_utils/local_test.sh index 1a52aa1c88f7..2e24b34158d5 100755 --- a/tests/_utils/local_test.sh +++ b/tests/_utils/local_test.sh @@ -34,5 +34,5 @@ export DJANGO_SINGLESTORE_NOT_ENFORCED_UNIQUE_QUERIES=1 # specify the path to the test to run -MODULE_TO_TEST="" +MODULE_TO_TEST="backends" ./tests/runtests.py --settings=singlestore_settings --noinput -v 3 $MODULE_TO_TEST --keepdb From a5cf53f780b5a80ed8cc0e84a5c8d83732a1839d Mon Sep 17 00:00:00 2001 From: Pavlo Mishchenko Date: Wed, 21 May 2025 17:31:02 +0300 Subject: [PATCH 3/5] Make procedure test a bit more robust --- test_results.txt | 397 +++++------------------------------ tests/_utils/local_test.sh | 2 +- tests/backends/test_utils.py | 7 + 3 files changed, 60 insertions(+), 346 deletions(-) diff --git a/test_results.txt b/test_results.txt index 9d9ce6cb2921..d53ab49717cc 100644 --- a/test_results.txt +++ b/test_results.txt @@ -182,7 +182,7 @@ test_zero_as_autoval (backends.tests.MySQLPKZeroTests.test_zero_as_autoval) ... test_bad_parameter_count (backends.tests.ParameterHandlingTest.test_bad_parameter_count) An executemany call with too many/not enough parameters will raise an ... ok test_generic_relation (backends.tests.SequenceResetTest.test_generic_relation) -Sequence names are correct when resetting generic relations (Ref #13941) ... FAIL +Sequence names are correct when resetting generic relations (Ref #13941) ... ok test_health_checks_disabled (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_disabled) ... ok test_health_checks_enabled (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_enabled) ... ok test_health_checks_enabled_errors_occurred (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_enabled_errors_occurred) ... ok @@ -207,9 +207,9 @@ test_custom_test_name (backends.base.test_creation.TestDbSignatureTests.test_cus test_custom_test_name_with_test_prefix (backends.base.test_creation.TestDbSignatureTests.test_custom_test_name_with_test_prefix) ... ok test_default_name (backends.base.test_creation.TestDbSignatureTests.test_default_name) ... ok test_circular_reference (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference) ... ok -test_circular_reference_with_natural_key (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference_with_natural_key) ... ERROR -test_self_reference (backends.base.test_creation.TestDeserializeDbFromString.test_self_reference) ... ERROR -test_serialize_db_to_string_base_manager (backends.base.test_creation.TestDeserializeDbFromString.test_serialize_db_to_string_base_manager) ... ERROR +test_circular_reference_with_natural_key (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference_with_natural_key) ... skipped 'Many-to-many intermediate tables (unless REFERENCE) in SingleStore must be built without id column, but certain django functionality requires id column to be present' +test_self_reference (backends.base.test_creation.TestDeserializeDbFromString.test_self_reference) ... skipped 'Many-to-many intermediate tables (unless REFERENCE) in SingleStore must be built without id column, but certain django functionality requires id column to be present' +test_serialize_db_to_string_base_manager (backends.base.test_creation.TestDeserializeDbFromString.test_serialize_db_to_string_base_manager) ... skipped 'Many-to-many intermediate tables (unless REFERENCE) in SingleStore must be built without id column, but certain django functionality requires id column to be present' test_mark_expected_failures_and_skips (backends.base.test_creation.TestMarkTests.test_mark_expected_failures_and_skips) ... ok test_nonexistent_feature (backends.base.test_features.TestDatabaseFeatures.test_nonexistent_feature) ... ok test_get_constraints (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_constraints) ... ok @@ -245,7 +245,7 @@ test_sql_flush (backends.base.test_operations.SimpleDatabaseOperationTests.test_ test_tablespace_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_tablespace_sql) ... ok test_time_extract_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_time_extract_sql) ... ok test_time_trunc_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_time_trunc_sql) ... ok -test_execute_sql_flush_statements (backends.base.test_operations.SqlFlushTests.test_execute_sql_flush_statements) ... FAIL +test_execute_sql_flush_statements (backends.base.test_operations.SqlFlushTests.test_execute_sql_flush_statements) ... ok test_sql_flush_no_tables (backends.base.test_operations.SqlFlushTests.test_sql_flush_no_tables) ... ok test_effective_default_callable (backends.base.test_schema.SchemaEditorTests.test_effective_default_callable) SchemaEditor.effective_default() shouldn't call callable defaults. ... ok @@ -350,7 +350,7 @@ DatabaseOperations initialization doesn't query the database. ... ok test_duplicate_table_error (backends.tests.BackendTestCase.test_duplicate_table_error) Creating an existing table returns a DatabaseError ... ok test_is_usable_after_database_disconnects (backends.tests.BackendTestCase.test_is_usable_after_database_disconnects) -is_usable() doesn't crash when the database disconnects (#21553). ... FAIL +is_usable() doesn't crash when the database disconnects (#21553). ... ok test_queries (backends.tests.BackendTestCase.test_queries) Test the documented API of connection.queries. ... ok test_queries_bare_where (backends.tests.BackendTestCase.test_queries_bare_where) ... ok @@ -388,273 +388,6 @@ test_pass_connection_between_threads (backends.tests.ThreadTests.test_pass_conne A connection can be passed from one thread to the other (#17258). ... ok test_thread_sharing_count (backends.tests.ThreadTests.test_thread_sharing_count) ... ok -====================================================================== -ERROR: test_circular_reference_with_natural_key (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference_with_natural_key) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.OperationalError: 1054: Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list' - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/backends/base/test_creation.py", line 232, in test_circular_reference_with_natural_key - data = connection.creation.serialize_db_to_string() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 142, in serialize_db_to_string - serializers.serialize("json", get_objects(), indent=None, stream=out) - File "/home/pmishchenko-ua/github.com/django/django/core/serializers/__init__.py", line 134, in serialize - s.serialize(queryset, **options) - File "/home/pmishchenko-ua/github.com/django/django/core/serializers/base.py", line 132, in serialize - for count, obj in enumerate(queryset, start=1): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 138, in get_objects - yield from queryset.iterator() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 516, in _iterator - yield from iterable - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.OperationalError: (1054, "Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list'", None) - -====================================================================== -ERROR: test_self_reference (backends.base.test_creation.TestDeserializeDbFromString.test_self_reference) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.OperationalError: 1054: Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list' - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/backends/base/test_creation.py", line 210, in test_self_reference - data = connection.creation.serialize_db_to_string() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 142, in serialize_db_to_string - serializers.serialize("json", get_objects(), indent=None, stream=out) - File "/home/pmishchenko-ua/github.com/django/django/core/serializers/__init__.py", line 134, in serialize - s.serialize(queryset, **options) - File "/home/pmishchenko-ua/github.com/django/django/core/serializers/base.py", line 132, in serialize - for count, obj in enumerate(queryset, start=1): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 138, in get_objects - yield from queryset.iterator() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 516, in _iterator - yield from iterable - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.OperationalError: (1054, "Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list'", None) - -====================================================================== -ERROR: test_serialize_db_to_string_base_manager (backends.base.test_creation.TestDeserializeDbFromString.test_serialize_db_to_string_base_manager) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -singlestoredb.exceptions.OperationalError: 1054: Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list' - -The above exception was the direct cause of the following exception: - -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/backends/base/test_creation.py", line 249, in test_serialize_db_to_string_base_manager - data = connection.creation.serialize_db_to_string() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 142, in serialize_db_to_string - serializers.serialize("json", get_objects(), indent=None, stream=out) - File "/home/pmishchenko-ua/github.com/django/django/core/serializers/__init__.py", line 134, in serialize - s.serialize(queryset, **options) - File "/home/pmishchenko-ua/github.com/django/django/core/serializers/base.py", line 132, in serialize - for count, obj in enumerate(queryset, start=1): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/base/creation.py", line 138, in get_objects - yield from queryset.iterator() - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 516, in _iterator - yield from iterable - File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ - results = compiler.execute_sql( - ^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql - cursor.execute(sql, params) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute - return self._execute_with_wrappers( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers - return executor(sql, params, many, context) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute - with self.db.wrap_database_errors: - File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ - raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception - raise errorclass(errno, errval) -django.db.utils.OperationalError: (1054, "Unknown column 'backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person.id' in 'field list'", None) - ====================================================================== ERROR: test_callproc_with_int_params (backends.test_utils.CursorWrapperTests.test_callproc_with_int_params) ---------------------------------------------------------------------- @@ -662,27 +395,27 @@ Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute return self.cursor.execute(sql) ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute result = self._query(query, infile_stream=infile_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read first_packet = self.connection._read_packet() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) singlestoredb.exceptions.OperationalError: 1982: Function 'test_procedure' already exists @@ -709,27 +442,27 @@ Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute return self.cursor.execute(sql) ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute result = self._query(query, infile_stream=infile_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read first_packet = self.connection._read_packet() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) django.db.utils.OperationalError: (1982, "Function 'test_procedure' already exists", None) @@ -740,27 +473,27 @@ Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute return self.cursor.execute(sql) ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute result = self._query(query, infile_stream=infile_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read first_packet = self.connection._read_packet() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) singlestoredb.exceptions.OperationalError: 1982: Function 'test_procedure' already exists @@ -787,27 +520,27 @@ Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute return self.cursor.execute(sql) ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute result = self._query(query, infile_stream=infile_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read first_packet = self.connection._read_packet() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) django.db.utils.OperationalError: (1982, "Function 'test_procedure' already exists", None) @@ -830,10 +563,10 @@ Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 94, in _executemany return self.cursor.executemany(sql, param_list) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 73, in executemany + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 73, in executemany return self.cursor.executemany(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 242, in executemany + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 242, in executemany if args is None or len(args) == 0: ^^^^^^^^^ TypeError: object of type 'generator' has no len() @@ -845,10 +578,13 @@ Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper return test_func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 372, in test_cursor_executemany_with_pyformat_iterator + File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 378, in test_cursor_executemany_with_pyformat_iterator self.create_squares(args, "pyformat", multiple=True) File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 321, in create_squares cursor.executemany(query, args) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 106, in executemany + return super().executemany(sql, param_list) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 72, in executemany return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -858,46 +594,17 @@ Traceback (most recent call last): File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 94, in _executemany return self.cursor.executemany(sql, param_list) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 73, in executemany + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 73, in executemany return self.cursor.executemany(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 242, in executemany + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 242, in executemany if args is None or len(args) == 0: ^^^^^^^^^ TypeError: object of type 'generator' has no len() -====================================================================== -FAIL: test_generic_relation (backends.tests.SequenceResetTest.test_generic_relation) -Sequence names are correct when resetting generic relations (Ref #13941) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 244, in test_generic_relation - self.assertGreater(obj.pk, 10) -AssertionError: 2 not greater than 10 - -====================================================================== -FAIL: test_execute_sql_flush_statements (backends.base.test_operations.SqlFlushTests.test_execute_sql_flush_statements) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/backends/base/test_operations.py", line 220, in test_execute_sql_flush_statements - self.assertEqual(author.pk, 1) -AssertionError: 'F. Scott Fitzgerald' != 1 - -====================================================================== -FAIL: test_is_usable_after_database_disconnects (backends.tests.BackendTestCase.test_is_usable_after_database_disconnects) -is_usable() doesn't crash when the database disconnects (#21553). ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper - return test_func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 486, in test_is_usable_after_database_disconnects - self.assertFalse(connection.is_usable()) -AssertionError: True is not false - ---------------------------------------------------------------------- -Ran 294 tests in 5.481s +Ran 294 tests in 4.602s -FAILED (failures=3, errors=7, skipped=130) +FAILED (errors=4, skipped=133) Preserving test database for alias 'default' ('test_django_db')... Preserving test database for alias 'other' ('test_django_db_other')... diff --git a/tests/_utils/local_test.sh b/tests/_utils/local_test.sh index 2e24b34158d5..1a52aa1c88f7 100755 --- a/tests/_utils/local_test.sh +++ b/tests/_utils/local_test.sh @@ -34,5 +34,5 @@ export DJANGO_SINGLESTORE_NOT_ENFORCED_UNIQUE_QUERIES=1 # specify the path to the test to run -MODULE_TO_TEST="backends" +MODULE_TO_TEST="" ./tests/runtests.py --settings=singlestore_settings --noinput -v 3 $MODULE_TO_TEST --keepdb diff --git a/tests/backends/test_utils.py b/tests/backends/test_utils.py index 03d4b036fdfd..aad82bfc597b 100644 --- a/tests/backends/test_utils.py +++ b/tests/backends/test_utils.py @@ -2,6 +2,7 @@ from decimal import Decimal, Rounded from django.db import NotSupportedError, connection +from django.db.utils import OperationalError from django.db.backends.utils import ( format_number, split_identifier, @@ -94,6 +95,12 @@ class CursorWrapperTests(TransactionTestCase): available_apps = [] def _test_procedure(self, procedure_sql, params, param_types, kparams=None): + # make sure procedure is not already defined + try: + with connection.schema_editor() as editor: + editor.remove_procedure("test_procedure", param_types) + except OperationalError: + pass with connection.cursor() as cursor: cursor.execute(procedure_sql) # Use a new cursor because in MySQL a procedure can't be used in the From 34ff1e6a4564dd36c813d02970aa360c2faa977b Mon Sep 17 00:00:00 2001 From: Pavlo Mishchenko Date: Wed, 21 May 2025 17:34:24 +0300 Subject: [PATCH 4/5] revert changes --- test_results.txt | 8987 +++++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 8506 insertions(+), 481 deletions(-) diff --git a/test_results.txt b/test_results.txt index d53ab49717cc..281909ef54a0 100644 --- a/test_results.txt +++ b/test_results.txt @@ -1,16 +1,17 @@ Testing against Django installed in '/home/pmishchenko-ua/github.com/django/django' with up to 16 processes -Importing application backends -Found 294 test(s). +Importing application model_fields +Found 438 test(s). +Skipping setup of unused database(s): other. Using existing test database for alias 'default' ('test_django_db')... Operations to perform: - Synchronize unmigrated apps: auth, backends, contenttypes, messages, sessions, staticfiles + Synchronize unmigrated apps: auth, contenttypes, messages, model_fields, sessions, staticfiles Apply all migrations: admin, sites Running pre-migrate handlers for application contenttypes Running pre-migrate handlers for application auth Running pre-migrate handlers for application sites Running pre-migrate handlers for application sessions Running pre-migrate handlers for application admin -Running pre-migrate handlers for application backends +Running pre-migrate handlers for application model_fields Synchronizing apps without migrations: Creating tables... Running deferred SQL... @@ -21,414 +22,670 @@ Running post-migrate handlers for application auth Running post-migrate handlers for application sites Running post-migrate handlers for application sessions Running post-migrate handlers for application admin -Running post-migrate handlers for application backends -Using existing test database for alias 'other' ('test_django_db_other')... -Operations to perform: - Synchronize unmigrated apps: auth, backends, contenttypes, messages, sessions, staticfiles - Apply all migrations: admin, sites -Running pre-migrate handlers for application contenttypes -Running pre-migrate handlers for application auth -Running pre-migrate handlers for application sites -Running pre-migrate handlers for application sessions -Running pre-migrate handlers for application admin -Running pre-migrate handlers for application backends -Synchronizing apps without migrations: - Creating tables... - Running deferred SQL... -Running migrations: - No migrations to apply. -Running post-migrate handlers for application contenttypes -Running post-migrate handlers for application auth -Running post-migrate handlers for application sites -Running post-migrate handlers for application sessions -Running post-migrate handlers for application admin -Running post-migrate handlers for application backends +Running post-migrate handlers for application model_fields System check identified no issues (0 silenced). -test_database_queried (backends.base.test_base.ExecuteWrapperTests.test_database_queried) ... ok -test_nested_wrapper_invoked (backends.base.test_base.ExecuteWrapperTests.test_nested_wrapper_invoked) ... ok -test_outer_wrapper_blocks (backends.base.test_base.ExecuteWrapperTests.test_outer_wrapper_blocks) ... ok -test_wrapper_connection_specific (backends.base.test_base.ExecuteWrapperTests.test_wrapper_connection_specific) ... ok -test_wrapper_gets_sql (backends.base.test_base.ExecuteWrapperTests.test_wrapper_gets_sql) ... ok -test_wrapper_invoked (backends.base.test_base.ExecuteWrapperTests.test_wrapper_invoked) ... ok -test_wrapper_invoked_many (backends.base.test_base.ExecuteWrapperTests.test_wrapper_invoked_many) ... ok -test_multi_database_init_connection_state_called_once (backends.base.test_base.MultiDatabaseTests.test_multi_database_init_connection_state_called_once) ... ok -test_distinct_on_fields (backends.base.test_operations.DatabaseOperationTests.test_distinct_on_fields) ... ok -test_subtract_temporals (backends.base.test_operations.DatabaseOperationTests.test_subtract_temporals) ... ok -test_window_frame_raise_not_supported_error (backends.base.test_operations.DatabaseOperationTests.test_window_frame_raise_not_supported_error) ... ok -test_allows_auto_pk_0 (backends.mysql.test_features.TestFeatures.test_allows_auto_pk_0) ... skipped 'MySQL tests' -test_allows_group_by_selected_pks (backends.mysql.test_features.TestFeatures.test_allows_group_by_selected_pks) ... skipped 'MySQL tests' -test_skip_locked_no_wait (backends.mysql.test_features.TestFeatures.test_skip_locked_no_wait) ... skipped 'MySQL tests' -test_supports_transactions (backends.mysql.test_features.TestFeatures.test_supports_transactions) -All storage engines except MyISAM support transactions. ... skipped 'MySQL tests' -test_parse_constraint_columns (backends.mysql.test_introspection.ParsingTests.test_parse_constraint_columns) ... skipped 'MySQL tests' -test_get_storage_engine (backends.mysql.test_introspection.StorageEngineTests.test_get_storage_engine) ... skipped 'MySQL tests' -test_quote_value (backends.mysql.test_schema.SchemaEditorTests.test_quote_value) ... skipped 'MySQL tests' -test_auto_is_null_auto_config (backends.mysql.tests.IsolationLevelTests.test_auto_is_null_auto_config) ... skipped 'MySQL tests' -test_connect_isolation_level (backends.mysql.tests.IsolationLevelTests.test_connect_isolation_level) ... skipped 'MySQL tests' -test_default_isolation_level (backends.mysql.tests.IsolationLevelTests.test_default_isolation_level) ... skipped 'MySQL tests' -test_isolation_level_validation (backends.mysql.tests.IsolationLevelTests.test_isolation_level_validation) ... skipped 'MySQL tests' -test_setting_isolation_level (backends.mysql.tests.IsolationLevelTests.test_setting_isolation_level) ... skipped 'MySQL tests' -test_uppercase_isolation_level (backends.mysql.tests.IsolationLevelTests.test_uppercase_isolation_level) ... skipped 'MySQL tests' -test_check_database_version_supported (backends.mysql.tests.Tests.test_check_database_version_supported) ... skipped 'MySQL tests' -test_create_test_db (backends.oracle.test_creation.DatabaseCreationTests.test_create_test_db) ... skipped 'Oracle tests' -test_create_test_user (backends.oracle.test_creation.DatabaseCreationTests.test_create_test_user) ... skipped 'Oracle tests' -test_oracle_managed_files (backends.oracle.test_creation.DatabaseCreationTests.test_oracle_managed_files) ... skipped 'Oracle tests' -test_boolean_constraints (backends.oracle.tests.Tests.test_boolean_constraints) -Boolean fields have check constraints on their values. ... skipped 'Oracle tests' -test_check_database_version_supported (backends.oracle.tests.Tests.test_check_database_version_supported) ... skipped 'Oracle tests' -test_cursor_var (backends.oracle.tests.Tests.test_cursor_var) -Cursor variables can be passed as query parameters. ... skipped 'Oracle tests' -test_dbms_session (backends.oracle.tests.Tests.test_dbms_session) -A stored procedure can be called through a cursor wrapper. ... skipped 'Oracle tests' -test_order_of_nls_parameters (backends.oracle.tests.Tests.test_order_of_nls_parameters) -An 'almost right' datetime works with configured NLS parameters ... skipped 'Oracle tests' -test_quote_name (backends.oracle.tests.Tests.test_quote_name) -'%' chars are escaped for query execution. ... skipped 'Oracle tests' -test_quote_name_db_table (backends.oracle.tests.Tests.test_quote_name_db_table) ... skipped 'Oracle tests' -test_get_sequences (backends.postgresql.test_introspection.DatabaseSequenceTests.test_get_sequences) ... skipped 'Test only for PostgreSQL' -test_get_sequences_old_serial (backends.postgresql.test_introspection.DatabaseSequenceTests.test_get_sequences_old_serial) ... skipped 'Test only for PostgreSQL' -test_closed_server_side_cursor (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_closed_server_side_cursor) ... skipped 'PostgreSQL tests' -test_server_side_cursor (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_server_side_cursor) ... skipped 'PostgreSQL tests' -test_server_side_cursor_many_cursors (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_server_side_cursor_many_cursors) ... skipped 'PostgreSQL tests' -test_server_side_cursors_setting (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_server_side_cursors_setting) ... skipped 'PostgreSQL tests' -test_values (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_values) ... skipped 'PostgreSQL tests' -test_values_list (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_values_list) ... skipped 'PostgreSQL tests' -test_values_list_fields_not_equal_to_names (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_values_list_fields_not_equal_to_names) ... skipped 'PostgreSQL tests' -test_values_list_flat (backends.postgresql.test_server_side_cursors.ServerSideCursorsPostgres.test_values_list_flat) ... skipped 'PostgreSQL tests' -test_check_database_version_supported (backends.postgresql.tests.Tests.test_check_database_version_supported) ... skipped 'PostgreSQL tests' -test_client_encoding_utf8_enforce (backends.postgresql.tests.Tests.test_client_encoding_utf8_enforce) ... skipped 'PostgreSQL tests' -test_compose_sql_when_no_connection (backends.postgresql.tests.Tests.test_compose_sql_when_no_connection) ... skipped 'PostgreSQL tests' -test_connect_and_rollback (backends.postgresql.tests.Tests.test_connect_and_rollback) -PostgreSQL shouldn't roll back SET TIME ZONE, even if the first ... skipped 'PostgreSQL tests' -test_connect_custom_cursor_factory (backends.postgresql.tests.Tests.test_connect_custom_cursor_factory) -A custom cursor factory can be configured with DATABASES["options"] ... skipped 'PostgreSQL tests' -test_connect_invalid_isolation_level (backends.postgresql.tests.Tests.test_connect_invalid_isolation_level) ... skipped 'PostgreSQL tests' -test_connect_isolation_level (backends.postgresql.tests.Tests.test_connect_isolation_level) -The transaction level can be configured with ... skipped 'PostgreSQL tests' -test_connect_no_is_usable_checks (backends.postgresql.tests.Tests.test_connect_no_is_usable_checks) ... skipped 'PostgreSQL tests' -test_connect_non_autocommit (backends.postgresql.tests.Tests.test_connect_non_autocommit) -The connection wrapper shouldn't believe that autocommit is enabled ... skipped 'PostgreSQL tests' -test_connect_role (backends.postgresql.tests.Tests.test_connect_role) -The session role can be configured with DATABASES ... skipped 'PostgreSQL tests' -test_connect_server_side_binding (backends.postgresql.tests.Tests.test_connect_server_side_binding) -The server-side parameters binding role can be enabled with DATABASES ... skipped 'PostgreSQL tests' -test_copy_cursors (backends.postgresql.tests.Tests.test_copy_cursors) ... skipped 'PostgreSQL tests' -test_copy_to_expert_cursors (backends.postgresql.tests.Tests.test_copy_to_expert_cursors) ... skipped 'PostgreSQL tests' -test_correct_extraction_psycopg_version (backends.postgresql.tests.Tests.test_correct_extraction_psycopg_version) ... skipped 'PostgreSQL tests' -test_database_name_empty (backends.postgresql.tests.Tests.test_database_name_empty) ... skipped 'PostgreSQL tests' -test_database_name_too_long (backends.postgresql.tests.Tests.test_database_name_too_long) ... skipped 'PostgreSQL tests' -test_get_database_version (backends.postgresql.tests.Tests.test_get_database_version) ... skipped 'PostgreSQL tests' -test_lookup_cast (backends.postgresql.tests.Tests.test_lookup_cast) ... skipped 'PostgreSQL tests' -test_lookup_cast_isnull_noop (backends.postgresql.tests.Tests.test_lookup_cast_isnull_noop) ... skipped 'PostgreSQL tests' -test_nodb_cursor (backends.postgresql.tests.Tests.test_nodb_cursor) -The _nodb_cursor() fallbacks to the default connection database when ... skipped 'PostgreSQL tests' -test_nodb_cursor_raises_postgres_authentication_failure (backends.postgresql.tests.Tests.test_nodb_cursor_raises_postgres_authentication_failure) -_nodb_cursor() re-raises authentication failure to the 'postgres' db ... skipped 'PostgreSQL tests' -test_nodb_cursor_reraise_exceptions (backends.postgresql.tests.Tests.test_nodb_cursor_reraise_exceptions) ... skipped 'PostgreSQL tests' -test_select_ascii_array (backends.postgresql.tests.Tests.test_select_ascii_array) ... skipped 'PostgreSQL tests' -test_select_unicode_array (backends.postgresql.tests.Tests.test_select_unicode_array) ... skipped 'PostgreSQL tests' -test_service_name (backends.postgresql.tests.Tests.test_service_name) ... skipped 'PostgreSQL tests' -test_service_name_default_db (backends.postgresql.tests.Tests.test_service_name_default_db) ... skipped 'PostgreSQL tests' -test_supports_json_field_operational_error (backends.sqlite.test_features.FeaturesTests.test_supports_json_field_operational_error) ... skipped 'SQLite tests.' -test_get_primary_key_column (backends.sqlite.test_introspection.IntrospectionTests.test_get_primary_key_column) -Get the primary key column regardless of whether or not it has ... skipped 'SQLite tests' -test_get_primary_key_column_pk_constraint (backends.sqlite.test_introspection.IntrospectionTests.test_get_primary_key_column_pk_constraint) ... skipped 'SQLite tests' -test_check_and_unique_column (backends.sqlite.test_introspection.ParsingTests.test_check_and_unique_column) ... skipped 'SQLite tests' -test_check_column (backends.sqlite.test_introspection.ParsingTests.test_check_column) ... skipped 'SQLite tests' -test_check_column_with_operators_and_functions (backends.sqlite.test_introspection.ParsingTests.test_check_column_with_operators_and_functions) ... skipped 'SQLite tests' -test_check_constraint (backends.sqlite.test_introspection.ParsingTests.test_check_constraint) ... skipped 'SQLite tests' -test_unique_column (backends.sqlite.test_introspection.ParsingTests.test_unique_column) ... skipped 'SQLite tests' -test_unique_constraint (backends.sqlite.test_introspection.ParsingTests.test_unique_constraint) ... skipped 'SQLite tests' -test_unique_constraint_multicolumn (backends.sqlite.test_introspection.ParsingTests.test_unique_constraint_multicolumn) ... skipped 'SQLite tests' -test_sql_flush (backends.sqlite.test_operations.SQLiteOperationsTests.test_sql_flush) ... skipped 'SQLite tests.' -test_sql_flush_allow_cascade (backends.sqlite.test_operations.SQLiteOperationsTests.test_sql_flush_allow_cascade) ... skipped 'SQLite tests.' -test_sql_flush_sequences (backends.sqlite.test_operations.SQLiteOperationsTests.test_sql_flush_sequences) ... skipped 'SQLite tests.' -test_sql_flush_sequences_allow_cascade (backends.sqlite.test_operations.SQLiteOperationsTests.test_sql_flush_sequences_allow_cascade) ... skipped 'SQLite tests.' -test_parameter_escaping (backends.sqlite.tests.EscapingChecks.test_parameter_escaping) ... skipped 'SQLite tests' -test_parameter_escaping (backends.sqlite.tests.EscapingChecksDebug.test_parameter_escaping) ... skipped 'SQLite tests' -test_large_number_of_parameters (backends.sqlite.tests.LastExecutedQueryTest.test_large_number_of_parameters) ... skipped 'Test only for SQLite' -test_no_interpolation (backends.sqlite.tests.LastExecutedQueryTest.test_no_interpolation) ... skipped 'Test only for SQLite' -test_parameter_quoting (backends.sqlite.tests.LastExecutedQueryTest.test_parameter_quoting) ... skipped 'Test only for SQLite' -test_aggregation (backends.sqlite.tests.Tests.test_aggregation) -Raise NotSupportedError when aggregating on date/time fields. ... skipped 'SQLite tests' -test_check_database_version_supported (backends.sqlite.tests.Tests.test_check_database_version_supported) ... skipped 'SQLite tests' -test_distinct_aggregation (backends.sqlite.tests.Tests.test_distinct_aggregation) ... skipped 'SQLite tests' -test_distinct_aggregation_multiple_args_no_distinct (backends.sqlite.tests.Tests.test_distinct_aggregation_multiple_args_no_distinct) ... skipped 'SQLite tests' -test_memory_db_test_name (backends.sqlite.tests.Tests.test_memory_db_test_name) -A named in-memory db should be allowed where supported. ... skipped 'SQLite tests' -test_pathlib_name (backends.sqlite.tests.Tests.test_pathlib_name) ... skipped 'SQLite tests' -test_regexp_function (backends.sqlite.tests.Tests.test_regexp_function) ... skipped 'SQLite tests' -test_can_reference_existent (backends.tests.DBConstraintTestCase.test_can_reference_existent) ... ok -test_can_reference_non_existent (backends.tests.DBConstraintTestCase.test_can_reference_non_existent) ... ok -test_many_to_many (backends.tests.DBConstraintTestCase.test_many_to_many) ... ok -test_django_date_extract (backends.tests.DateQuotingTest.test_django_date_extract) -Test the custom ``django_date_extract method``, in particular against fields ... ok -test_django_date_trunc (backends.tests.DateQuotingTest.test_django_date_trunc) -Test the custom ``django_date_trunc method``, in particular against ... ok -test_parameter_escaping (backends.tests.EscapingChecks.test_parameter_escaping) ... ok -test_paramless_no_escaping (backends.tests.EscapingChecks.test_paramless_no_escaping) ... ok -test_parameter_escaping (backends.tests.EscapingChecksDebug.test_parameter_escaping) ... ok -test_paramless_no_escaping (backends.tests.EscapingChecksDebug.test_paramless_no_escaping) ... ok -test_debug_sql (backends.tests.LastExecutedQueryTest.test_debug_sql) ... ok -test_last_executed_query (backends.tests.LastExecutedQueryTest.test_last_executed_query) ... ok -test_last_executed_query_dict (backends.tests.LastExecutedQueryTest.test_last_executed_query_dict) ... ok -test_last_executed_query_dict_overlap_keys (backends.tests.LastExecutedQueryTest.test_last_executed_query_dict_overlap_keys) ... ok -test_last_executed_query_with_duplicate_params (backends.tests.LastExecutedQueryTest.test_last_executed_query_with_duplicate_params) ... ok -test_last_executed_query_without_previous_query (backends.tests.LastExecutedQueryTest.test_last_executed_query_without_previous_query) -last_executed_query should not raise an exception even if no previous ... ok -test_query_encoding (backends.tests.LastExecutedQueryTest.test_query_encoding) -last_executed_query() returns a string. ... ok -test_zero_as_autoval (backends.tests.MySQLPKZeroTests.test_zero_as_autoval) ... skipped 'Database has feature(s) allows_auto_pk_0' -test_bad_parameter_count (backends.tests.ParameterHandlingTest.test_bad_parameter_count) -An executemany call with too many/not enough parameters will raise an ... ok -test_generic_relation (backends.tests.SequenceResetTest.test_generic_relation) -Sequence names are correct when resetting generic relations (Ref #13941) ... ok -test_health_checks_disabled (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_disabled) ... ok -test_health_checks_enabled (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_enabled) ... ok -test_health_checks_enabled_errors_occurred (backends.base.test_base.ConnectionHealthChecksTests.test_health_checks_enabled_errors_occurred) ... ok -test_set_autocommit_health_checks_enabled (backends.base.test_base.ConnectionHealthChecksTests.test_set_autocommit_health_checks_enabled) ... ok -test_commit_debug_log (backends.base.test_base.DatabaseWrapperLoggingTests.test_commit_debug_log) ... ok -test_no_logs_without_debug (backends.base.test_base.DatabaseWrapperLoggingTests.test_no_logs_without_debug) ... ok -test_rollback_debug_log (backends.base.test_base.DatabaseWrapperLoggingTests.test_rollback_debug_log) ... ok -test_check_database_version_supported_with_none_as_database_version (backends.base.test_base.DatabaseWrapperTests.test_check_database_version_supported_with_none_as_database_version) ... ok -test_get_database_version (backends.base.test_base.DatabaseWrapperTests.test_get_database_version) ... ok -test_initialization_class_attributes (backends.base.test_base.DatabaseWrapperTests.test_initialization_class_attributes) -The "initialization" class attributes like client_class and ... ok -test_initialization_display_name (backends.base.test_base.DatabaseWrapperTests.test_initialization_display_name) ... ok -test_repr (backends.base.test_base.DatabaseWrapperTests.test_repr) ... ok -test_runshell_use_environ (backends.base.test_client.SimpleDatabaseClientTests.test_runshell_use_environ) ... ok -test_settings_to_cmd_args_env (backends.base.test_client.SimpleDatabaseClientTests.test_settings_to_cmd_args_env) ... ok -test_mark_expected_failures_and_skips_call (backends.base.test_creation.TestDbCreationTests.test_mark_expected_failures_and_skips_call) -mark_expected_failures_and_skips() isn't called unless ... ok -test_migrate_test_setting_false (backends.base.test_creation.TestDbCreationTests.test_migrate_test_setting_false) ... ok -test_migrate_test_setting_false_ensure_schema (backends.base.test_creation.TestDbCreationTests.test_migrate_test_setting_false_ensure_schema) ... ok -test_migrate_test_setting_true (backends.base.test_creation.TestDbCreationTests.test_migrate_test_setting_true) ... ok -test_custom_test_name (backends.base.test_creation.TestDbSignatureTests.test_custom_test_name) ... ok -test_custom_test_name_with_test_prefix (backends.base.test_creation.TestDbSignatureTests.test_custom_test_name_with_test_prefix) ... ok -test_default_name (backends.base.test_creation.TestDbSignatureTests.test_default_name) ... ok -test_circular_reference (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference) ... ok -test_circular_reference_with_natural_key (backends.base.test_creation.TestDeserializeDbFromString.test_circular_reference_with_natural_key) ... skipped 'Many-to-many intermediate tables (unless REFERENCE) in SingleStore must be built without id column, but certain django functionality requires id column to be present' -test_self_reference (backends.base.test_creation.TestDeserializeDbFromString.test_self_reference) ... skipped 'Many-to-many intermediate tables (unless REFERENCE) in SingleStore must be built without id column, but certain django functionality requires id column to be present' -test_serialize_db_to_string_base_manager (backends.base.test_creation.TestDeserializeDbFromString.test_serialize_db_to_string_base_manager) ... skipped 'Many-to-many intermediate tables (unless REFERENCE) in SingleStore must be built without id column, but certain django functionality requires id column to be present' -test_mark_expected_failures_and_skips (backends.base.test_creation.TestMarkTests.test_mark_expected_failures_and_skips) ... ok -test_nonexistent_feature (backends.base.test_features.TestDatabaseFeatures.test_nonexistent_feature) ... ok -test_get_constraints (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_constraints) ... ok -test_get_relations (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_relations) ... ok -test_get_sequences (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_sequences) ... ok -test_get_table_description (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_table_description) ... ok -test_get_table_list (backends.base.test_introspection.SimpleDatabaseIntrospectionTests.test_get_table_list) ... ok -test_adapt_datetimefield_value_expression (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_datetimefield_value_expression) ... ok -test_adapt_datetimefield_value_none (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_datetimefield_value_none) ... ok -test_adapt_timefield_value (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_timefield_value) ... ok -test_adapt_timefield_value_expression (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_timefield_value_expression) ... ok -test_adapt_timefield_value_none (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_timefield_value_none) ... ok -test_adapt_timefield_value_unaware (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_timefield_value_unaware) ... ok -test_adapt_unknown_value_date (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_unknown_value_date) ... ok -test_adapt_unknown_value_decimal (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_unknown_value_decimal) ... ok -test_adapt_unknown_value_time (backends.base.test_operations.SimpleDatabaseOperationTests.test_adapt_unknown_value_time) ... ok -test_date_extract_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_date_extract_sql) ... ok -test_date_trunc_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_date_trunc_sql) ... ok -test_datetime_cast_date_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_datetime_cast_date_sql) ... ok -test_datetime_cast_time_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_datetime_cast_time_sql) ... ok -test_datetime_extract_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_datetime_extract_sql) ... ok -test_datetime_trunc_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_datetime_trunc_sql) ... ok -test_deferrable_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_deferrable_sql) ... ok -test_end_transaction_rollback (backends.base.test_operations.SimpleDatabaseOperationTests.test_end_transaction_rollback) ... ok -test_format_for_duration_arithmetic (backends.base.test_operations.SimpleDatabaseOperationTests.test_format_for_duration_arithmetic) ... ok -test_no_limit_value (backends.base.test_operations.SimpleDatabaseOperationTests.test_no_limit_value) ... ok -test_pk_default_value (backends.base.test_operations.SimpleDatabaseOperationTests.test_pk_default_value) ... ok -test_quote_name (backends.base.test_operations.SimpleDatabaseOperationTests.test_quote_name) ... ok -test_regex_lookup (backends.base.test_operations.SimpleDatabaseOperationTests.test_regex_lookup) ... ok -test_sequence_reset_by_name_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_sequence_reset_by_name_sql) ... ok -test_set_time_zone_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_set_time_zone_sql) ... ok -test_sql_flush (backends.base.test_operations.SimpleDatabaseOperationTests.test_sql_flush) ... ok -test_tablespace_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_tablespace_sql) ... ok -test_time_extract_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_time_extract_sql) ... ok -test_time_trunc_sql (backends.base.test_operations.SimpleDatabaseOperationTests.test_time_trunc_sql) ... ok -test_execute_sql_flush_statements (backends.base.test_operations.SqlFlushTests.test_execute_sql_flush_statements) ... ok -test_sql_flush_no_tables (backends.base.test_operations.SqlFlushTests.test_sql_flush_no_tables) ... ok -test_effective_default_callable (backends.base.test_schema.SchemaEditorTests.test_effective_default_callable) -SchemaEditor.effective_default() shouldn't call callable defaults. ... ok -test_clone_test_db_database_exists (backends.mysql.test_creation.DatabaseCreationTests.test_clone_test_db_database_exists) ... skipped 'MySQL tests' -test_clone_test_db_options_ordering (backends.mysql.test_creation.DatabaseCreationTests.test_clone_test_db_options_ordering) ... skipped 'MySQL tests' -test_create_test_db_database_exists (backends.mysql.test_creation.DatabaseCreationTests.test_create_test_db_database_exists) ... skipped 'MySQL tests' -test_create_test_db_unexpected_error (backends.mysql.test_creation.DatabaseCreationTests.test_create_test_db_unexpected_error) ... skipped 'MySQL tests' -test_sql_flush (backends.mysql.test_operations.MySQLOperationsTests.test_sql_flush) ... skipped 'MySQL tests.' -test_sql_flush_sequences (backends.mysql.test_operations.MySQLOperationsTests.test_sql_flush_sequences) ... skipped 'MySQL tests.' -test_get_sequences (backends.oracle.test_introspection.DatabaseSequenceTests.test_get_sequences) ... skipped 'Oracle tests' -test_get_sequences_manually_created_index (backends.oracle.test_introspection.DatabaseSequenceTests.test_get_sequences_manually_created_index) ... skipped 'Oracle tests' -test_bulk_batch_size (backends.oracle.test_operations.OperationsTests.test_bulk_batch_size) ... skipped 'Oracle tests' -test_sequence_name_truncation (backends.oracle.test_operations.OperationsTests.test_sequence_name_truncation) ... skipped 'Oracle tests' -test_sql_flush (backends.oracle.test_operations.OperationsTests.test_sql_flush) ... skipped 'Oracle tests' -test_sql_flush_allow_cascade (backends.oracle.test_operations.OperationsTests.test_sql_flush_allow_cascade) ... skipped 'Oracle tests' -test_sql_flush_sequences (backends.oracle.test_operations.OperationsTests.test_sql_flush_sequences) ... skipped 'Oracle tests' -test_sql_flush_sequences_allow_cascade (backends.oracle.test_operations.OperationsTests.test_sql_flush_sequences_allow_cascade) ... skipped 'Oracle tests' -test_hidden_no_data_found_exception (backends.oracle.tests.TransactionalTests.test_hidden_no_data_found_exception) ... skipped 'Oracle tests' -test_password_with_at_sign (backends.oracle.tests.TransactionalTests.test_password_with_at_sign) ... skipped 'Oracle tests' -test_create_test_db (backends.postgresql.test_creation.DatabaseCreationTests.test_create_test_db) ... skipped 'PostgreSQL tests' -test_sql_table_creation_raises_with_collation (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_raises_with_collation) ... skipped 'PostgreSQL tests' -test_sql_table_creation_suffix_with_encoding (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_suffix_with_encoding) ... skipped 'PostgreSQL tests' -test_sql_table_creation_suffix_with_encoding_and_template (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_suffix_with_encoding_and_template) ... skipped 'PostgreSQL tests' -test_sql_table_creation_suffix_with_none_settings (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_suffix_with_none_settings) ... skipped 'PostgreSQL tests' -test_sql_table_creation_suffix_with_template (backends.postgresql.test_creation.DatabaseCreationTests.test_sql_table_creation_suffix_with_template) ... skipped 'PostgreSQL tests' -test_sql_flush (backends.postgresql.test_operations.PostgreSQLOperationsTests.test_sql_flush) ... skipped 'PostgreSQL tests.' -test_sql_flush_allow_cascade (backends.postgresql.test_operations.PostgreSQLOperationsTests.test_sql_flush_allow_cascade) ... skipped 'PostgreSQL tests.' -test_sql_flush_sequences (backends.postgresql.test_operations.PostgreSQLOperationsTests.test_sql_flush_sequences) ... skipped 'PostgreSQL tests.' -test_sql_flush_sequences_allow_cascade (backends.postgresql.test_operations.PostgreSQLOperationsTests.test_sql_flush_sequences_allow_cascade) ... skipped 'PostgreSQL tests.' -test_custom_test_name (backends.sqlite.test_creation.TestDbSignatureTests.test_custom_test_name) ... skipped 'SQLite tests' -test_get_test_db_clone_settings_name (backends.sqlite.test_creation.TestDbSignatureTests.test_get_test_db_clone_settings_name) ... skipped 'SQLite tests' -test_get_test_db_clone_settings_not_supported (backends.sqlite.test_creation.TestDbSignatureTests.test_get_test_db_clone_settings_not_supported) ... skipped 'SQLite tests' -test_sqlite_date_trunc (backends.sqlite.test_functions.FunctionTests.test_sqlite_date_trunc) ... ok -test_sqlite_datetime_trunc (backends.sqlite.test_functions.FunctionTests.test_sqlite_datetime_trunc) ... ok -test_sqlite_time_trunc (backends.sqlite.test_functions.FunctionTests.test_sqlite_time_trunc) ... ok -test_autoincrement (backends.sqlite.tests.SchemaTests.test_autoincrement) -auto_increment fields are created with the AUTOINCREMENT keyword ... skipped 'SQLite tests' -test_constraint_checks_disabled_atomic_allowed (backends.sqlite.tests.SchemaTests.test_constraint_checks_disabled_atomic_allowed) -SQLite schema editor is usable within an outer transaction as long as ... skipped 'SQLite tests' -test_disable_constraint_checking_failure_disallowed (backends.sqlite.tests.SchemaTests.test_disable_constraint_checking_failure_disallowed) -SQLite schema editor is not usable within an outer transaction if ... skipped 'SQLite tests' -test_field_rename_inside_atomic_block (backends.sqlite.tests.SchemaTests.test_field_rename_inside_atomic_block) -NotImplementedError is raised when a model field rename is attempted ... skipped 'SQLite tests' -test_table_rename_inside_atomic_block (backends.sqlite.tests.SchemaTests.test_table_rename_inside_atomic_block) -NotImplementedError is raised when a table rename is attempted inside ... skipped 'SQLite tests' -test_database_sharing_in_threads (backends.sqlite.tests.ThreadSharing.test_database_sharing_in_threads) ... skipped 'SQLite tests' -test_references_column (backends.test_ddl_references.ColumnsTests.test_references_column) ... ok -test_references_table (backends.test_ddl_references.ColumnsTests.test_references_table) ... ok -test_rename_column_references (backends.test_ddl_references.ColumnsTests.test_rename_column_references) ... ok -test_rename_table_references (backends.test_ddl_references.ColumnsTests.test_rename_table_references) ... ok -test_repr (backends.test_ddl_references.ColumnsTests.test_repr) ... ok -test_str (backends.test_ddl_references.ColumnsTests.test_str) ... ok -test_references_column (backends.test_ddl_references.ExpressionsTests.test_references_column) ... ok -test_references_table (backends.test_ddl_references.ExpressionsTests.test_references_table) ... ok -test_rename_column_references (backends.test_ddl_references.ExpressionsTests.test_rename_column_references) ... ok -test_rename_table_references (backends.test_ddl_references.ExpressionsTests.test_rename_table_references) ... ok -test_rename_table_references_without_alias (backends.test_ddl_references.ExpressionsTests.test_rename_table_references_without_alias) ... ok -test_str (backends.test_ddl_references.ExpressionsTests.test_str) ... ok -test_references_column (backends.test_ddl_references.ForeignKeyNameTests.test_references_column) ... ok -test_references_table (backends.test_ddl_references.ForeignKeyNameTests.test_references_table) ... ok -test_rename_column_references (backends.test_ddl_references.ForeignKeyNameTests.test_rename_column_references) ... ok -test_rename_table_references (backends.test_ddl_references.ForeignKeyNameTests.test_rename_table_references) ... ok -test_repr (backends.test_ddl_references.ForeignKeyNameTests.test_repr) ... ok -test_str (backends.test_ddl_references.ForeignKeyNameTests.test_str) ... ok -test_references_column (backends.test_ddl_references.IndexNameTests.test_references_column) ... ok -test_references_table (backends.test_ddl_references.IndexNameTests.test_references_table) ... ok -test_rename_column_references (backends.test_ddl_references.IndexNameTests.test_rename_column_references) ... ok -test_rename_table_references (backends.test_ddl_references.IndexNameTests.test_rename_table_references) ... ok -test_repr (backends.test_ddl_references.IndexNameTests.test_repr) ... ok -test_str (backends.test_ddl_references.IndexNameTests.test_str) ... ok -test_references_column (backends.test_ddl_references.StatementTests.test_references_column) ... ok -test_references_table (backends.test_ddl_references.StatementTests.test_references_table) ... ok -test_rename_column_references (backends.test_ddl_references.StatementTests.test_rename_column_references) ... ok -test_rename_table_references (backends.test_ddl_references.StatementTests.test_rename_table_references) ... ok -test_repr (backends.test_ddl_references.StatementTests.test_repr) ... ok -test_str (backends.test_ddl_references.StatementTests.test_str) ... ok -test_references_table (backends.test_ddl_references.TableTests.test_references_table) ... ok -test_rename_table_references (backends.test_ddl_references.TableTests.test_rename_table_references) ... ok -test_repr (backends.test_ddl_references.TableTests.test_repr) ... ok -test_str (backends.test_ddl_references.TableTests.test_str) ... ok -test_callproc_kparams (backends.test_utils.CursorWrapperTests.test_callproc_kparams) ... skipped "Database doesn't support feature(s): create_test_procedure_with_int_param_sql, supports_callproc_kwargs" -test_callproc_with_int_params (backends.test_utils.CursorWrapperTests.test_callproc_with_int_params) ... ERROR -test_callproc_without_params (backends.test_utils.CursorWrapperTests.test_callproc_without_params) ... ERROR -test_unsupported_callproc_kparams_raises_error (backends.test_utils.CursorWrapperTests.test_unsupported_callproc_kparams_raises_error) ... ok -test_format_number (backends.test_utils.TestUtils.test_format_number) ... ok -test_split_identifier (backends.test_utils.TestUtils.test_split_identifier) ... ok -test_split_tzname_delta (backends.test_utils.TestUtils.test_split_tzname_delta) ... ok -test_truncate_name (backends.test_utils.TestUtils.test_truncate_name) ... ok -test_cached_db_features (backends.tests.BackendTestCase.test_cached_db_features) ... ok -test_cursor_contextmanager (backends.tests.BackendTestCase.test_cursor_contextmanager) -Cursors can be used as a context manager ... ok -test_cursor_contextmanager_closing (backends.tests.BackendTestCase.test_cursor_contextmanager_closing) ... skipped 'Psycopg specific cursor.closed attribute needed' -test_cursor_execute_with_pyformat (backends.tests.BackendTestCase.test_cursor_execute_with_pyformat) ... ok -test_cursor_executemany (backends.tests.BackendTestCase.test_cursor_executemany) ... ok -test_cursor_executemany_with_empty_params_list (backends.tests.BackendTestCase.test_cursor_executemany_with_empty_params_list) ... ok -test_cursor_executemany_with_iterator (backends.tests.BackendTestCase.test_cursor_executemany_with_iterator) ... ERROR -test_cursor_executemany_with_pyformat (backends.tests.BackendTestCase.test_cursor_executemany_with_pyformat) ... ok -test_cursor_executemany_with_pyformat_iterator (backends.tests.BackendTestCase.test_cursor_executemany_with_pyformat_iterator) ... ERROR -test_database_operations_helper_class (backends.tests.BackendTestCase.test_database_operations_helper_class) ... ok -test_database_operations_init (backends.tests.BackendTestCase.test_database_operations_init) -DatabaseOperations initialization doesn't query the database. ... ok -test_duplicate_table_error (backends.tests.BackendTestCase.test_duplicate_table_error) -Creating an existing table returns a DatabaseError ... ok -test_is_usable_after_database_disconnects (backends.tests.BackendTestCase.test_is_usable_after_database_disconnects) -is_usable() doesn't crash when the database disconnects (#21553). ... ok -test_queries (backends.tests.BackendTestCase.test_queries) -Test the documented API of connection.queries. ... ok -test_queries_bare_where (backends.tests.BackendTestCase.test_queries_bare_where) ... ok -test_queries_limit (backends.tests.BackendTestCase.test_queries_limit) -The backend doesn't store an unlimited number of queries (#12581). ... ok -test_queries_logger (backends.tests.BackendTestCase.test_queries_logger) ... ok -test_timezone_none_use_tz_false (backends.tests.BackendTestCase.test_timezone_none_use_tz_false) ... ok -test_unicode_fetches (backends.tests.BackendTestCase.test_unicode_fetches) ... ok -test_unicode_password (backends.tests.BackendTestCase.test_unicode_password) ... ok -test_signal (backends.tests.ConnectionCreatedSignalTest.test_signal) ... ok -test_check_constraints (backends.tests.FkConstraintsTests.test_check_constraints) -Constraint checks should raise an IntegrityError when bad data is in the DB. ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' -test_check_constraints_sql_keywords (backends.tests.FkConstraintsTests.test_check_constraints_sql_keywords) ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' -test_disable_constraint_checks_context_manager (backends.tests.FkConstraintsTests.test_disable_constraint_checks_context_manager) -When constraint checks are disabled (using context manager), should be ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' -test_disable_constraint_checks_manually (backends.tests.FkConstraintsTests.test_disable_constraint_checks_manually) -When constraint checks are disabled, should be able to write bad data ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' -test_integrity_checks_on_creation (backends.tests.FkConstraintsTests.test_integrity_checks_on_creation) -Try to create a model instance that violates a FK constraint. If it ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' -test_integrity_checks_on_update (backends.tests.FkConstraintsTests.test_integrity_checks_on_update) -Try to update a model instance introducing a FK constraint violation. ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' -test_sequence_name_length_limits_create (backends.tests.LongNameTest.test_sequence_name_length_limits_create) -Creation of model with long name and long pk name doesn't error. ... ok -test_sequence_name_length_limits_flush (backends.tests.LongNameTest.test_sequence_name_length_limits_flush) -Sequence resetting as part of a flush with model with long name and ... ok -test_sequence_name_length_limits_m2m (backends.tests.LongNameTest.test_sequence_name_length_limits_m2m) -An m2m save of a model with a long name and a long m2m field name ... ok -test_closing_non_shared_connections (backends.tests.ThreadTests.test_closing_non_shared_connections) -A connection that is not explicitly shareable cannot be closed by ... ok -test_connections_thread_local (backends.tests.ThreadTests.test_connections_thread_local) -The connections are different for each thread (#17258). ... ok -test_default_connection_thread_local (backends.tests.ThreadTests.test_default_connection_thread_local) -The default connection (i.e. django.db.connection) is different for ... ok -test_pass_connection_between_threads (backends.tests.ThreadTests.test_pass_connection_between_threads) -A connection can be passed from one thread to the other (#17258). ... ok -test_thread_sharing_count (backends.tests.ThreadTests.test_thread_sharing_count) ... ok - -====================================================================== -ERROR: test_callproc_with_int_params (backends.test_utils.CursorWrapperTests.test_callproc_with_int_params) ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute - return self.cursor.execute(sql) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute +test_backend_range_save (model_fields.test_autofield.AutoFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_autofield.AutoFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_autofield.AutoFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_autofield.AutoFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_autofield.AutoFieldTests.test_invalid_value) ... ok +test_redundant_backend_range_validators (model_fields.test_autofield.AutoFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_autofield.AutoFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_autofield.AutoFieldTests.test_types) ... ok +test_backend_range_save (model_fields.test_autofield.BigAutoFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_autofield.BigAutoFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_autofield.BigAutoFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_autofield.BigAutoFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_autofield.BigAutoFieldTests.test_invalid_value) ... ok +test_redundant_backend_range_validators (model_fields.test_autofield.BigAutoFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_autofield.BigAutoFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_autofield.BigAutoFieldTests.test_types) ... ok +test_backend_range_save (model_fields.test_integerfield.BigIntegerFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_integerfield.BigIntegerFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_integerfield.BigIntegerFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_integerfield.BigIntegerFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_integerfield.BigIntegerFieldTests.test_invalid_value) ... ok +test_redundant_backend_range_validators (model_fields.test_integerfield.BigIntegerFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_integerfield.BigIntegerFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_integerfield.BigIntegerFieldTests.test_types) ... ok +test_backend_range_save (model_fields.test_integerfield.IntegerFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_integerfield.IntegerFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_integerfield.IntegerFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_integerfield.IntegerFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_integerfield.IntegerFieldTests.test_invalid_value) ... ok +test_redundant_backend_range_validators (model_fields.test_integerfield.IntegerFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_integerfield.IntegerFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_integerfield.IntegerFieldTests.test_types) ... ok +test_backend_range_save (model_fields.test_autofield.SmallAutoFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_autofield.SmallAutoFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_autofield.SmallAutoFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_autofield.SmallAutoFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_autofield.SmallAutoFieldTests.test_invalid_value) ... ok +test_redundant_backend_range_validators (model_fields.test_autofield.SmallAutoFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_autofield.SmallAutoFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_autofield.SmallAutoFieldTests.test_types) ... ok +test_backend_range_save (model_fields.test_integerfield.SmallIntegerFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_integerfield.SmallIntegerFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_integerfield.SmallIntegerFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_integerfield.SmallIntegerFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_integerfield.SmallIntegerFieldTests.test_invalid_value) ... ok +test_redundant_backend_range_validators (model_fields.test_integerfield.SmallIntegerFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_integerfield.SmallIntegerFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_integerfield.SmallIntegerFieldTests.test_types) ... ok +test_editable (model_fields.test_binaryfield.BinaryFieldTests.test_editable) ... ok +test_filter (model_fields.test_binaryfield.BinaryFieldTests.test_filter) ... ok +test_filter_bytearray (model_fields.test_binaryfield.BinaryFieldTests.test_filter_bytearray) ... ok +test_filter_memoryview (model_fields.test_binaryfield.BinaryFieldTests.test_filter_memoryview) ... ok +test_max_length (model_fields.test_binaryfield.BinaryFieldTests.test_max_length) ... ok +test_set_and_retrieve (model_fields.test_binaryfield.BinaryFieldTests.test_set_and_retrieve) ... ok +test_booleanfield_choices_blank (model_fields.test_booleanfield.BooleanFieldTests.test_booleanfield_choices_blank) +BooleanField with choices and defaults doesn't generate a formfield ... ok +test_booleanfield_choices_blank_desired (model_fields.test_booleanfield.BooleanFieldTests.test_booleanfield_choices_blank_desired) +BooleanField with choices and no default should generated a formfield ... ok +test_booleanfield_get_prep_value (model_fields.test_booleanfield.BooleanFieldTests.test_booleanfield_get_prep_value) ... ok +test_booleanfield_to_python (model_fields.test_booleanfield.BooleanFieldTests.test_booleanfield_to_python) ... ok +test_null_default (model_fields.test_booleanfield.BooleanFieldTests.test_null_default) +A BooleanField defaults to None, which isn't a valid value (#15124). ... ok +test_nullbooleanfield_formfield (model_fields.test_booleanfield.BooleanFieldTests.test_nullbooleanfield_formfield) ... ok +test_nullbooleanfield_get_prep_value (model_fields.test_booleanfield.BooleanFieldTests.test_nullbooleanfield_get_prep_value) ... ok +test_nullbooleanfield_to_python (model_fields.test_booleanfield.BooleanFieldTests.test_nullbooleanfield_to_python) ... ok +test_return_type (model_fields.test_booleanfield.BooleanFieldTests.test_return_type) ... ok +test_select_related (model_fields.test_booleanfield.BooleanFieldTests.test_select_related) +Boolean fields retrieved via select_related() should return booleans. ... ok +test_assignment_from_choice_enum (model_fields.test_charfield.TestCharField.test_assignment_from_choice_enum) ... ok +test_emoji (model_fields.test_charfield.TestCharField.test_emoji) ... ok +test_lookup_integer_in_charfield (model_fields.test_charfield.TestCharField.test_lookup_integer_in_charfield) ... ok +test_max_length_passed_to_formfield (model_fields.test_charfield.TestCharField.test_max_length_passed_to_formfield) +CharField passes its max_length attribute to form fields created using ... ok +test_datetimefield_to_python_microseconds (model_fields.test_datetimefield.DateTimeFieldTests.test_datetimefield_to_python_microseconds) +DateTimeField.to_python() supports microseconds. ... ok +test_datetimes_save_completely (model_fields.test_datetimefield.DateTimeFieldTests.test_datetimes_save_completely) ... ok +test_lookup_date_with_use_tz (model_fields.test_datetimefield.DateTimeFieldTests.test_lookup_date_with_use_tz) ... skipped "Database doesn't support feature(s): has_zoneinfo_database" +test_lookup_date_without_use_tz (model_fields.test_datetimefield.DateTimeFieldTests.test_lookup_date_without_use_tz) ... ok +test_timefield_to_python_microseconds (model_fields.test_datetimefield.DateTimeFieldTests.test_timefield_to_python_microseconds) +TimeField.to_python() supports microseconds. ... ok +test_default (model_fields.test_decimalfield.DecimalFieldTests.test_default) ... ok +test_fetch_from_db_without_float_rounding (model_fields.test_decimalfield.DecimalFieldTests.test_fetch_from_db_without_float_rounding) ... ok +test_filter_with_strings (model_fields.test_decimalfield.DecimalFieldTests.test_filter_with_strings) +Should be able to filter decimal fields using strings (#8023). ... ok +test_get_prep_value (model_fields.test_decimalfield.DecimalFieldTests.test_get_prep_value) ... ok +test_invalid_value (model_fields.test_decimalfield.DecimalFieldTests.test_invalid_value) ... ok +test_lookup_decimal_larger_than_max_digits (model_fields.test_decimalfield.DecimalFieldTests.test_lookup_decimal_larger_than_max_digits) ... ok +test_lookup_really_big_value (model_fields.test_decimalfield.DecimalFieldTests.test_lookup_really_big_value) +Really big values can be used in a filter statement. ... ok +test_max_decimal_places_validation (model_fields.test_decimalfield.DecimalFieldTests.test_max_decimal_places_validation) ... ok +test_max_digits_validation (model_fields.test_decimalfield.DecimalFieldTests.test_max_digits_validation) ... ok +test_max_whole_digits_validation (model_fields.test_decimalfield.DecimalFieldTests.test_max_whole_digits_validation) ... ok +test_roundtrip_with_trailing_zeros (model_fields.test_decimalfield.DecimalFieldTests.test_roundtrip_with_trailing_zeros) +Trailing zeros in the fractional part aren't truncated. ... ok +test_save_inf_invalid (model_fields.test_decimalfield.DecimalFieldTests.test_save_inf_invalid) ... ok +test_save_nan_invalid (model_fields.test_decimalfield.DecimalFieldTests.test_save_nan_invalid) ... ok +test_save_without_float_conversion (model_fields.test_decimalfield.DecimalFieldTests.test_save_without_float_conversion) +Ensure decimals don't go through a corrupting float conversion during ... ok +test_to_python (model_fields.test_decimalfield.DecimalFieldTests.test_to_python) ... ok +test_exact (model_fields.test_durationfield.TestQuerying.test_exact) ... ok +test_gt (model_fields.test_durationfield.TestQuerying.test_gt) ... ok +test_create_empty (model_fields.test_durationfield.TestSaveLoad.test_create_empty) ... ok +test_fractional_seconds (model_fields.test_durationfield.TestSaveLoad.test_fractional_seconds) ... ok +test_simple_roundtrip (model_fields.test_durationfield.TestSaveLoad.test_simple_roundtrip) ... ok +test_abstract_filefield_model (model_fields.test_filefield.FileFieldTests.test_abstract_filefield_model) +FileField.model returns the concrete model for fields defined in an ... ok +test_changed (model_fields.test_filefield.FileFieldTests.test_changed) +FileField.save_form_data(), if passed a truthy value, updates its ... ok +test_clearable (model_fields.test_filefield.FileFieldTests.test_clearable) +FileField.save_form_data() will clear its instance attribute value if ... ok +test_defer (model_fields.test_filefield.FileFieldTests.test_defer) ... ERROR +test_delete_when_file_unset (model_fields.test_filefield.FileFieldTests.test_delete_when_file_unset) +Calling delete on an unset FileField should not call the file deletion ... ok +test_media_root_pathlib (model_fields.test_filefield.FileFieldTests.test_media_root_pathlib) ... ok +test_move_temporary_file (model_fields.test_filefield.FileFieldTests.test_move_temporary_file) +The temporary uploaded file is moved rather than copied to the ... ok +test_open_returns_self (model_fields.test_filefield.FileFieldTests.test_open_returns_self) +FieldField.open() returns self so it can be used as a context manager. ... ok +test_pickle (model_fields.test_filefield.FileFieldTests.test_pickle) ... ERROR +test_refresh_from_db (model_fields.test_filefield.FileFieldTests.test_refresh_from_db) ... ERROR +test_save_without_name (model_fields.test_filefield.FileFieldTests.test_save_without_name) ... ok +test_unchanged (model_fields.test_filefield.FileFieldTests.test_unchanged) +FileField.save_form_data() considers None to mean "no change" rather ... ok +test_unique_when_same_filename (model_fields.test_filefield.FileFieldTests.test_unique_when_same_filename) +A FileField with unique=True shouldn't allow two instances with the ... ok +test_float_validates_object (model_fields.test_floatfield.TestFloatField.test_float_validates_object) ... ok +test_invalid_value (model_fields.test_floatfield.TestFloatField.test_invalid_value) ... ok +test_abstract_model_app_relative_foreign_key (model_fields.test_foreignkey.ForeignKeyTests.test_abstract_model_app_relative_foreign_key) ... ok +test_abstract_model_pending_operations (model_fields.test_foreignkey.ForeignKeyTests.test_abstract_model_pending_operations) +Foreign key fields declared on abstract models should not add lazy ... ok +test_callable_default (model_fields.test_foreignkey.ForeignKeyTests.test_callable_default) +A lazy callable may be used for ForeignKey.default. ... ok +test_empty_string_fk (model_fields.test_foreignkey.ForeignKeyTests.test_empty_string_fk) +Empty strings foreign key values don't get converted to None (#19299). ... ok +test_fk_to_fk_get_col_output_field (model_fields.test_foreignkey.ForeignKeyTests.test_fk_to_fk_get_col_output_field) ... ok +test_invalid_to_parameter (model_fields.test_foreignkey.ForeignKeyTests.test_invalid_to_parameter) ... ok +test_manager_class_getitem (model_fields.test_foreignkey.ForeignKeyTests.test_manager_class_getitem) ... ok +test_non_local_to_field (model_fields.test_foreignkey.ForeignKeyTests.test_non_local_to_field) ... ok +test_recursive_fks_get_col (model_fields.test_foreignkey.ForeignKeyTests.test_recursive_fks_get_col) ... ok +test_related_name_converted_to_text (model_fields.test_foreignkey.ForeignKeyTests.test_related_name_converted_to_text) ... ok +test_to_python (model_fields.test_foreignkey.ForeignKeyTests.test_to_python) ... ok +test_warning_when_unique_true_on_fk (model_fields.test_foreignkey.ForeignKeyTests.test_warning_when_unique_true_on_fk) ... ok +test_blank_string_saved_as_null (model_fields.test_genericipaddressfield.GenericIPAddressFieldTests.test_blank_string_saved_as_null) ... ok +test_genericipaddressfield_formfield_protocol (model_fields.test_genericipaddressfield.GenericIPAddressFieldTests.test_genericipaddressfield_formfield_protocol) +GenericIPAddressField with a specified protocol does not generate a ... ok +test_null_value (model_fields.test_genericipaddressfield.GenericIPAddressFieldTests.test_null_value) +Null values should be resolved to None. ... ok +test_save_load (model_fields.test_genericipaddressfield.GenericIPAddressFieldTests.test_save_load) ... ok +test_assignment_to_None (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_assignment_to_None) +Assigning ImageField to None clears dimensions. ... ok +test_constructor (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_constructor) +Tests assigning an image field through the model's constructor. ... ok +test_create (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_create) +Tests assigning an image in Manager.create(). ... ok +test_default_value (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_default_value) +The default value for an ImageField is an instance of ... ok +test_dimensions (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_dimensions) +Dimensions are updated correctly in various situations. ... ok +test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_field_save_and_delete_methods) +Tests assignment using the field's save method and deletion using ... ok +test_image_after_constructor (model_fields.test_imagefield.ImageFieldDimensionsFirstTests.test_image_after_constructor) +Tests behavior when image is not passed in constructor. ... ok +test_assignment_to_None (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_assignment_to_None) +Assigning ImageField to None clears dimensions. ... ok +test_constructor (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_constructor) +Tests assigning an image field through the model's constructor. ... ok +test_create (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_create) +Tests assigning an image in Manager.create(). ... ok +test_default_value (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_default_value) +The default value for an ImageField is an instance of ... ok +test_dimensions (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_dimensions) +Dimensions are updated correctly in various situations. ... ok +test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_field_save_and_delete_methods) +Tests assignment using the field's save method and deletion using ... ok +test_image_after_constructor (model_fields.test_imagefield.ImageFieldNoDimensionsTests.test_image_after_constructor) +Tests behavior when image is not passed in constructor. ... ok +test_assignment_to_None (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_assignment_to_None) +Assigning ImageField to None clears dimensions. ... ok +test_constructor (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_constructor) +Tests assigning an image field through the model's constructor. ... ok +test_create (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_create) +Tests assigning an image in Manager.create(). ... ok +test_default_value (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_default_value) +The default value for an ImageField is an instance of ... ok +test_dimensions (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_dimensions) +Dimensions are updated correctly in various situations. ... ok +test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_field_save_and_delete_methods) +Tests assignment using the field's save method and deletion using ... ok +test_image_after_constructor (model_fields.test_imagefield.ImageFieldOneDimensionTests.test_image_after_constructor) +Tests behavior when image is not passed in constructor. ... ok +test_defer (model_fields.test_imagefield.ImageFieldTests.test_defer) ... ok +test_delete_when_missing (model_fields.test_imagefield.ImageFieldTests.test_delete_when_missing) +Bug #8175: correctly delete an object where the file no longer ... ok +test_equal_notequal_hash (model_fields.test_imagefield.ImageFieldTests.test_equal_notequal_hash) +Bug #9786: Ensure '==' and '!=' work correctly. ... ok +test_instantiate_missing (model_fields.test_imagefield.ImageFieldTests.test_instantiate_missing) +If the underlying file is unavailable, still create instantiate the ... ok +test_pickle (model_fields.test_imagefield.ImageFieldTests.test_pickle) +ImageField can be pickled, unpickled, and that the image of ... ok +test_size_method (model_fields.test_imagefield.ImageFieldTests.test_size_method) +Bug #8534: FileField.size should not leave the file open. ... ok +test_assignment_to_None (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_assignment_to_None) +Assigning ImageField to None clears dimensions. ... ok +test_constructor (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_constructor) +Tests assigning an image field through the model's constructor. ... ok +test_create (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_create) +Tests assigning an image in Manager.create(). ... ok +test_default_value (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_default_value) +The default value for an ImageField is an instance of ... ok +test_dimensions (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_dimensions) +Dimensions are updated correctly in various situations. ... ok +test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_field_save_and_delete_methods) +Tests assignment using the field's save method and deletion using ... ok +test_image_after_constructor (model_fields.test_imagefield.ImageFieldTwoDimensionsTests.test_image_after_constructor) +Tests behavior when image is not passed in constructor. ... ok +test_assignment_to_None (model_fields.test_imagefield.ImageFieldUsingFileTests.test_assignment_to_None) +Assigning ImageField to None clears dimensions. ... ok +test_constructor (model_fields.test_imagefield.ImageFieldUsingFileTests.test_constructor) +Tests assigning an image field through the model's constructor. ... ok +test_create (model_fields.test_imagefield.ImageFieldUsingFileTests.test_create) +Tests assigning an image in Manager.create(). ... ok +test_default_value (model_fields.test_imagefield.ImageFieldUsingFileTests.test_default_value) +The default value for an ImageField is an instance of ... ok +test_dimensions (model_fields.test_imagefield.ImageFieldUsingFileTests.test_dimensions) +Dimensions are updated correctly in various situations. ... ok +test_field_save_and_delete_methods (model_fields.test_imagefield.ImageFieldUsingFileTests.test_field_save_and_delete_methods) +Tests assignment using the field's save method and deletion using ... ok +test_image_after_constructor (model_fields.test_imagefield.ImageFieldUsingFileTests.test_image_after_constructor) +Tests behavior when image is not passed in constructor. ... ok +test_assignment (model_fields.test_imagefield.TwoImageFieldTests.test_assignment) ... ok +test_constructor (model_fields.test_imagefield.TwoImageFieldTests.test_constructor) ... ok +test_create (model_fields.test_imagefield.TwoImageFieldTests.test_create) ... ok +test_dimensions (model_fields.test_imagefield.TwoImageFieldTests.test_dimensions) +Dimensions are updated correctly in various situations. ... ok +test_field_save_and_delete_methods (model_fields.test_imagefield.TwoImageFieldTests.test_field_save_and_delete_methods) ... ok +test_backend_range_save (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_invalid_value) ... ok +test_redundant_backend_range_validators (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_integerfield.PositiveBigIntegerFieldTests.test_types) ... ok +test_backend_range_save (model_fields.test_integerfield.PositiveIntegerFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_integerfield.PositiveIntegerFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_integerfield.PositiveIntegerFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_integerfield.PositiveIntegerFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_integerfield.PositiveIntegerFieldTests.test_invalid_value) ... ok +test_negative_values (model_fields.test_integerfield.PositiveIntegerFieldTests.test_negative_values) ... ok +test_redundant_backend_range_validators (model_fields.test_integerfield.PositiveIntegerFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_integerfield.PositiveIntegerFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_integerfield.PositiveIntegerFieldTests.test_types) ... ok +test_backend_range_save (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_backend_range_save) +Backend specific ranges can be saved without corruption. ... ok +test_backend_range_validation (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_backend_range_validation) +Backend specific ranges are enforced at the model validation level ... ok +test_coercing (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_coercing) ... ok +test_documented_range (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_documented_range) +Values within the documented safe range pass validation, and can be ... ok +test_invalid_value (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_invalid_value) ... ok +test_redundant_backend_range_validators (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_redundant_backend_range_validators) +If there are stricter validators than the ones from the database ... ok +test_rel_db_type (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_rel_db_type) ... ok +test_types (model_fields.test_integerfield.PositiveSmallIntegerFieldTests.test_types) ... ok +test_custom_encoder_decoder (model_fields.test_jsonfield.JSONFieldTests.test_custom_encoder_decoder) ... ok +test_db_check_constraints (model_fields.test_jsonfield.JSONFieldTests.test_db_check_constraints) ... ok +test_invalid_value (model_fields.test_jsonfield.JSONFieldTests.test_invalid_value) ... ok +test_array_key_contains (model_fields.test_jsonfield.TestQuerying.test_array_key_contains) ... skipped "Database doesn't support feature(s): supports_json_field_contains" +test_contained_by (model_fields.test_jsonfield.TestQuerying.test_contained_by) ... skipped "Database doesn't support feature(s): supports_json_field_contains" +test_contained_by_unsupported (model_fields.test_jsonfield.TestQuerying.test_contained_by_unsupported) ... ok +test_contains (model_fields.test_jsonfield.TestQuerying.test_contains) ... skipped "Database doesn't support feature(s): supports_json_field_contains" +test_contains_contained_by_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_contains_contained_by_with_key_transform) ... skipped "Database doesn't support feature(s): supports_json_field_contains" +test_contains_primitives (model_fields.test_jsonfield.TestQuerying.test_contains_primitives) ... skipped "Database doesn't support feature(s): supports_primitives_in_json_field, supports_json_field_contains" +test_contains_unsupported (model_fields.test_jsonfield.TestQuerying.test_contains_unsupported) ... ok +test_deep_distinct (model_fields.test_jsonfield.TestQuerying.test_deep_distinct) ... skipped "Database doesn't support feature(s): can_distinct_on_fields" +test_deep_lookup_array (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_array) ... ERROR +test_deep_lookup_mixed (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_mixed) ... ERROR +test_deep_lookup_objs (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_objs) ... ERROR +test_deep_lookup_transform (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_transform) ... ERROR +test_deep_values (model_fields.test_jsonfield.TestQuerying.test_deep_values) ... ERROR +test_exact (model_fields.test_jsonfield.TestQuerying.test_exact) ... ok +test_exact_complex (model_fields.test_jsonfield.TestQuerying.test_exact_complex) ... FAIL +test_expression_wrapper_key_transform (model_fields.test_jsonfield.TestQuerying.test_expression_wrapper_key_transform) ... ERROR +test_has_any_keys (model_fields.test_jsonfield.TestQuerying.test_has_any_keys) ... ERROR +test_has_key (model_fields.test_jsonfield.TestQuerying.test_has_key) ... ERROR +test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) ... + test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR + test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR + test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR + test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR + test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR + test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR + test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR + test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) ... ERROR +test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) ... + test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ... ERROR + test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ... ERROR + test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ... ERROR + test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) ... ERROR +test_has_key_null_value (model_fields.test_jsonfield.TestQuerying.test_has_key_null_value) ... ERROR +test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) ... + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR + test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) ... ERROR +test_has_keys (model_fields.test_jsonfield.TestQuerying.test_has_keys) ... ERROR +test_icontains (model_fields.test_jsonfield.TestQuerying.test_icontains) ... FAIL +test_isnull (model_fields.test_jsonfield.TestQuerying.test_isnull) ... ok +test_isnull_key (model_fields.test_jsonfield.TestQuerying.test_isnull_key) ... ERROR +test_isnull_key_or_none (model_fields.test_jsonfield.TestQuerying.test_isnull_key_or_none) ... ERROR +test_join_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression) ... ERROR +test_key_contains (model_fields.test_jsonfield.TestQuerying.test_key_contains) ... skipped "Database doesn't support feature(s): supports_json_field_contains" +test_key_endswith (model_fields.test_jsonfield.TestQuerying.test_key_endswith) ... ERROR +test_key_escape (model_fields.test_jsonfield.TestQuerying.test_key_escape) ... ERROR +test_key_icontains (model_fields.test_jsonfield.TestQuerying.test_key_icontains) ... ERROR +test_key_iendswith (model_fields.test_jsonfield.TestQuerying.test_key_iendswith) ... ERROR +test_key_iexact (model_fields.test_jsonfield.TestQuerying.test_key_iexact) ... ERROR +test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) ... + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__c__in', value=[14]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__c__in', value=[14, 15]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__0__in', value=[1]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__0__in', value=[1, 3]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=['bar']) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[KeyTransform(KeyTransform(F(value)))]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[F(value__bax__foo)]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[KeyTransform(KeyTransform(F(value))), 'baz']) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[F(value__bax__foo), 'baz']) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=['bar', 'baz']) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bar__in', value=[['foo', 'bar']]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bar__in', value=[['foo', 'bar'], ['a']]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bax__in', value=[{'foo': 'bar'}, {'a': 'b'}]) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__h__in', value=[True, 'foo']) ... ERROR + test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__i__in', value=[False, 'foo']) ... ERROR +test_key_iregex (model_fields.test_jsonfield.TestQuerying.test_key_iregex) ... ERROR +test_key_istartswith (model_fields.test_jsonfield.TestQuerying.test_key_istartswith) ... ERROR +test_key_quoted_string (model_fields.test_jsonfield.TestQuerying.test_key_quoted_string) ... ERROR +test_key_regex (model_fields.test_jsonfield.TestQuerying.test_key_regex) ... ERROR +test_key_sql_injection (model_fields.test_jsonfield.TestQuerying.test_key_sql_injection) ... skipped "Database doesn't support feature(s): has_json_operators" +test_key_sql_injection_escape (model_fields.test_jsonfield.TestQuerying.test_key_sql_injection_escape) ... FAIL +test_key_startswith (model_fields.test_jsonfield.TestQuerying.test_key_startswith) ... ERROR +test_key_text_transform_char_lookup (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_char_lookup) ... ERROR +test_key_text_transform_from_lookup (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_from_lookup) ... ERROR +test_key_text_transform_from_lookup_invalid (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_from_lookup_invalid) ... ok +test_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_annotation_expression) ... ERROR +test_key_transform_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_expression) ... ERROR +test_key_transform_raw_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_raw_expression) ... ERROR +test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) ... + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__a') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__c') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__d') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__h') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__i') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__j') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__k') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__n') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__p') ... ERROR + test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__r') ... ERROR +test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) ... + test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) (lookup='value__h') ... ERROR + test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) (lookup='value__i') ... ERROR +test_lookup_exclude (model_fields.test_jsonfield.TestQuerying.test_lookup_exclude) ... ERROR +test_lookup_exclude_nonexistent_key (model_fields.test_jsonfield.TestQuerying.test_lookup_exclude_nonexistent_key) ... ERROR +test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) ... + test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_key') ... ERROR + test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_keys') ... ERROR + test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_any_keys') ... ERROR + test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__has_key') ... ERROR +test_nested_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_annotation_expression) ... ERROR +test_nested_key_transform_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_expression) ... ERROR +test_nested_key_transform_on_subquery (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_on_subquery) ... ERROR +test_nested_key_transform_raw_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_raw_expression) ... ERROR +test_none_key (model_fields.test_jsonfield.TestQuerying.test_none_key) ... ERROR +test_none_key_and_exact_lookup (model_fields.test_jsonfield.TestQuerying.test_none_key_and_exact_lookup) ... ERROR +test_none_key_exclude (model_fields.test_jsonfield.TestQuerying.test_none_key_exclude) ... ERROR +test_obj_subquery_lookup (model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup) ... ERROR +test_order_grouping_custom_decoder (model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder) ... ERROR +test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) ... + test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) (field='value') ... ERROR + test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) (field='value_custom') ... ERROR +test_ordering_grouping_by_count (model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count) ... ERROR +test_ordering_grouping_by_key_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform) ... ERROR +test_shallow_list_lookup (model_fields.test_jsonfield.TestQuerying.test_shallow_list_lookup) ... ERROR +test_shallow_lookup_obj_target (model_fields.test_jsonfield.TestQuerying.test_shallow_lookup_obj_target) ... ERROR +test_shallow_obj_lookup (model_fields.test_jsonfield.TestQuerying.test_shallow_obj_lookup) ... ERROR +test_usage_in_subquery (model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery) ... ERROR +test_ambiguous_str_value_deprecation (model_fields.test_jsonfield.TestSaveLoad.test_ambiguous_str_value_deprecation) ... ok +test_dict (model_fields.test_jsonfield.TestSaveLoad.test_dict) ... ok +test_json_null_different_from_sql_null (model_fields.test_jsonfield.TestSaveLoad.test_json_null_different_from_sql_null) ... ok +test_list (model_fields.test_jsonfield.TestSaveLoad.test_list) ... ok +test_null (model_fields.test_jsonfield.TestSaveLoad.test_null) ... ok +test_primitives (model_fields.test_jsonfield.TestSaveLoad.test_primitives) ... ok +test_realistic_object (model_fields.test_jsonfield.TestSaveLoad.test_realistic_object) ... ok +test_value_str_primitives_deprecation (model_fields.test_jsonfield.TestSaveLoad.test_value_str_primitives_deprecation) ... ok +test_value_from_object_instance_with_pk (model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_with_pk) ... ok +test_value_from_object_instance_without_pk (model_fields.test_manytomanyfield.ManyToManyFieldDBTests.test_value_from_object_instance_without_pk) ... ok +test_slugfield_max_length (model_fields.test_slugfield.SlugFieldTests.test_slugfield_max_length) +SlugField honors max_length. ... ok +test_slugfield_unicode_max_length (model_fields.test_slugfield.SlugFieldTests.test_slugfield_unicode_max_length) +SlugField with allow_unicode=True honors max_length. ... ok +test_choices_generates_select_widget (model_fields.test_textfield.TextFieldTests.test_choices_generates_select_widget) +A TextField with choices uses a Select widget. ... ok +test_emoji (model_fields.test_textfield.TextFieldTests.test_emoji) ... ok +test_lookup_integer_in_textfield (model_fields.test_textfield.TextFieldTests.test_lookup_integer_in_textfield) ... ok +test_max_length_passed_to_formfield (model_fields.test_textfield.TextFieldTests.test_max_length_passed_to_formfield) +TextField passes its max_length attribute to form fields created using ... ok +test_to_python (model_fields.test_textfield.TextFieldTests.test_to_python) +TextField.to_python() should return a string. ... ok +test_creation (model_fields.test_uuid.TestAsPrimaryKey.test_creation) ... ok +test_two_level_foreign_keys (model_fields.test_uuid.TestAsPrimaryKey.test_two_level_foreign_keys) ... ok +test_underlying_field (model_fields.test_uuid.TestAsPrimaryKey.test_underlying_field) ... ok +test_update_with_related_model_id (model_fields.test_uuid.TestAsPrimaryKey.test_update_with_related_model_id) ... ok +test_update_with_related_model_instance (model_fields.test_uuid.TestAsPrimaryKey.test_update_with_related_model_instance) ... ok +test_uuid_pk_on_bulk_create (model_fields.test_uuid.TestAsPrimaryKey.test_uuid_pk_on_bulk_create) ... ok +test_uuid_pk_on_save (model_fields.test_uuid.TestAsPrimaryKey.test_uuid_pk_on_save) ... ok +test_contains (model_fields.test_uuid.TestQuerying.test_contains) ... ok +test_endswith (model_fields.test_uuid.TestQuerying.test_endswith) ... ok +test_exact (model_fields.test_uuid.TestQuerying.test_exact) ... ok +test_filter_with_expr (model_fields.test_uuid.TestQuerying.test_filter_with_expr) ... ERROR +test_icontains (model_fields.test_uuid.TestQuerying.test_icontains) ... ok +test_iendswith (model_fields.test_uuid.TestQuerying.test_iendswith) ... ok +test_iexact (model_fields.test_uuid.TestQuerying.test_iexact) ... ok +test_isnull (model_fields.test_uuid.TestQuerying.test_isnull) ... ok +test_istartswith (model_fields.test_uuid.TestQuerying.test_istartswith) ... ok +test_startswith (model_fields.test_uuid.TestQuerying.test_startswith) ... ok +test_null_handling (model_fields.test_uuid.TestSaveLoad.test_null_handling) ... ok +test_pk_validated (model_fields.test_uuid.TestSaveLoad.test_pk_validated) ... ok +test_str_instance_bad_hyphens (model_fields.test_uuid.TestSaveLoad.test_str_instance_bad_hyphens) ... ok +test_str_instance_hyphens (model_fields.test_uuid.TestSaveLoad.test_str_instance_hyphens) ... ok +test_str_instance_no_hyphens (model_fields.test_uuid.TestSaveLoad.test_str_instance_no_hyphens) ... ok +test_uuid_instance (model_fields.test_uuid.TestSaveLoad.test_uuid_instance) ... ok +test_wrong_value (model_fields.test_uuid.TestSaveLoad.test_wrong_value) ... ok +test_get_choices (model_fields.tests.GetChoicesLimitChoicesToTests.test_get_choices) ... ok +test_get_choices_reverse_related_field (model_fields.tests.GetChoicesLimitChoicesToTests.test_get_choices_reverse_related_field) ... ok +test_get_choices (model_fields.tests.GetChoicesOrderingTests.test_get_choices) ... ok +test_get_choices_default_ordering (model_fields.tests.GetChoicesOrderingTests.test_get_choices_default_ordering) ... ok +test_get_choices_reverse_related_field (model_fields.tests.GetChoicesOrderingTests.test_get_choices_reverse_related_field) ... ok +test_get_choices_reverse_related_field_default_ordering (model_fields.tests.GetChoicesOrderingTests.test_get_choices_reverse_related_field_default_ordering) ... ok +test_isinstance_of_autofield (model_fields.test_autofield.AutoFieldInheritanceTests.test_isinstance_of_autofield) ... ok +test_issubclass_of_autofield (model_fields.test_autofield.AutoFieldInheritanceTests.test_issubclass_of_autofield) ... ok +test_boolean_field_doesnt_accept_empty_input (model_fields.test_booleanfield.ValidationTest.test_boolean_field_doesnt_accept_empty_input) ... ok +test_nullbooleanfield_blank (model_fields.test_booleanfield.ValidationTest.test_nullbooleanfield_blank) +NullBooleanField shouldn't throw a validation error when given a value ... ok +test_deconstruct (model_fields.test_charfield.TestMethods.test_deconstruct) ... ok +test_charfield_cleans_empty_string_when_blank_true (model_fields.test_charfield.ValidationTests.test_charfield_cleans_empty_string_when_blank_true) ... ok +test_charfield_raises_error_on_empty_input (model_fields.test_charfield.ValidationTests.test_charfield_raises_error_on_empty_input) ... ok +test_charfield_raises_error_on_empty_string (model_fields.test_charfield.ValidationTests.test_charfield_raises_error_on_empty_string) ... ok +test_charfield_with_choices_cleans_valid_choice (model_fields.test_charfield.ValidationTests.test_charfield_with_choices_cleans_valid_choice) ... ok +test_charfield_with_choices_raises_error_on_invalid_choice (model_fields.test_charfield.ValidationTests.test_charfield_with_choices_raises_error_on_invalid_choice) ... ok +test_enum_choices_cleans_valid_string (model_fields.test_charfield.ValidationTests.test_enum_choices_cleans_valid_string) ... ok +test_enum_choices_invalid_input (model_fields.test_charfield.ValidationTests.test_enum_choices_invalid_input) ... ok +test_datefield_cleans_date (model_fields.test_datetimefield.ValidationTest.test_datefield_cleans_date) ... ok +test_formfield (model_fields.test_durationfield.TestFormField.test_formfield) ... ok +test_dumping (model_fields.test_durationfield.TestSerialization.test_dumping) ... ok +test_loading (model_fields.test_durationfield.TestSerialization.test_loading) ... ok +test_invalid_string (model_fields.test_durationfield.TestValidation.test_invalid_string) ... ok +test_all_field_types_should_have_flags (model_fields.test_field_flags.FieldFlagsTests.test_all_field_types_should_have_flags) ... ok +test_cardinality_m2m (model_fields.test_field_flags.FieldFlagsTests.test_cardinality_m2m) ... ok +test_cardinality_m2o (model_fields.test_field_flags.FieldFlagsTests.test_cardinality_m2o) ... ok +test_cardinality_o2m (model_fields.test_field_flags.FieldFlagsTests.test_cardinality_o2m) ... ok +test_cardinality_o2o (model_fields.test_field_flags.FieldFlagsTests.test_cardinality_o2o) ... ok +test_each_field_should_have_a_concrete_attribute (model_fields.test_field_flags.FieldFlagsTests.test_each_field_should_have_a_concrete_attribute) ... ok +test_each_field_should_have_a_has_rel_attribute (model_fields.test_field_flags.FieldFlagsTests.test_each_field_should_have_a_has_rel_attribute) ... ok +test_each_field_should_have_an_editable_attribute (model_fields.test_field_flags.FieldFlagsTests.test_each_field_should_have_an_editable_attribute) ... ok +test_each_object_should_have_auto_created (model_fields.test_field_flags.FieldFlagsTests.test_each_object_should_have_auto_created) ... ok +test_field_names_should_always_be_available (model_fields.test_field_flags.FieldFlagsTests.test_field_names_should_always_be_available) ... ok +test_hidden_flag (model_fields.test_field_flags.FieldFlagsTests.test_hidden_flag) ... ok +test_model_and_reverse_model_should_equal_on_relations (model_fields.test_field_flags.FieldFlagsTests.test_model_and_reverse_model_should_equal_on_relations) ... ok +test_non_concrete_fields (model_fields.test_field_flags.FieldFlagsTests.test_non_concrete_fields) ... ok +test_non_editable_fields (model_fields.test_field_flags.FieldFlagsTests.test_non_editable_fields) ... ok +test_null (model_fields.test_field_flags.FieldFlagsTests.test_null) ... ok +test_related_fields (model_fields.test_field_flags.FieldFlagsTests.test_related_fields) ... ok +test_callable_path (model_fields.test_filepathfield.FilePathFieldTests.test_callable_path) ... ok +test_path (model_fields.test_filepathfield.FilePathFieldTests.test_path) ... ok +test_choices_validation_supports_named_groups (model_fields.test_integerfield.ValidationTests.test_choices_validation_supports_named_groups) ... ok +test_enum_choices_cleans_valid_string (model_fields.test_integerfield.ValidationTests.test_enum_choices_cleans_valid_string) ... ok +test_enum_choices_invalid_input (model_fields.test_integerfield.ValidationTests.test_enum_choices_invalid_input) ... ok +test_integerfield_cleans_valid_string (model_fields.test_integerfield.ValidationTests.test_integerfield_cleans_valid_string) ... ok +test_integerfield_raises_error_on_empty_input (model_fields.test_integerfield.ValidationTests.test_integerfield_raises_error_on_empty_input) ... ok +test_integerfield_raises_error_on_invalid_intput (model_fields.test_integerfield.ValidationTests.test_integerfield_raises_error_on_invalid_intput) ... ok +test_integerfield_validates_zero_against_choices (model_fields.test_integerfield.ValidationTests.test_integerfield_validates_zero_against_choices) ... ok +test_nullable_integerfield_cleans_none_on_null_and_blank_true (model_fields.test_integerfield.ValidationTests.test_nullable_integerfield_cleans_none_on_null_and_blank_true) ... ok +test_nullable_integerfield_raises_error_with_blank_false (model_fields.test_integerfield.ValidationTests.test_nullable_integerfield_raises_error_with_blank_false) ... ok +test_formfield (model_fields.test_jsonfield.TestFormField.test_formfield) ... ok +test_formfield_custom_encoder_decoder (model_fields.test_jsonfield.TestFormField.test_formfield_custom_encoder_decoder) ... ok +test_deconstruct (model_fields.test_jsonfield.TestMethods.test_deconstruct) ... ok +test_deconstruct_custom_encoder_decoder (model_fields.test_jsonfield.TestMethods.test_deconstruct_custom_encoder_decoder) ... ok +test_get_prep_value (model_fields.test_jsonfield.TestMethods.test_get_prep_value) ... ok +test_get_transforms (model_fields.test_jsonfield.TestMethods.test_get_transforms) ... ok +test_key_transform_text_lookup_mixin_non_key_transform (model_fields.test_jsonfield.TestMethods.test_key_transform_text_lookup_mixin_non_key_transform) ... ok +test_dumping (model_fields.test_jsonfield.TestSerialization.test_dumping) ... ok +test_loading (model_fields.test_jsonfield.TestSerialization.test_loading) ... ok +test_xml_serialization (model_fields.test_jsonfield.TestSerialization.test_xml_serialization) ... ok +test_custom_encoder (model_fields.test_jsonfield.TestValidation.test_custom_encoder) ... ok +test_invalid_decoder (model_fields.test_jsonfield.TestValidation.test_invalid_decoder) ... ok +test_invalid_encoder (model_fields.test_jsonfield.TestValidation.test_invalid_encoder) ... ok +test_validation_error (model_fields.test_jsonfield.TestValidation.test_validation_error) ... ok +test_abstract_model_app_relative_foreign_key (model_fields.test_manytomanyfield.ManyToManyFieldTests.test_abstract_model_app_relative_foreign_key) ... ok +test_abstract_model_pending_operations (model_fields.test_manytomanyfield.ManyToManyFieldTests.test_abstract_model_pending_operations) +Many-to-many fields declared on abstract models should not add lazy ... ok +test_invalid_to_parameter (model_fields.test_manytomanyfield.ManyToManyFieldTests.test_invalid_to_parameter) ... ok +test_through_db_table_mutually_exclusive (model_fields.test_manytomanyfield.ManyToManyFieldTests.test_through_db_table_mutually_exclusive) ... ok +test_AutoField (model_fields.test_promises.PromiseTest.test_AutoField) ... ok +test_BinaryField (model_fields.test_promises.PromiseTest.test_BinaryField) ... ok +test_BooleanField (model_fields.test_promises.PromiseTest.test_BooleanField) ... ok +test_CharField (model_fields.test_promises.PromiseTest.test_CharField) ... ok +test_DateField (model_fields.test_promises.PromiseTest.test_DateField) ... ok +test_DateTimeField (model_fields.test_promises.PromiseTest.test_DateTimeField) ... ok +test_DecimalField (model_fields.test_promises.PromiseTest.test_DecimalField) ... ok +test_EmailField (model_fields.test_promises.PromiseTest.test_EmailField) ... ok +test_FileField (model_fields.test_promises.PromiseTest.test_FileField) ... ok +test_FilePathField (model_fields.test_promises.PromiseTest.test_FilePathField) ... ok +test_FloatField (model_fields.test_promises.PromiseTest.test_FloatField) ... ok +test_GenericIPAddressField (model_fields.test_promises.PromiseTest.test_GenericIPAddressField) ... ok +test_IPAddressField (model_fields.test_promises.PromiseTest.test_IPAddressField) ... ok +test_ImageField (model_fields.test_promises.PromiseTest.test_ImageField) ... ok +test_IntegerField (model_fields.test_promises.PromiseTest.test_IntegerField) ... ok +test_PositiveBigIntegerField (model_fields.test_promises.PromiseTest.test_PositiveBigIntegerField) ... ok +test_PositiveIntegerField (model_fields.test_promises.PromiseTest.test_PositiveIntegerField) ... ok +test_PositiveSmallIntegerField (model_fields.test_promises.PromiseTest.test_PositiveSmallIntegerField) ... ok +test_SlugField (model_fields.test_promises.PromiseTest.test_SlugField) ... ok +test_SmallIntegerField (model_fields.test_promises.PromiseTest.test_SmallIntegerField) ... ok +test_TextField (model_fields.test_promises.PromiseTest.test_TextField) ... ok +test_TimeField (model_fields.test_promises.PromiseTest.test_TimeField) ... ok +test_URLField (model_fields.test_promises.PromiseTest.test_URLField) ... ok +test_deconstruct (model_fields.test_textfield.TestMethods.test_deconstruct) ... ok +test_unsaved_fk (model_fields.test_uuid.TestAsPrimaryKeyTransactionTests.test_unsaved_fk) ... skipped 'SingleStore does not enforce FOREIGN KEY constraints' +test_deconstruct (model_fields.test_uuid.TestMethods.test_deconstruct) ... ok +test_to_python (model_fields.test_uuid.TestMethods.test_to_python) ... ok +test_to_python_int_too_large (model_fields.test_uuid.TestMethods.test_to_python_int_too_large) ... ok +test_to_python_int_values (model_fields.test_uuid.TestMethods.test_to_python_int_values) ... ok +test_dumping (model_fields.test_uuid.TestSerialization.test_dumping) ... ok +test_loading (model_fields.test_uuid.TestSerialization.test_loading) ... ok +test_nullable_loading (model_fields.test_uuid.TestSerialization.test_nullable_loading) ... ok +test_invalid_uuid (model_fields.test_uuid.TestValidation.test_invalid_uuid) ... ok +test_uuid_instance_ok (model_fields.test_uuid.TestValidation.test_uuid_instance_ok) ... ok +test_abstract_inherited_fields (model_fields.tests.BasicFieldTests.test_abstract_inherited_fields) +Field instances from abstract models are not equal. ... ok +test_choices_form_class (model_fields.tests.BasicFieldTests.test_choices_form_class) +Can supply a custom choices form class to Field.formfield() ... ok +test_deconstruct_nested_field (model_fields.tests.BasicFieldTests.test_deconstruct_nested_field) +deconstruct() uses __qualname__ for nested class support. ... ok +test_field_instance_is_picklable (model_fields.tests.BasicFieldTests.test_field_instance_is_picklable) +Field instances can be pickled. ... ok +test_field_name (model_fields.tests.BasicFieldTests.test_field_name) +A defined field name (name="fieldname") is used instead of the model ... ok +test_field_ordering (model_fields.tests.BasicFieldTests.test_field_ordering) +Fields are ordered based on their creation. ... ok +test_field_repr (model_fields.tests.BasicFieldTests.test_field_repr) +__repr__() of a field displays its name. ... ok +test_field_repr_nested (model_fields.tests.BasicFieldTests.test_field_repr_nested) +__repr__() uses __qualname__ for nested class support. ... ok +test_field_str (model_fields.tests.BasicFieldTests.test_field_str) ... ok +test_field_verbose_name (model_fields.tests.BasicFieldTests.test_field_verbose_name) ... ok +test_formfield_disabled (model_fields.tests.BasicFieldTests.test_formfield_disabled) +Field.formfield() sets disabled for fields with choices. ... ok +test_hash_immutability (model_fields.tests.BasicFieldTests.test_hash_immutability) ... ok +test_show_hidden_initial (model_fields.tests.BasicFieldTests.test_show_hidden_initial) +Fields with choices respect show_hidden_initial as a kwarg to ... ok +test_check (model_fields.tests.ChoicesTests.test_check) ... ok +test_choices (model_fields.tests.ChoicesTests.test_choices) ... ok +test_flatchoices (model_fields.tests.ChoicesTests.test_flatchoices) ... ok +test_formfield (model_fields.tests.ChoicesTests.test_formfield) ... ok +test_invalid_choice (model_fields.tests.ChoicesTests.test_invalid_choice) ... ok +test_blank_in_choices (model_fields.tests.GetChoicesTests.test_blank_in_choices) ... ok +test_blank_in_grouped_choices (model_fields.tests.GetChoicesTests.test_blank_in_grouped_choices) ... ok +test_empty_choices (model_fields.tests.GetChoicesTests.test_empty_choices) ... ok +test_lazy_strings_not_evaluated (model_fields.tests.GetChoicesTests.test_lazy_strings_not_evaluated) ... ok +test_choices_and_field_display (model_fields.tests.GetFieldDisplayTests.test_choices_and_field_display) +get_choices() interacts with get_FIELD_display() to return the expected ... ok +test_empty_iterator_choices (model_fields.tests.GetFieldDisplayTests.test_empty_iterator_choices) +get_choices() works with empty iterators. ... ok +test_get_FIELD_display_translated (model_fields.tests.GetFieldDisplayTests.test_get_FIELD_display_translated) +A translated display value is coerced to str. ... ok +test_iterator_choices (model_fields.tests.GetFieldDisplayTests.test_iterator_choices) +get_choices() works with Iterators. ... ok +test_overriding_FIELD_display (model_fields.tests.GetFieldDisplayTests.test_overriding_FIELD_display) ... ok +test_overriding_inherited_FIELD_display (model_fields.tests.GetFieldDisplayTests.test_overriding_inherited_FIELD_display) ... ok + +====================================================================== +ERROR: test_defer (model_fields.test_filefield.FileFieldTests.test_defer) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute result = self._query(query, infile_stream=infile_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read first_packet = self.connection._read_packet() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -singlestoredb.exceptions.OperationalError: 1982: Function 'test_procedure' already exists +singlestoredb.exceptions.OperationalError: 1054: Unknown column 'model_fields_document.id' in 'field list' The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper - return test_func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/tests/backends/test_utils.py", line 114, in test_callproc_with_int_params - self._test_procedure( - File "/home/pmishchenko-ua/github.com/django/tests/backends/test_utils.py", line 98, in _test_procedure - cursor.execute(procedure_sql) + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_filefield.py", line 77, in test_defer + self.assertEqual(Document.objects.defer("myfile")[0].myfile, "something.txt") + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 449, in __getitem__ + qs._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -439,74 +696,90 @@ Traceback (most recent call last): with self.db.wrap_database_errors: File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute - return self.cursor.execute(sql) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute result = self._query(query, infile_stream=infile_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read first_packet = self.connection._read_packet() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -django.db.utils.OperationalError: (1982, "Function 'test_procedure' already exists", None) +django.db.utils.OperationalError: (1054, "Unknown column 'model_fields_document.id' in 'field list'", None) ====================================================================== -ERROR: test_callproc_without_params (backends.test_utils.CursorWrapperTests.test_callproc_without_params) +ERROR: test_pickle (model_fields.test_filefield.FileFieldTests.test_pickle) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute - return self.cursor.execute(sql) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute result = self._query(query, infile_stream=infile_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read first_packet = self.connection._read_packet() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -singlestoredb.exceptions.OperationalError: 1982: Function 'test_procedure' already exists +singlestoredb.exceptions.OperationalError: 1054: Unknown column 'model_fields_document.id' in 'where clause' The above exception was the direct cause of the following exception: Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper - return test_func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/tests/backends/test_utils.py", line 108, in test_callproc_without_params - self._test_procedure( - File "/home/pmishchenko-ua/github.com/django/tests/backends/test_utils.py", line 98, in _test_procedure - cursor.execute(procedure_sql) + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_filefield.py", line 172, in test_pickle + document.myfile.delete() + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/files.py", line 119, in delete + self.instance.save() + File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 814, in save + self.save_base( + File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 877, in save_base + updated = self._save_table( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 990, in _save_table + updated = self._do_update( + ^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 1054, in _do_update + return filtered._update(values) > 0 + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1231, in _update + return query.get_compiler(self.db).execute_sql(CURSOR) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1984, in execute_sql + cursor = super().execute_sql(result_type) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -517,94 +790,7846 @@ Traceback (most recent call last): with self.db.wrap_database_errors: File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ raise dj_exc_value.with_traceback(traceback) from exc_value - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 87, in _execute - return self.cursor.execute(sql) - ^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute return self.cursor.execute(query, args) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute result = self._query(query, infile_stream=infile_stream) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query self._affected_rows = self._read_query_result(unbuffered=unbuffered) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read first_packet = self.connection._read_packet() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception raise errorclass(errno, errval) -django.db.utils.OperationalError: (1982, "Function 'test_procedure' already exists", None) +django.db.utils.OperationalError: (1054, "Unknown column 'model_fields_document.id' in 'where clause'", None) ====================================================================== -ERROR: test_cursor_executemany_with_iterator (backends.tests.BackendTestCase.test_cursor_executemany_with_iterator) +ERROR: test_refresh_from_db (model_fields.test_filefield.FileFieldTests.test_refresh_from_db) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 343, in test_cursor_executemany_with_iterator - self.create_squares_with_executemany(args) - File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 302, in create_squares_with_executemany - self.create_squares(args, "format", True) - File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 321, in create_squares - cursor.executemany(query, args) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 72, in executemany + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.OperationalError: 1054: Unknown column 'model_fields_document.id' in 'field list' + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_filefield.py", line 63, in test_refresh_from_db + d.refresh_from_db() + File "/home/pmishchenko-ua/github.com/django/django/db/models/base.py", line 724, in refresh_from_db + db_instance = db_instance_qs.get() + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 94, in _executemany - return self.cursor.executemany(sql, param_list) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 73, in executemany - return self.cursor.executemany(query, args) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.OperationalError: (1054, "Unknown column 'model_fields_document.id' in 'field list'", None) + +====================================================================== +ERROR: test_deep_lookup_array (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_array) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 811, in test_deep_lookup_array + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 242, in executemany - if args is None or len(args) == 0: - ^^^^^^^^^ -TypeError: object of type 'generator' has no len() + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) ====================================================================== -ERROR: test_cursor_executemany_with_pyformat_iterator (backends.tests.BackendTestCase.test_cursor_executemany_with_pyformat_iterator) +ERROR: test_deep_lookup_mixed (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_mixed) ---------------------------------------------------------------------- Traceback (most recent call last): - File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper - return test_func(*args, **kwargs) - ^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 378, in test_cursor_executemany_with_pyformat_iterator - self.create_squares(args, "pyformat", multiple=True) - File "/home/pmishchenko-ua/github.com/django/tests/backends/tests.py", line 321, in create_squares - cursor.executemany(query, args) - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 106, in executemany - return super().executemany(sql, param_list) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 817, in test_deep_lookup_mixed + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 72, in executemany + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_deep_lookup_objs (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_objs) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 799, in test_deep_lookup_objs + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute return self._execute_with_wrappers( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers return executor(sql, params, many, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 94, in _executemany - return self.cursor.executemany(sql, param_list) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/django_singlestore/base.py", line 73, in executemany - return self.cursor.executemany(query, args) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_deep_lookup_transform (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_transform) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 823, in test_deep_lookup_transform + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 242, in executemany - if args is None or len(args) == 0: - ^^^^^^^^^ -TypeError: object of type 'generator' has no len() + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_deep_values (model_fields.test_jsonfield.TestQuerying.test_deep_values) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 721, in test_deep_values + self.assertSequenceEqual(qs, expected_objs) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 246, in __iter__ + return compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_expression_wrapper_key_transform (model_fields.test_jsonfield.TestQuerying.test_expression_wrapper_key_transform) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 557, in test_expression_wrapper_key_transform + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_has_any_keys (model_fields.test_jsonfield.TestQuerying.test_has_any_keys) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 632, in test_has_any_keys + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key (model_fields.test_jsonfield.TestQuerying.test_has_key) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 568, in test_has_key + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_deep (model_fields.test_jsonfield.TestQuerying.test_has_key_deep) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 605, in test_has_key_deep + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 620, in test_has_key_list + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 620, in test_has_key_list + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 620, in test_has_key_list + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_list (model_fields.test_jsonfield.TestQuerying.test_has_key_list) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 620, in test_has_key_list + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_null_value (model_fields.test_jsonfield.TestQuerying.test_has_key_null_value) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 574, in test_has_key_null_value + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_key_number (model_fields.test_jsonfield.TestQuerying.test_has_key_number) (condition=) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 659, in test_has_key_number + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_has_keys (model_fields.test_jsonfield.TestQuerying.test_has_keys) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 626, in test_has_keys + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1056, in assertSequenceEqual + difflib.ndiff(pprint.pformat(seq1).splitlines(), + ^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 62, in pformat + underscore_numbers=underscore_numbers).pformat(object) + ^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 161, in pformat + self._format(object, sio, 0, 0, {}, 0) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 178, in _format + rep = self._repr(object, context, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 458, in _repr + repr, readable, recursive = self.format(object, context.copy(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 471, in format + return self._safe_repr(object, context, maxlevels, level) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/pprint.py", line 632, in _safe_repr + rep = repr(object) + ^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 374, in __repr__ + data = list(self[: REPR_OUTPUT_SIZE + 1]) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_isnull_key (model_fields.test_jsonfield.TestQuerying.test_isnull_key) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 732, in test_isnull_key + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_isnull_key_or_none (model_fields.test_jsonfield.TestQuerying.test_isnull_key_or_none) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 751, in test_isnull_key_or_none + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_join_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_join_key_transform_annotation_expression) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1119, in test_join_key_transform_annotation_expression + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_endswith (model_fields.test_jsonfield.TestQuerying.test_key_endswith) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 997, in test_key_endswith + NullableJSONModel.objects.filter(value__foo__endswith="r").exists(), True + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_escape (model_fields.test_jsonfield.TestQuerying.test_key_escape) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1052, in test_key_escape + NullableJSONModel.objects.filter(**{"value__%total": 10}).get(), obj + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_icontains (model_fields.test_jsonfield.TestQuerying.test_key_icontains) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 982, in test_key_icontains + NullableJSONModel.objects.filter(value__foo__icontains="Ar").exists(), True + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_iendswith (model_fields.test_jsonfield.TestQuerying.test_key_iendswith) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1002, in test_key_iendswith + NullableJSONModel.objects.filter(value__foo__iendswith="R").exists(), True + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_iexact (model_fields.test_jsonfield.TestQuerying.test_key_iexact) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 904, in test_key_iexact + NullableJSONModel.objects.filter(value__foo__iexact="BaR").exists(), True + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__c__in', value=[14]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__c__in', value=[14, 15]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__0__in', value=[1]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__0__in', value=[1, 3]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=['bar']) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[KeyTransform(KeyTransform(F(value)))]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[F(value__bax__foo)]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[KeyTransform(KeyTransform(F(value))), 'baz']) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=[F(value__bax__foo), 'baz']) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__foo__in', value=['bar', 'baz']) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bar__in', value=[['foo', 'bar']]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bar__in', value=[['foo', 'bar'], ['a']]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__bax__in', value=[{'foo': 'bar'}, {'a': 'b'}]) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__h__in', value=[True, 'foo']) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_in (model_fields.test_jsonfield.TestQuerying.test_key_in) (lookup='value__i__in', value=[False, 'foo']) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 938, in test_key_in + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_iregex (model_fields.test_jsonfield.TestQuerying.test_key_iregex) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1012, in test_key_iregex + NullableJSONModel.objects.filter(value__foo__iregex=r"^bAr$").exists(), True + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_istartswith (model_fields.test_jsonfield.TestQuerying.test_key_istartswith) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 992, in test_key_istartswith + NullableJSONModel.objects.filter(value__foo__istartswith="B").exists(), True + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_quoted_string (model_fields.test_jsonfield.TestQuerying.test_key_quoted_string) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1017, in test_key_quoted_string + NullableJSONModel.objects.filter(value__o='"quoted"').get(), + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_regex (model_fields.test_jsonfield.TestQuerying.test_key_regex) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1007, in test_key_regex + NullableJSONModel.objects.filter(value__foo__regex=r"^bar$").exists(), True + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_startswith (model_fields.test_jsonfield.TestQuerying.test_key_startswith) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 987, in test_key_startswith + NullableJSONModel.objects.filter(value__foo__startswith="b").exists(), True + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_text_transform_char_lookup (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_char_lookup) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 549, in test_key_text_transform_char_lookup + self.assertSequenceEqual(qs, [self.objs[7]]) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_text_transform_from_lookup (model_fields.test_jsonfield.TestQuerying.test_key_text_transform_from_lookup) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1133, in test_key_text_transform_from_lookup + self.assertSequenceEqual(qs, [self.objs[7]]) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_annotation_expression) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 491, in test_key_transform_annotation_expression + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_transform_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_expression) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 478, in test_key_transform_expression + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_transform_raw_expression (model_fields.test_jsonfield.TestQuerying.test_key_transform_raw_expression) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 463, in test_key_transform_raw_expression + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__a') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__c') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__d') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__h') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__i') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__j') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__k') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__n') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__p') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values (model_fields.test_jsonfield.TestQuerying.test_key_values) (lookup='value__r') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 959, in test_key_values + self.assertEqual(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) (lookup='value__h') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 969, in test_key_values_boolean + self.assertIs(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_key_values_boolean (model_fields.test_jsonfield.TestQuerying.test_key_values_boolean) (lookup='value__i') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 969, in test_key_values_boolean + self.assertIs(qs.values_list(lookup, flat=True).get(), expected) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 633, in get + num = len(clone) + ^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 285, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_lookup_exclude (model_fields.test_jsonfield.TestQuerying.test_lookup_exclude) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 839, in test_lookup_exclude + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_lookup_exclude_nonexistent_key (model_fields.test_jsonfield.TestQuerying.test_lookup_exclude_nonexistent_key) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 853, in test_lookup_exclude_nonexistent_key + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_key') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1073, in test_lookups_with_key_transform + ).exists(), + ^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_keys') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1073, in test_lookups_with_key_transform + ).exists(), + ^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__baz__has_any_keys') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1073, in test_lookups_with_key_transform + ).exists(), + ^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_lookups_with_key_transform (model_fields.test_jsonfield.TestQuerying.test_lookups_with_key_transform) (lookup='value__has_key') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1073, in test_lookups_with_key_transform + ).exists(), + ^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1241, in exists + return self.query.has_results(using=self.db) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/query.py", line 598, in has_results + return compiler.has_results() + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1530, in has_results + return bool(self.execute_sql(SINGLE)) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1549, in execute_sql + sql, params = self.as_sql() + ^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 764, in as_sql + self.compile(self.where) if self.where is not None else ("", []) + ^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/where.py", line 145, in as_sql + sql, params = compiler.compile(child) + ^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 546, in compile + sql, params = node.as_sql(self, self.connection) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/fields/json.py", line 229, in as_sql + sql = template % lhs + ~~~~~~~~~^~~~~ +TypeError: unsupported operand type(s) for %: 'NoneType' and 'str' + +====================================================================== +ERROR: test_nested_key_transform_annotation_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_annotation_expression) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 520, in test_nested_key_transform_annotation_expression + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_nested_key_transform_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_expression) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 503, in test_nested_key_transform_expression + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_nested_key_transform_on_subquery (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_on_subquery) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 532, in test_nested_key_transform_on_subquery + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_nested_key_transform_raw_expression (model_fields.test_jsonfield.TestQuerying.test_nested_key_transform_raw_expression) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 470, in test_nested_key_transform_raw_expression + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_none_key (model_fields.test_jsonfield.TestQuerying.test_none_key) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 759, in test_none_key + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_none_key_and_exact_lookup (model_fields.test_jsonfield.TestQuerying.test_none_key_and_exact_lookup) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1056, in test_none_key_and_exact_lookup + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_none_key_exclude (model_fields.test_jsonfield.TestQuerying.test_none_key_exclude) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 774, in test_none_key_exclude + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_obj_subquery_lookup (model_fields.test_jsonfield.TestQuerying.test_obj_subquery_lookup) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 796, in test_obj_subquery_lookup + self.assertCountEqual(qs, [self.objs[3], self.objs[4]]) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_order_grouping_custom_decoder (model_fields.test_jsonfield.TestQuerying.test_order_grouping_custom_decoder) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 450, in test_order_grouping_custom_decoder + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 208, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) (field='value') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 413, in test_ordering_by_transform + self.assertSequenceEqual(query, expected) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_ordering_by_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_by_transform) (field='value_custom') +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 413, in test_ordering_by_transform + self.assertSequenceEqual(query, expected) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_ordering_grouping_by_count (model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_count) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 445, in test_ordering_grouping_by_count + self.assertQuerySetEqual(qs, [0, 1], operator.itemgetter("count")) + File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1336, in assertQuerySetEqual + items = map(transform, items) + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 208, in __iter__ + for row in compiler.results_iter( + ^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1513, in results_iter + results = self.execute_sql( + ^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_ordering_grouping_by_key_transform (model_fields.test_jsonfield.TestQuerying.test_ordering_grouping_by_key_transform) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 423, in test_ordering_grouping_by_key_transform + self.assertSequenceEqual(qs, [self.objs[4]]) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_shallow_list_lookup (model_fields.test_jsonfield.TestQuerying.test_shallow_list_lookup) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 779, in test_shallow_list_lookup + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_shallow_lookup_obj_target (model_fields.test_jsonfield.TestQuerying.test_shallow_lookup_obj_target) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 805, in test_shallow_lookup_obj_target + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_shallow_obj_lookup (model_fields.test_jsonfield.TestQuerying.test_shallow_obj_lookup) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 785, in test_shallow_obj_lookup + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_usage_in_subquery (model_fields.test_jsonfield.TestQuerying.test_usage_in_subquery) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 880, in test_usage_in_subquery + self.assertCountEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 1215, in assertCountEqual + first_seq, second_seq = list(first), list(second) + ^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 398, in __iter__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(' at line 1", None) + +====================================================================== +ERROR: test_filter_with_expr (model_fields.test_uuid.TestQuerying.test_filter_with_expr) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +singlestoredb.exceptions.ProgrammingError: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REPEAT('0', 4) AS `value` FROM `model_fields_nullableuuidmodel` WHERE `model_fie' at line 1 + +The above exception was the direct cause of the following exception: + +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_uuid.py", line 228, in test_filter_with_expr + self.assertSequenceEqual( + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/lib/python3.11/unittest/case.py", line 991, in assertSequenceEqual + len1 = len(seq1) + ^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 380, in __len__ + self._fetch_all() + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 1881, in _fetch_all + self._result_cache = list(self._iterable_class(self)) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/query.py", line 91, in __iter__ + results = compiler.execute_sql( + ^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/models/sql/compiler.py", line 1562, in execute_sql + cursor.execute(sql, params) + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 67, in execute + return self._execute_with_wrappers( + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 80, in _execute_with_wrappers + return executor(sql, params, many, context) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 84, in _execute + with self.db.wrap_database_errors: + File "/home/pmishchenko-ua/github.com/django/django/db/utils.py", line 91, in __exit__ + raise dj_exc_value.with_traceback(traceback) from exc_value + File "/home/pmishchenko-ua/github.com/django/django/db/backends/utils.py", line 89, in _execute + return self.cursor.execute(sql, params) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute + return self.cursor.execute(query, args) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute + result = self._query(query, infile_stream=infile_stream) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query + conn.query(q, infile_stream=infile_stream) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query + self._affected_rows = self._read_query_result(unbuffered=unbuffered) + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result + result.read() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read + first_packet = self.connection._read_packet() + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet + packet.raise_for_error() + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error + err.raise_mysql_exception(self._data) + File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/err.py", line 92, in raise_mysql_exception + raise errorclass(errno, errval) +django.db.utils.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REPEAT('0', 4) AS `value` FROM `model_fields_nullableuuidmodel` WHERE `model_fie' at line 1", None) + +====================================================================== +FAIL: test_exact_complex (model_fields.test_jsonfield.TestQuerying.test_exact_complex) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 374, in test_exact_complex + self.assertSequenceEqual( +AssertionError: Sequences differ: != [] + +Second sequence contains 1 additional elements. +First extra element 0: + + +- ++ [] + +====================================================================== +FAIL: test_icontains (model_fields.test_jsonfield.TestQuerying.test_icontains) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 380, in test_icontains + self.assertCountEqual( +AssertionError: Element counts were not equal: +First has 0, Second has 1: +First has 0, Second has 1: + +====================================================================== +FAIL: test_key_sql_injection_escape (model_fields.test_jsonfield.TestQuerying.test_key_sql_injection_escape) +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/home/pmishchenko-ua/github.com/django/django/test/testcases.py", line 1602, in skip_wrapper + return test_func(*args, **kwargs) + ^^^^^^^^^^^^^^^^^^^^^^^^^^ + File "/home/pmishchenko-ua/github.com/django/tests/model_fields/test_jsonfield.py", line 1046, in test_key_sql_injection_escape + self.assertIn('"test\\"', query) +AssertionError: '"test\\"' not found in 'SELECT `model_fields_jsonmodel`.`id`, `model_fields_jsonmodel`.`value` FROM `model_fields_jsonmodel` WHERE None(`model_fields_jsonmodel`.`value`) = "x"' ---------------------------------------------------------------------- -Ran 294 tests in 4.602s +Ran 438 tests in 46.073s -FAILED (errors=4, skipped=133) +FAILED (failures=3, errors=103, skipped=10) Preserving test database for alias 'default' ('test_django_db')... -Preserving test database for alias 'other' ('test_django_db_other')... From 9dfefe82ee4e0b2097af01bba51574dfb576e457 Mon Sep 17 00:00:00 2001 From: Pavlo Mishchenko Date: Wed, 21 May 2025 17:35:59 +0300 Subject: [PATCH 5/5] cleanup --- tests/_utils/setup.sql | 1 + tests/backends/models.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/_utils/setup.sql b/tests/_utils/setup.sql index 952f61785aa2..94c797335d7f 100644 --- a/tests/_utils/setup.sql +++ b/tests/_utils/setup.sql @@ -570,6 +570,7 @@ CREATE TABLE `bulk_create_relatedmodel_bigautofieldmodel` ( UNIQUE KEY (`relatedmodel_id`, `bigautofieldmodel_id`), KEY (`relatedmodel_id`), KEY (`bigautofieldmodel_id`) +); -- backends CREATE TABLE `backends_verylongmodelnamezzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz_person` ( diff --git a/tests/backends/models.py b/tests/backends/models.py index 1f0b81913129..4aa88da9a768 100644 --- a/tests/backends/models.py +++ b/tests/backends/models.py @@ -40,7 +40,8 @@ class VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ(models.Model): max_length=100 ) m2m_also_quite_long_zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz = ( - models.ManyToManyField("Person", blank=True, through="VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZPerson") + models.ManyToManyField(Person, blank=True, + through="VeryLongModelNameZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZPerson") ) @@ -113,7 +114,7 @@ def __str__(self): class Object(models.Model): related_objects = models.ManyToManyField( - "Object", symmetrical=False, through="ObjectFriend" + "self", symmetrical=False, through="ObjectFriend" ) obj_ref = models.ForeignKey("ObjectReference", models.CASCADE, null=True)