§
    ¤”jS  ã                   óf   — d dl Z d dlmZ d dlmZ d dlmZ d dlmZ ddl	m
Z
  G d„ d	e¦  «        ZdS )
é    N)Útransaction)ÚBaseDatabaseFeatures)ÚOperationalError)Úcached_propertyé   )ÚDatabasec                   ó   ‡ — e Zd ZdZdZdZdZdZdZdZ	dZ
dZdZdZdZdZdZdZdZdZej        dk    ZdZdZdZej        dk    Zej        dk    Zej        d	k    Zej        d
k     ZdZdZdZ dZ!ej        dk    Z"ej        dk    Z#dddddœZ$dhZ%dZ&dZ'dZ(e)d„ ¦   «         Z*e)ˆ fd„¦   «         Z+e)d„ ¦   «         Z, e- e.j/        d¦  «        ¦  «        Z0 e- e.j/        d¦  «        ¦  «        Z1e)d„ ¦   «         Z2 e- e.j/        d¦  «        ¦  «        Z3ˆ xZ4S )ÚDatabaseFeatures)é   é   FTiç  r   )r   é#   é   )r   é   r   )r   é   r   )r   r   r   )r   r   )r   é   r   ÚnocaseÚbinary)ÚciÚcsÚnon_defaultÚvirtualz9expressions.tests.FTimeDeltaTests.test_mixed_comparisons1z¸
        CREATE TABLE test_table_composite_pk (
            column_1 INTEGER NOT NULL,
            column_2 INTEGER NOT NULL,
            PRIMARY KEY(column_1, column_2)
        )
    z"INSERT INTO {} ("null") VALUES (1)c                 óº   — dhh d£h d£dœ}| j                              ¦   «         r|                     ddhdhdœ¦  «         n|                     d	hd
