| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Python312/Lib/site-packages/mysql/connector/django/__pycache__/ |
Upload File : |
�
��f� � � � d dl Z e j dk\ rd dlmZ nd dlmZ d dlmZ d dlmZ d dl Z dZ
G d� d e� Zy# e$ r dZ
Y �w xY w)
� N�� � )�BaseDatabaseFeatures)�cached_property)�sixTFc �
� � e Zd ZdZg ZdZdZdZdZdZ dZ
dZdZdZ
dZdZdZdZdZdZdZdZdZdZdZej4 dk rdZej: ZdZ� fd�Z e!d� � Z"e!d� � Z#e!d� � Z$e!d � � Z%e!d
� � Z&d� Z'� xZ(S )�DatabaseFeaturesz�Features specific to MySQL
Microsecond precision is supported since MySQL 5.6.3 and turned on
by default if this MySQL version is used.
FTr c �, �� t t | � |� y )N)�superr
�__init__)�self�
connection� __class__s ��AC:\Python312\Lib\site-packages\mysql/connector/django/features.pyr
zDatabaseFeatures.__init__5 s �� �
���.�z�:� c �8 � | j j dk\ ryy)N)� � � TF)r �
mysql_version�r s r �supports_microsecond_precisionz/DatabaseFeatures.supports_microsecond_precision8 s � ��?�?�(�(�I�5��r c �8 � d}dj |�� }| j j � 5 }|j |� |j dj |�� � | j j dk\ r?|j d| j j
d |f� |j
� d }n4|j d j |�� � |j
� d
}|j |� ddd� | _ |S # 1 sw Y �xY w)z�Get default storage engine of MySQL
This method creates a table without ENGINE table option and inspects
which engine was used.
Used by Django tests.
�INTROSPECT_TESTzDROP TABLE IF EXISTS {table})�tablezCREATE TABLE {table} (X INT))r r r zXSELECT ENGINE FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = %s AND TABLE_NAME = %s�NAMEr z&SHOW TABLE STATUS WHERE Name='{table}'r N)�formatr �cursor�executer �
settings_dict�fetchone�_cached_storage_engine)r �tblname� droptabler �engines r �mysql_storage_enginez%DatabaseFeatures.mysql_storage_engine>