| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/django/db/backends/mysql/__pycache__/ |
Upload File : |
�
�|�e � �R � d dl Z d dlZd dlZd dlmZ ddlmZ G d� de� � ZdS )� N)�BaseDatabaseCreation� )�DatabaseClientc �4 � � e Zd Zd� Zd� fd� Zdd�Zd� Z� xZS )�DatabaseCreationc �� � g }| j j d }|d r|� d|d z � � |d r|� d|d z � � d� |� � S )N�TEST�CHARSETzCHARACTER SET %s� COLLATIONz
COLLATE %s� )�
connection�
settings_dict�append�join)�self�suffix�
test_settingss �C/usr/lib/python3/dist-packages/django/db/backends/mysql/creation.py�sql_table_creation_suffixz*DatabaseCreation.sql_table_creation_suffix s} � �����5�f�=�
���#� I��M�M�,�}�Y�/G�G�H�H�H���%� E��M�M�,��{�)C�C�D�D�D��x�x����� Fc �. �� t � � � |||� � d S # t $ rb}t |j � � dk s|j d dk r-| � d|z � � t
j d� � n� Y d }~d S d }~ww xY w)Nr r i� z+Got an error creating the test database: %s� )�super�_execute_create_test_db� Exception�len�args�log�sys�exit)r �cursor�
parameters�keepdb�e� __class__s �r r z(DatabaseCreation._execute_create_test_db s� �� � ��G�G�+�+�F�J��G�G�G�G�G��� � � ��1�6�{�{�Q���!�&��)�t�"3�"3����F��J�K�K�K��������� ���������� ���s �#( �
B�AB�Bc � � | j j d }| � |� � d }| j j � |� � | � � � d�}| � � � 5 } | � |||� � n�# t $ r� |rY d d d � � d S |dk r-| � d| �
||� � �d�� � |� d|z � � | � |||� � nC# t $ r6}| � d|z � � t j
d� � Y d }~nd }~ww xY wY nw xY wd d d � � n# 1 swxY w Y | � ||� � d S ) N�NAME)�dbnamer r z'Destroying old test database for alias z...zDROP DATABASE %(dbname)sz-Got an error recreating the test database: %sr )r
r �get_test_db_clone_settings�ops�
quote_namer �_nodb_cursorr r r �_get_database_display_str�executer r � _clone_db) r r � verbosityr# �source_database_name�target_database_name�test_db_paramsr! r$ s r �_clone_test_dbzDatabaseCreation._clone_test_db s � �#��<�V�D��#�>�>�v�F�F�v�N���o�)�4�4�5I�J�J��4�4�6�6�
�
�� �
�
�
�
� �F�
��,�,�V�^�V�L�L�L�L���
�
�
�� ��
� � � � � � � � � �A�~�~����� �:�:�9�FZ�[�[�[�[�"� � � � �N�N�#=��#N�O�O�O��0�0����P�P�P�P�� � � � ��H�H�L�q�P�Q�Q�Q��H�Q�K�K�K�K�K�K�K�K����� ������
���� � � � � � � � � � � ���� � � � �"