hdœ¦  «         |S )NzZmodel_fields.test_decimalfield.DecimalFieldTests.test_fetch_from_db_without_float_rounding>   ú4schema.tests.SchemaTests.test_unique_and_reverse_m2mú<schema.tests.SchemaTests.test_unique_no_unnecessary_fk_dropsúHschema.tests.SchemaTests.test_alter_field_default_doesnt_perform_queriesúKschema.tests.SchemaTests.test_rename_column_renames_deferred_sql_references>   úIdb_functions.math.test_round.RoundTests.test_null_with_negative_precisionúJdb_functions.math.test_round.RoundTests.test_float_with_negative_precisionúLdb_functions.math.test_round.RoundTests.test_decimal_with_negative_precisionúLdb_functions.math.test_round.RoundTests.test_integer_with_negative_precision)z6SQLite stores values rounded to 15 significant digits.z5SQLite naively remakes the table on field alteration.z6SQLite doesn't support negative precision for ROUND().zJservers.test_liveserverthread.LiveServerThreadTest.test_closes_connectionszGservers.tests.LiveServerTestCloseConnectionTest.test_closes_connectionszbtest_utils.tests.AssertNumQueriesUponConnectionTests.test_ignores_connection_configuration_queries)zOthe sqlite backend's close() method is a no-op when using an in-memory databasezHFor SQLite in-memory tests, closing the connection destroysthe database.zMservers.tests.LiveServerInMemoryDatabaseLockTest.test_in_memory_database_lockz`backends.sqlite.test_creation.TestDbSignatureTests.test_get_test_db_clone_settings_not_supported)zOOnly connections to in-memory SQLite databases are passed to the server thread.zMmultiprocessing's start method is checked only for in-memory SQLite databases)Ú
connectionÚis_in_memory_dbÚupdate)ÚselfÚskipss     úr/var/www/finuniver-perm.ru/html/portfolio/venv/lib/python3.11/site-packages/django/db/backends/sqlite3/features.pyÚdjango_test_skipsz"DatabaseFeatures.django_test_skipsB   sÒ   € ð<ðGðFð Fð Fð	Gð 	Gð 	Gð
ð 
ˆð0 Œ?×*Ò*Ñ,Ô,ð 	Ø�LŠLð2ð2ð+ðHð&ðð ñô ð ð ð" �LŠLð7ð'ðHð)ðð ñô ð ð ˆó    c                 ó<   •— i t          ¦   «         j        ¥dddddœ¥S )NÚ	AutoFieldÚBigIntegerFieldÚ	CharField)ÚBigAutoFieldÚDurationFieldÚGenericIPAddressFieldÚSmallAutoField)ÚsuperÚintrospected_field_types)r$   Ú	__class__s    €r&   r2   z)DatabaseFeatures.introspected_field_types~   s7   ø€ ð
Ý‰gŒgÔ.ð
à'Ø.Ø%0Ø)ð
ð 
ð 
ð 	
r(   c                 ó:  — | j                              ¦   «         5 }	 t          j        | j         j        ¦  «        5  |                     d¦  «         d d d ¦  «         n# 1 swxY w Y   n# t          $ r Y d d d ¦  «         dS w xY wd d d ¦  «         n# 1 swxY w Y   dS )NzSELECT JSON('{"a": "b"}')FT)r!   Úcursorr   ÚatomicÚaliasÚexecuter   )r$   r5   s     r&   Úsupports_json_fieldz$DatabaseFeatures.supports_json_fieldˆ   sJ  € àŒ_×#Ò#Ñ%Ô%ð 	¨ðÝ Ô'¨¬Ô(=Ñ>Ô>ð Bð BØ—N’NÐ#@ÑAÔAÐAðBð Bð Bñ Bô Bð Bð Bð Bð Bð Bð Bøøøð Bð Bð Bð Bøøå#ð ð ð Øð	ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ðøøøð		ð 	ð 	ñ 	ô 	ð 	ð 	ð 	ð 	ð 	ð 	øøøð 	ð 	ð 	ð 	ð ˆtsW   šBœA(ºAÁA(ÁA 	Á A(Á#A 	Á$A(Á'BÁ(
BÁ2BÂ BÂBÂBÂBr9   c                 ó"   — t           j        dk    S )N)r   r   )r   Úsqlite_version_info)r$   s    r&   Úcan_return_columns_from_insertz/DatabaseFeatures.can_return_columns_from_insert•   s   € åÔ+¨wÒ6Ð6r(   r<   )5Ú__name__Ú
__module__Ú__qualname__Úminimum_database_versionÚ#test_db_allows_multiple_connectionsÚsupports_unspecified_pkÚsupports_timezonesÚmax_query_paramsÚsupports_transactionsÚatomic_transactionsÚcan_rollback_ddlÚcan_create_inline_fkÚrequires_literal_defaultsÚcan_clone_databasesÚsupports_temporal_subtractionÚignores_table_name_caseÚsupports_cast_with_precisionÚtime_cast_precisionÚcan_release_savepointsÚhas_case_insensitive_liker   r;   Úcan_alter_table_drop_columnÚ supports_parentheses_in_compoundÚcan_defer_constraint_checksÚsupports_over_clauseÚ#supports_frame_range_fixed_distanceÚ supports_aggregate_filter_clauseÚ supports_order_by_nulls_modifierÚ#requires_compound_order_by_subqueryÚorder_by_nulls_firstÚsupports_json_field_containsÚsupports_update_conflictsÚ%supports_update_conflicts_with_targetÚ!supports_stored_generated_columnsÚ"supports_virtual_generated_columnsÚtest_collationsÚdjango_test_expected_failuresÚ,create_test_table_with_composite_primary_keyÚinsert_test_table_with_defaultsÚ"supports_default_keyword_in_insertr   r'   r2   r9   ÚpropertyÚoperatorÚ
attrgetterÚcan_introspect_json_fieldÚhas_json_object_functionr<   Ú can_return_rows_from_bulk_insertÚ__classcell__)r3   s   @r&   r
   r
      s  ø€ € € € € Ø&ÐØ*/Ð'Ø"ÐØÐØÐØ ÐØÐØÐØ ÐØ $ÐØÐØ$(Ð!Ø"ÐØ#(Ð ØÐØ!ÐØ $Ðà"*Ô">À*Ò"LÐØ',Ð$Ø"&ÐØÐØ*2Ô*FÈ*Ò*TÐ'Ø'/Ô'CÀzÒ'QÐ$Ø'/Ô'CÀzÒ'QÐ$à*2Ô*FÈÒ*PÐ'ØÐØ#(Ð Ø $ÐØ,0Ð)Ø(0Ô(DÈ
Ò(RÐ%Ø)1Ô)EÈÒ)SÐ&àØØØð	ð €Oð 	Dð%Ð!ð
4Ð0ð 'KÐ#Ø).Ð&àð9ð 9ñ „_ð9ðv ð
ð 
ð 
ð 
ñ „_ð
ð ðð ñ „_ðð !) Ð)<¨Ô)<Ð=RÑ)SÔ)SÑ TÔ TÐØ'˜xÐ(;¨Ô(;Ð<QÑ(RÔ(RÑSÔSÐàð7ð 7ñ „_ð7ð (0 xØˆÔÐ<Ñ=Ô=ñ(ô (Ð$Ð$Ð$Ð$Ð$r(   r
   )re   Ú	django.dbr   Ú django.db.backends.base.featuresr   Údjango.db.utilsr   Údjango.utils.functionalr   Úbaser   r
   © r(   r&   ú<module>rq      s§   ðØ €€€à !Ð !Ð !Ð !Ð !Ð !Ø AÐ AÐ AÐ AÐ AÐ AØ ,Ð ,Ð ,Ð ,Ð ,Ð ,Ø 3Ð 3Ð 3Ð 3Ð 3Ð 3à Ð Ð Ð Ð Ð ðPð Pð Pð Pð PÐ+ñ Pô Pð Pð Pð Pr(   