From 65edeed148709359a6e05ac25911530f50877133 Mon Sep 17 00:00:00 2001 From: Pavlo Mishchenko Date: Mon, 7 Jul 2025 13:10:46 +0300 Subject: [PATCH] Cleanup temp test files --- test_results.txt | 8635 ------------------------ tests/_utils/local_test.sh | 42 - tests/_utils/model_transformer.py | 81 - tests/_utils/run_all_tests.sh | 37 - tests/_utils/run_tests_parallel.py | 80 - tests/_utils/setup.sql | 612 -- tests/_utils/singlestore_settings_TMPL | 28 - tests/singlestore_settings.py | 29 - 8 files changed, 9544 deletions(-) delete mode 100644 test_results.txt delete mode 100755 tests/_utils/local_test.sh delete mode 100644 tests/_utils/model_transformer.py delete mode 100644 tests/_utils/run_all_tests.sh delete mode 100644 tests/_utils/run_tests_parallel.py delete mode 100644 tests/_utils/setup.sql delete mode 100644 tests/_utils/singlestore_settings_TMPL delete mode 100644 tests/singlestore_settings.py diff --git a/test_results.txt b/test_results.txt deleted file mode 100644 index 281909ef54a0..000000000000 --- a/test_results.txt +++ /dev/null @@ -1,8635 +0,0 @@ -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. -Using existing test database for alias 'default' ('test_django_db')... -Operations to perform: - 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 model_fields -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 model_fields -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 - -====================================================================== -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/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.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 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( - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - 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 '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) - -====================================================================== -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/django/db/backends/utils.py", line 89, in _execute - return self.cursor.execute(sql, params) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/django_singlestore/base.py", line 63, in execute - return self.cursor.execute(query, args) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 218, in execute - result = self._query(query, infile_stream=infile_stream) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/cursors.py", line 403, in _query - conn.query(q, infile_stream=infile_stream) - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 918, in query - self._affected_rows = self._read_query_result(unbuffered=unbuffered) - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1295, in _read_query_result - result.read() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1706, in read - first_packet = self.connection._read_packet() - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/connection.py", line 1249, in _read_packet - packet.raise_for_error() - File "/home/pmishchenko-ua/.pyenv/versions/3.11.9/envs/django-test/lib/python3.11/site-packages/singlestoredb/mysql/protocol.py", line 237, in raise_for_error - err.raise_mysql_exception(self._data) - File "/home/pmishchenko-ua/.pyenv/versions/3.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 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/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_mixed (model_fields.test_jsonfield.TestQuerying.test_deep_lookup_mixed) ----------------------------------------------------------------------- -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 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 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 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/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 438 tests in 46.073s - -FAILED (failures=3, errors=103, skipped=10) -Preserving test database for alias 'default' ('test_django_db')... diff --git a/tests/_utils/local_test.sh b/tests/_utils/local_test.sh deleted file mode 100755 index fd8da6374c41..000000000000 --- a/tests/_utils/local_test.sh +++ /dev/null @@ -1,42 +0,0 @@ -export DJANGO_HOME=`pwd` - -export PYTHONPATH=$DJANGO_HOME:$DJANGO_HOME/tests:$DJANGO_HOME/tests/singlestore_settings:$PYTHONPATH - -# these are the default django apps, we use ROWSTORE REFERENCE tables for them -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_ADMIN="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_AUTH="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_CONTENTTYPES="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_SITES="ROWSTORE REFERENCE" - -# 12 many-to-many fields, just use reference tables to save time -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_PREFETCH_RELATED="ROWSTORE REFERENCE" - -# a lot of many-to-many fields to self -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_M2M_RECURSIVE="ROWSTORE REFERENCE" - -# lot of many to many fields -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_ADMIN_VIEWS="ROWSTORE REFERENCE" - -# lot of unique keys and many to many fields -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_FOREIGN_OBJECT="ROWSTORE REFERENCE" - -# lot of unique keys -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_AUTH_TESTS="ROWSTORE REFERENCE" - -# abstract models - specifying through is tricky -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_MANY_TO_MANY="ROWSTORE REFERENCE" - -# a number of models with unique keys, 13 many-to-many fields -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_FIXTURES_REGRESS="ROWSTORE REFERENCE" - -# a model with 3 many-to-many fields caused issues -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_DELETE="ROWSTORE REFERENCE" - - -# queries app has a lot of models with OneToOne relationships -export DJANGO_SINGLESTORE_NOT_ENFORCED_UNIQUE_QUERIES=1 - - -# specify the path to the test to run -MODULE_TO_TEST="" -./tests/runtests.py --settings=singlestore_settings --noinput -v 3 $MODULE_TO_TEST --keepdb diff --git a/tests/_utils/model_transformer.py b/tests/_utils/model_transformer.py deleted file mode 100644 index 355da3defafe..000000000000 --- a/tests/_utils/model_transformer.py +++ /dev/null @@ -1,81 +0,0 @@ -import re - - -def generate_intermediary_code(original_code): - # Extract class name and many-to-many field definition - class_match = re.search(r'class (\w+)\((?:models\.Model|[\w\.]+)\):', original_code) - m2m_match = re.search(r'(\w+)\s*=\s*models\.ManyToManyField\(\s*"?(self|\w+)"?\s*(.*)\)', original_code) - - if not class_match or not m2m_match: - return "Invalid original code format" - - class_name = class_match.group(1) - field_name = m2m_match.group(1) - related_model = m2m_match.group(2) - additional_args = m2m_match.group(3).strip() - - # Handle self-referencing models - if related_model == "self": - related_model = class_name - intermediary_model_name = f"{class_name}Friend" - from_field_name = f"from_{class_name.lower()}" - to_field_name = f"to_{class_name.lower()}" - else: - intermediary_model_name = f"{class_name}{related_model}" - from_field_name = class_name.lower() - to_field_name = related_model.lower() - - # Properly format the new code with a ManyToManyField that uses through - additional_args_str = f", {additional_args}" if additional_args else "" - through_str = f'through="{intermediary_model_name}"' - new_code = re.sub( - r'(\s*' + field_name + r'\s*=\s*models\.ManyToManyField\([^\)]*\))', - rf'\n {field_name} = models.ManyToManyField("{related_model}"{additional_args_str}, {through_str})', - original_code - ).replace(",,", ",") # This will clean up any double commas - - intermediary_code = f""" - -class {intermediary_model_name}(models.Model): - {from_field_name} = models.ForeignKey({class_name}, on_delete=models.CASCADE) - {to_field_name} = models.ForeignKey({related_model}, on_delete=models.CASCADE) - - class Meta: - unique_together = (('{from_field_name}', '{to_field_name}'),) - db_table = "{class_name.lower()}_{related_model.lower()}" -""" - - # Generate the SQL query for creating the intermediary table - sql_query = f""" -CREATE TABLE `{class_name.lower()}_{related_model.lower()}` ( - `{from_field_name}_id` BIGINT NOT NULL, - `{to_field_name}_id` BIGINT NOT NULL, - SHARD KEY (`{from_field_name}_id`), - UNIQUE KEY (`{from_field_name}_id`, `{to_field_name}_id`), - KEY (`{from_field_name}_id`), - KEY (`{to_field_name}_id`) -); -""" - - return new_code + intermediary_code + "\nSQL Query:\n" + sql_query - - -# Example usage -original_code = """ -class Article(models.Model): - headline = models.CharField(max_length=100) - # Assign a string as name to make sure the intermediary model is - # correctly created. Refs #20207 - authors = models.ManyToManyField("User", through="UserArticle") - - objects = NoDeletedArticleManager() - - class Meta: - ordering = ("headline",) - - def __str__(self): - return self.headline -""" - -new_code = generate_intermediary_code(original_code) -print(new_code) diff --git a/tests/_utils/run_all_tests.sh b/tests/_utils/run_all_tests.sh deleted file mode 100644 index 926368893e25..000000000000 --- a/tests/_utils/run_all_tests.sh +++ /dev/null @@ -1,37 +0,0 @@ -# NOTE: this script is outdated, so it needs to updated before running -export DJANGO_HOME=`pwd` - -export PYTHONPATH=$DJANGO_HOME:$DJANGO_HOME/tests:$DJANGO_HOME/tests/singlestore_settings:$PYTHONPATH - -# uncomment this to run tests without unique constraints on the data base level -# export NOT_ENFORCED_UNIQUE=1 - -# these are default django apps, we use ROWSTORE REFERENCE tabkes for them -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_ADMIN="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_AUTH="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_CONTENTTYPES="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_SITES="ROWSTORE REFERENCE" - -# the block below is here to quickly run all tests; eventually it should be removed -# and replaced with a more fine-grained approach -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_ADMIN_INLINES="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_AUTH_TESTS="REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_INTROSPECTION="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_VALIDATION="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_CONSTRAINTS="ROWSTORE REFERENCE" -export DJANGO_SINGLESTORE_TABLE_STORAGE_TYPE_BULK_CREATE="ROWSTORE REFERENCE" - -# 12 many-to-many fields, just use reference tables to save time -export TABLE_STORAGE_TYPE_PREFETCH_RELATED="ROWSTORE REFERENCE" - -# abstract models - specifying through is tricky -export TABLE_STORAGE_TYPE_MANY_TO_MANY="ROWSTORE REFERENCE" - -prepare_settings() { - for dir in $(find tests -maxdepth 1 -type d | awk -F '/' '{print $2}'); do - # echo $dir - sed -e "s|TEST_MODULE|$dir|g" tests/singlestore_settings_TMPL > tests/singlestore_settings/singlestore_settings_$dir.py - done -} -prepare_settings -python run_tests_parallel.py diff --git a/tests/_utils/run_tests_parallel.py b/tests/_utils/run_tests_parallel.py deleted file mode 100644 index 9707913d6046..000000000000 --- a/tests/_utils/run_tests_parallel.py +++ /dev/null @@ -1,80 +0,0 @@ -import os -import subprocess -from multiprocessing import Pool - - -TEST_MODULES = [d for d in os.listdir("tests") if os.path.isdir(os.path.join("tests", d))] -TEST_MODULES = [t for t in TEST_MODULES if t != "requirements" and t != "__pycache__"] -MAX_NUM_TEST_MODULES = 80 -DEFAULT_OUT_FILE = "django_test_results/results.txt" -DEFAULT_SETTINGS = "singlestore_settings" - - -def run_single_test(module_name, out_file=None, settings=None): - print(f"Running tests for {module_name}") - if out_file is None: - out_file = f"django_test_results/{module_name}.txt" - if settings is None: - settings = f"singlestore_settings_{module_name}" - cmd = f"./tests/runtests.py --settings={settings} --noinput -v 3 {module_name} >> {out_file} 2>&1" - result = subprocess.run(cmd, shell=True, text=True, capture_output=True) - print(result.returncode) - return result - - -def run_all_tests(): - - with Pool(6) as workers: - results = workers.map(run_single_test, TEST_MODULES) - print(results) - - -def run_chunked_tests(): - current_tests = [] - for t in TEST_MODULES: - current_tests.append(t) - if len(current_tests) >= MAX_NUM_TEST_MODULES: - module_name = " ".join(current_tests) - run_single_test(module_name, DEFAULT_OUT_FILE, DEFAULT_SETTINGS) - current_tests = [] - - if len(current_tests) > 0: - run_single_test(module_name, DEFAULT_OUT_FILE, DEFAULT_SETTINGS) - - -def analyze_results(): - ok_list = [] - fail_list = [] - total_tests = 0 - for f_name in os.listdir("django_test_results"): - ok = False - with open(os.path.join("django_test_results", f_name), "r") as f: - all_lines = list(f.readlines()) - for ln in all_lines: - if " tests in " in ln: - tokens = ln.strip().split(" ") - total_tests += int(tokens[1]) - lines = [line.strip() for line in all_lines[-3:]] - lines = [line for line in lines if len(line)] - - for ln in lines: - if "OK" in ln: - ok_list.append((f_name, lines)) - ok = True - break - if not ok: - result = None - for ln in lines: - if "FAILED" in ln: - result = ln - fail_list.append((f_name, result)) - - for elem in fail_list: - print(elem) - print(f"Total tests {total_tests}") - - -if __name__ == "__main__": - analyze_results() - # run_all_tests() - # run_chunked_tests() diff --git a/tests/_utils/setup.sql b/tests/_utils/setup.sql deleted file mode 100644 index 2d9f50a0bfbb..000000000000 --- a/tests/_utils/setup.sql +++ /dev/null @@ -1,612 +0,0 @@ --- get_or_create -CREATE TABLE `get_or_create_thing_tag` ( - `thing_id` BIGINT NOT NULL, - `tag_id` BIGINT NOT NULL, - SHARD KEY (`thing_id`), - UNIQUE KEY (`thing_id`, `tag_id`), - KEY (`thing_id`), - KEY (`tag_id`) -); - - -CREATE TABLE `get_or_create_book_author` ( - `book_id` BIGINT NOT NULL, - `author_id` BIGINT NOT NULL, - SHARD KEY (`book_id`), - UNIQUE KEY (`book_id`, `author_id`), - KEY (`book_id`), - KEY (`author_id`) -); - --- aggregation -CREATE TABLE `aggregation_book_author` ( - `book_id` BIGINT NOT NULL, - `author_id` BIGINT NOT NULL, - SHARD KEY (`book_id`), - UNIQUE KEY (`book_id`,`author_id`), - KEY (`book_id`), - KEY (`author_id`) -); - - -CREATE TABLE `aggregation_author_friend` ( - `from_author_id` BIGINT NOT NULL, - `to_author_id` BIGINT NOT NULL, - SHARD KEY (`from_author_id`), - UNIQUE KEY (`from_author_id`,`to_author_id`), - KEY (`from_author_id`), - KEY (`to_author_id`) -); - - -CREATE TABLE `aggregation_store_book` ( - `store_id` BIGINT NOT NULL, - `book_id` BIGINT NOT NULL, - SHARD KEY (`store_id`), - UNIQUE KEY (`store_id`,`book_id`), - KEY (`store_id`), - KEY (`book_id`) -); - - --- lookup -CREATE TABLE `lookup_tag_article` ( - `tag_id` BIGINT NOT NULL, - `article_id` BIGINT NOT NULL, - SHARD KEY (`tag_id`), - UNIQUE KEY (`tag_id`, `article_id`), - KEY (`tag_id`), - KEY(`article_id`) -); - - -CREATE TABLE `lookup_player_game` ( - `player_id` BIGINT NOT NULL, - `game_id` BIGINT NOT NULL, - SHARD KEY (`player_id`), - UNIQUE KEY (`player_id`, `game_id`), - KEY (`player_id`), - KEY(`game_id`) -); - - --- raw_query -CREATE TABLE `raw_query_reviewer_book` ( - `reviewer_id` BIGINT NOT NULL, - `book_id` BIGINT NOT NULL, - SHARD KEY (`reviewer_id`), - UNIQUE KEY(`reviewer_id`, `book_id`), - KEY (`reviewer_id`), - KEY(`book_id`) -); - --- queries -CREATE TABLE `queries_annotation_note` ( - `annotation_id` BIGINT NOT NULL, - `note_id` BIGINT NOT NULL, - SHARD KEY (`annotation_id`), - UNIQUE KEY (`annotation_id`, `note_id`), - KEY (`annotation_id`), - KEY (`note_id`) -); - - -CREATE TABLE `queries_item_tag` ( - `item_id` BIGINT NOT NULL, - `tag_id` BIGINT NOT NULL, - SHARD KEY (`item_id`), - UNIQUE KEY (`item_id`, `tag_id`), - KEY (`item_id`), - KEY (`tag_id`) -); - -CREATE TABLE `queries_valid_parent` ( - `from_valid` BIGINT NOT NULL, - `to_valid` BIGINT NOT NULL, - SHARD KEY (`from_valid`), - UNIQUE KEY (`from_valid`, `to_valid`), - KEY (`from_valid`), - KEY (`to_valid`) -); - -CREATE TABLE `queries_custompktag_custompk` ( - `custompktag_id` VARCHAR(20), - `custompk_id` VARCHAR(10), - SHARD KEY (`custompktag_id`), - UNIQUE KEY (`custompktag_id`, `custompk_id`), - KEY (`custompktag_id`), - KEY (`custompk_id`) -); - -CREATE TABLE `queries_job_responsibility` ( - `job_id` VARCHAR(20), - `responsibility_id` VARCHAR(20), - SHARD KEY (`job_id`), - UNIQUE KEY (`job_id`, `responsibility_id`), - KEY (`job_id`), - KEY (`responsibility_id`) -); - -CREATE TABLE `queries_channel_program` ( - `channel_id` BIGINT NOT NULL, - `program_id` BIGINT NOT NULL, - SHARD KEY (`channel_id`), - UNIQUE KEY (`channel_id`, `program_id`), - KEY (`channel_id`), - KEY (`program_id`) -); - - -CREATE TABLE `queries_paragraph_page` ( - `paragraph_id` BIGINT NOT NULL, - `page_id` BIGINT NOT NULL, - SHARD KEY (`paragraph_id`), - UNIQUE KEY (`paragraph_id`, `page_id`), - KEY (`paragraph_id`), - KEY (`page_id`) -); - -CREATE TABLE `queries_company_person` ( - `company_id` BIGINT NOT NULL, - `person_id` BIGINT NOT NULL, - SHARD KEY (`company_id`), - UNIQUE KEY (`company_id`, `person_id`), - KEY (`company_id`), - KEY (`person_id`) -); - -CREATE TABLE `queries_classroom_student` ( - `classroom_id` BIGINT NOT NULL, - `student_id` BIGINT NOT NULL, - SHARD KEY (`classroom_id`), - UNIQUE KEY (`classroom_id`, `student_id`), - KEY (`classroom_id`), - KEY (`student_id`) -); - -CREATE TABLE `queries_teacher_school` ( - `teacher_id` BIGINT NOT NULL, - `school_id` BIGINT NOT NULL, - SHARD KEY (`teacher_id`), - UNIQUE KEY (`teacher_id`, `school_id`), - KEY (`teacher_id`), - KEY (`school_id`) -); - -CREATE TABLE `queries_teacher_friend` ( - `from_teacher_id` BIGINT NOT NULL, - `to_teacher_id` BIGINT NOT NULL, - SHARD KEY (`from_teacher_id`), - UNIQUE KEY (`from_teacher_id`, `to_teacher_id`), - KEY (`from_teacher_id`), - KEY (`to_teacher_id`) -); - - --- model_inheritance -CREATE TABLE `model_inheritance_supplier_restaurant` ( - `supplier_id` BIGINT NOT NULL, - `restaurant_id` BIGINT NOT NULL, - SHARD KEY (`supplier_id`), - UNIQUE KEY (`supplier_id`, `restaurant_id`), - KEY (`supplier_id`), - KEY (`restaurant_id`) -); - -CREATE TABLE `model_inheritance_base_title` ( - `base_id` BIGINT NOT NULL, - `title_id` BIGINT NOT NULL, - SHARD KEY (`base_id`), - UNIQUE KEY (`base_id`, `title_id`), - KEY (`base_id`), - KEY (`title_id`) -); - --- annotations -CREATE TABLE `annotations_author_friend` ( - `from_author_id` BIGINT NOT NULL, - `to_author_id` BIGINT NOT NULL, - SHARD KEY (`from_author_id`), - UNIQUE KEY (`from_author_id`, `to_author_id`), - KEY (`from_author_id`), - KEY (`to_author_id`) -); - -CREATE TABLE `annotations_book_author` ( - `book_id` BIGINT NOT NULL, - `author_id` BIGINT NOT NULL, - SHARD KEY (`book_id`), - UNIQUE KEY (`book_id`, `author_id`), - KEY (`book_id`), - KEY (`author_id`) -); - -CREATE TABLE `annotations_store_book` ( - `store_id` BIGINT NOT NULL, - `book_id` BIGINT NOT NULL, - SHARD KEY (`store_id`), - UNIQUE KEY (`store_id`, `book_id`), - KEY (`store_id`), - KEY (`book_id`) -); - - --- delete_regress -CREATE TABLE `delete_regress_played_with` ( - `child_id` BIGINT NOT NULL, - `toy_id` BIGINT NOT NULL, - `date_col` TIMESTAMP, - SHARD KEY (`child_id`), - UNIQUE KEY (`child_id`, `toy_id`), - KEY (`child_id`), - KEY (`toy_id`) -); - -CREATE TABLE `delete_regress_researcher_contact` ( - `researcher_id` BIGINT NOT NULL, - `contact_id` BIGINT NOT NULL, - SHARD KEY (`researcher_id`), - UNIQUE KEY (`researcher_id`, `contact_id`), - KEY (`researcher_id`), - KEY (`contact_id`) -); - - --- many_to_many -CREATE TABLE `many_to_many_article_publication` ( - `article_id` BIGINT NOT NULL, - `publication_id` BIGINT NOT NULL, - SHARD KEY (`article_id`), - UNIQUE KEY (`article_id`, `publication_id`), - KEY (`article_id`), - KEY (`publication_id`) -); - -CREATE TABLE `many_to_many_article_tag` ( - `article_id` BIGINT NOT NULL, - `tag_id` BIGINT NOT NULL, - SHARD KEY (`article_id`), - UNIQUE KEY (`article_id`, `tag_id`), - KEY (`article_id`), - KEY (`tag_id`) -); - -CREATE TABLE `many_to_many_user_article` ( - `article_id` BIGINT NOT NULL, - `user_id` VARCHAR(20) NOT NULL, - SHARD KEY (`article_id`), - UNIQUE KEY (`article_id`, `user_id`), - KEY (`article_id`), - KEY (`user_id`) -); - - --- model_forms -CREATE TABLE `model_forms_colourfulitem_colour` ( - `colourfulitem_id` BIGINT NOT NULL, - `colour_id` BIGINT NOT NULL, - SHARD KEY (`colourfulitem_id`), - UNIQUE KEY (`colourfulitem_id`, `colour_id`), - KEY (`colourfulitem_id`), - KEY (`colour_id`) -); - -CREATE TABLE `model_forms_stumpjoke_character` ( - `stumpjoke_id` BIGINT NOT NULL, - `character_id` BIGINT NOT NULL, - SHARD KEY (`stumpjoke_id`), - UNIQUE KEY (`stumpjoke_id`, `character_id`), - KEY (`stumpjoke_id`), - KEY (`character_id`) -); - -CREATE TABLE `model_forms_dice_number` ( - `dice_id` BIGINT NOT NULL, - `number_id` BIGINT NOT NULL, - SHARD KEY (`dice_id`), - UNIQUE KEY (`dice_id`, `number_id`), - KEY (`dice_id`), - KEY (`number_id`) -); - -CREATE TABLE `model_forms_article_category` ( - `article_id` BIGINT NOT NULL, - `category_id` BIGINT NOT NULL, - SHARD KEY (`article_id`), - UNIQUE KEY (`article_id`, `category_id`), - KEY (`article_id`), - KEY (`category_id`) -); - --- update -CREATE TABLE `update_bar_m2m_foo` ( - `bar_id` BIGINT NOT NULL, - `foo_id` BIGINT NOT NULL, - SHARD KEY (`bar_id`), - UNIQUE KEY (`bar_id`, `foo_id`), - KEY (`bar_id`), - KEY (`foo_id`) -); - --- model_formsets -CREATE TABLE `model_formsets_authormeeting_author` ( - `authormeeting_id` BIGINT NOT NULL, - `author_id` BIGINT NOT NULL, - SHARD KEY (`authormeeting_id`), - UNIQUE KEY (`authormeeting_id`, `author_id`), - KEY (`authormeeting_id`), - KEY (`author_id`) -); - --- serializers -CREATE TABLE `serializers_article_category` ( - `article_id` BIGINT NOT NULL, - `category_id` BIGINT NOT NULL, - SHARD KEY (`article_id`), - UNIQUE KEY (`article_id`, `category_id`), - KEY (`article_id`), - KEY (`category_id`) -); - -CREATE TABLE `serializers_article_categorymetadata` ( - `article_id` BIGINT NOT NULL, - `categorymetadata_id` BIGINT NOT NULL, - SHARD KEY (`article_id`), - UNIQUE KEY (`article_id`, `categorymetadata_id`), - KEY (`article_id`), - KEY (`categorymetadata_id`) -); - -CREATE TABLE `serializers_article_topic` ( - `article_id` BIGINT NOT NULL, - `topic_id` BIGINT NOT NULL, - SHARD KEY (`article_id`), - UNIQUE KEY (`article_id`, `topic_id`), - KEY (`article_id`), - KEY (`topic_id`) -); - -CREATE TABLE `serializers_m2mdata_anchor` ( - `m2mdata_id` BIGINT NOT NULL, - `anchor_id` BIGINT NOT NULL, - SHARD KEY (`m2mdata_id`), - UNIQUE KEY (`m2mdata_id`, `anchor_id`), - KEY (`m2mdata_id`), - KEY (`anchor_id`) -); - -CREATE TABLE `serializers_parent_parent` ( - `from_parent_id` BIGINT NOT NULL, - `to_parent_id` BIGINT NOT NULL, - SHARD KEY (`from_parent_id`), - UNIQUE KEY (`from_parent_id`, `to_parent_id`), - KEY (`from_parent_id`), - KEY (`to_parent_id`) -); - -CREATE ROWSTORE REFERENCE TABLE `serializers_naturalkeything_other_things` ( - `id` bigint AUTO_INCREMENT NOT NULL PRIMARY KEY, - `from_naturalkeything_id` bigint NOT NULL, - `to_naturalkeything_id` bigint NOT NULL, - UNIQUE KEY(`from_naturalkeything_id`,`to_naturalkeything_id`) -); - - -CREATE TABLE `serializers_m2mselfdata_m2mselfdata` ( - `from_m2mselfdata_id` BIGINT NOT NULL, - `to_m2mselfdata_id` BIGINT NOT NULL, - SHARD KEY (`from_m2mselfdata_id`), - UNIQUE KEY (`from_m2mselfdata_id`, `to_m2mselfdata_id`), - KEY (`from_m2mselfdata_id`), - KEY (`to_m2mselfdata_id`) -); - -CREATE TABLE `serializers_m2mintermediatedata_anchor` ( - `m2mintermediatedata_id` BIGINT NOT NULL, - `anchor_id` BIGINT NOT NULL, - SHARD KEY (`m2mintermediatedata_id`), - UNIQUE KEY (`m2mintermediatedata_id`, `anchor_id`), - KEY (`m2mintermediatedata_id`), - KEY (`anchor_id`) -); - --- update_only_fields -CREATE TABLE `update_only_fields_employee_account` ( - `employee_id` BIGINT NOT NULL, - `account_id` BIGINT NOT NULL, - SHARD KEY (`employee_id`), - UNIQUE KEY (`employee_id`, `account_id`), - KEY (`employee_id`), - KEY (`account_id`) -); - --- contenttypes_tests -CREATE TABLE `contenttypes_tests_modelwithm2mtosite_site` ( - `modelwithm2mtosite_id` BIGINT NOT NULL, - `site_id` BIGINT NOT NULL, - SHARD KEY (`modelwithm2mtosite_id`), - UNIQUE KEY (`modelwithm2mtosite_id`, `site_id`), - KEY (`modelwithm2mtosite_id`), - KEY (`site_id`) -); - --- test_runner -CREATE TABLE `test_runner_person_friend` ( - `from_person_id` BIGINT NOT NULL, - `to_person_id` BIGINT NOT NULL, - SHARD KEY (`from_person_id`), - UNIQUE KEY (`from_person_id`, `to_person_id`), - KEY (`from_person_id`), - KEY (`to_person_id`) -); - --- model_fields -CREATE TABLE `model_fields_manytomany_manytomany` ( - `from_manytomany_id` BIGINT NOT NULL, - `to_manytomany_id` BIGINT NOT NULL, - SHARD KEY (`from_manytomany_id`), - UNIQUE KEY (`from_manytomany_id`, `to_manytomany_id`), - KEY (`from_manytomany_id`), - KEY (`to_manytomany_id`) -); - -CREATE TABLE `model_fields_allfieldsmodel_allfieldsmodel` ( - `from_allfieldsmodel_id` BIGINT NOT NULL, - `to_allfieldsmodel_id` BIGINT NOT NULL, - SHARD KEY (`from_allfieldsmodel_id`), - UNIQUE KEY (`from_allfieldsmodel_id`, `to_allfieldsmodel_id`), - KEY (`from_allfieldsmodel_id`), - KEY (`to_allfieldsmodel_id`) -); - --- multiple_database -CREATE TABLE `multiple_database_book_person` ( - `book_id` BIGINT NOT NULL, - `person_id` VARCHAR(100) NOT NULL, - SHARD KEY (`book_id`), - UNIQUE KEY (`book_id`, `person_id`), - KEY (`book_id`), - KEY (`person_id`) -); - --- aggregation_regress -CREATE TABLE `aggregation_regress_author_friend` ( - `from_author_id` BIGINT NOT NULL, - `to_author_id` BIGINT NOT NULL, - SHARD KEY (`from_author_id`), - UNIQUE KEY (`from_author_id`, `to_author_id`), - KEY (`from_author_id`), - KEY (`to_author_id`) -); - -CREATE TABLE `aggregation_regress_book_author` ( - `book_id` BIGINT NOT NULL, - `author_id` BIGINT NOT NULL, - SHARD KEY (`book_id`), - UNIQUE KEY (`book_id`,`author_id`), - KEY (`book_id`), - KEY (`author_id`) -); - -CREATE TABLE `aggregation_regress_store_book` ( - `store_id` BIGINT NOT NULL, - `book_id` BIGINT NOT NULL, - SHARD KEY (`store_id`), - UNIQUE KEY (`store_id`,`book_id`), - KEY (`store_id`), - KEY (`book_id`) -); - -CREATE TABLE `aggregation_regress_recipe_authorproxy` ( - `recipe_id` BIGINT NOT NULL, - `authorproxy_id` BIGINT NOT NULL, - SHARD KEY (`recipe_id`), - UNIQUE KEY (`recipe_id`, `authorproxy_id`), - KEY (`recipe_id`), - KEY (`authorproxy_id`) -); - --- generic_relations_regress -CREATE TABLE `generic_relations_regress_organization_contact` ( - `organization_id` BIGINT NOT NULL, - `contact_id` BIGINT NOT NULL, - SHARD KEY (`organization_id`), - UNIQUE KEY (`organization_id`, `contact_id`), - KEY (`organization_id`), - KEY (`contact_id`) - --- fixtures -CREATE TABLE `fixtures_blog_article` ( - `blog_id` BIGINT NOT NULL, - `article_id` BIGINT NOT NULL, - SHARD KEY (`blog_id`), - UNIQUE KEY (`blog_id`, `article_id`), - KEY (`blog_id`), - KEY (`article_id`) -); - -CREATE TABLE `fixtures_visa_permission` ( - `visa_id` BIGINT NOT NULL, - `permission_id` BIGINT NOT NULL, - SHARD KEY (`visa_id`), - UNIQUE KEY (`visa_id`, `permission_id`), - KEY (`visa_id`), - KEY (`permission_id`) -); - -CREATE TABLE `fixtures_book_person` ( - `book_id` BIGINT NOT NULL, - `person_id` TEXT NOT NULL, - SHARD KEY (`book_id`), - UNIQUE KEY (`book_id`, `person_id`), - KEY (`book_id`), - KEY (`person_id`) -); - -CREATE TABLE `fixtures_naturalkeything_naturalkeything` ( - `from_naturalkeything_id` TEXT NOT NULL, - `to_naturalkeything_id` TEXT NOT NULL, - SHARD KEY (`from_naturalkeything_id`), - UNIQUE KEY (`from_naturalkeything_id`, `to_naturalkeything_id`), - KEY (`from_naturalkeything_id`), - KEY (`to_naturalkeything_id`) -); - --- one_to_one -CREATE TABLE `one_to_one_favorites_restaurant` ( - `favorites_id` BIGINT NOT NULL, - `restaurant_id` BIGINT NOT NULL, - SHARD KEY (`favorites_id`), - UNIQUE KEY (`favorites_id`, `restaurant_id`), - KEY (`favorites_id`), - KEY (`restaurant_id`) -); - --- bulk_create -CREATE TABLE `bulk_create_relatedmodel_bigautofieldmodel` ( - `relatedmodel_id` BIGINT NOT NULL, - `bigautofieldmodel_id` BIGINT NOT NULL, - SHARD KEY (`relatedmodel_id`), - 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`) -); - --- delete -CREATE TABLE `delete_player_game` ( - `player_id` BIGINT NOT NULL, - `game_id` BIGINT NOT NULL, - SHARD KEY (`player_id`), - UNIQUE KEY (`player_id`, `game_id`), - KEY (`player_id`), - KEY(`game_id`) -); - --- db_functions -CREATE TABLE `db_functions_article_author` ( - `article_id` BIGINT NOT NULL, - `author_id` BIGINT NOT NULL, - SHARD KEY (`article_id`), - UNIQUE KEY (`article_id`, `author_id`), - KEY (`article_id`), - KEY (`author_id`) -); diff --git a/tests/_utils/singlestore_settings_TMPL b/tests/_utils/singlestore_settings_TMPL deleted file mode 100644 index 8c614ff4d036..000000000000 --- a/tests/_utils/singlestore_settings_TMPL +++ /dev/null @@ -1,28 +0,0 @@ -# A settings file is just a Python module with module-level variables. - -DJANGO_SETTINGS_MODULE = 'singlestore_settings_TEST_MODULE' - -DATABASES = { - "default": { - "ENGINE": "django_singlestore", - "HOST": "127.0.0.1", - "PORT": 3306, - "USER": "root", - "PASSWORD": "p", - "NAME": "django_db_TEST_MODULE", - }, - "other": { - "ENGINE": "django_singlestore", - "HOST": "127.0.0.1", - "PORT": 3306, - "USER": "root", - "PASSWORD": "p", - "NAME": "django_db_TEST_MODULE", - }, -} - -USE_TZ = False -# TIME_ZONE = "UTC" - -DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" -SECRET_KEY = 'your-unique-secret-key-here' diff --git a/tests/singlestore_settings.py b/tests/singlestore_settings.py deleted file mode 100644 index 4a117c08bd6b..000000000000 --- a/tests/singlestore_settings.py +++ /dev/null @@ -1,29 +0,0 @@ -# A settings file is just a Python module with module-level variables. - -DJANGO_SETTINGS_MODULE = 'singlestore_settings' - -DATABASES = { - "default": { - "ENGINE": "django_singlestore", - "HOST": "127.0.0.1", - "PORT": 3306, - "USER": "root", - "PASSWORD": "p", - "NAME": "django_db", - }, - "other": { - "ENGINE": "django_singlestore", - "HOST": "127.0.0.1", - "PORT": 3306, - "USER": "root", - "PASSWORD": "p", - "NAME": "django_db_other", - }, -} - - -USE_TZ = False -# TIME_ZONE = "UTC" - -DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" -SECRET_KEY = 'your-unique-secret-key-here'