
    Mhh	                     6    d Z ddlmZ ddlmZ  G d de      Zy)zDatabase schema editor.    )Any)DatabaseSchemaEditorc                   0    e Zd ZdZdedefdZdedefdZy)r   z\This class is responsible for emitting schema-changing statements to the
    databases.
    valuereturnc                 <   | j                   j                          t        |t              r|j	                  dd      }| j                   j                   j
                  j                  |      }t        |t              r t        |t              r|j                         }|S )zQuote value.%z%%)	
connectionensure_connection
isinstancestrreplace	converterescapebytesdecode)selfr   quoteds      u/var/www/pru.catia.catastroantioquia-mas.com/valormasv2/lib/python3.12/site-packages/mysql/connector/django/schema.pyquote_valuez DatabaseSchemaEditor.quote_value,   so    ))+eS!MM#t,E++55<<UCeS!j&?]]_F    c                     |S )zImplement the required abstract method.

        MySQL has requires_literal_defaults=False, therefore return the value.
         )r   r   s     r   prepare_defaultz$DatabaseSchemaEditor.prepare_default6   s	    
 r   N)__name__
__module____qualname____doc__r   r   r   r   r   r   r   r   '   s-      S S r   r   N)r   typingr   django.db.backends.mysql.schemar   MySQLDatabaseSchemaEditorr   r   r   <module>r"      s   >  
4 r   