403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.217.25
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/sqlparse/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/sqlparse/__pycache__/sql.cpython-311.pyc
�

}�fg�P���dZddlZddlmZddlmZddlmZm	Z	Gd�d��Z
Gd�d	��ZGd
�de��ZGd�d
e��Z
Gd�de
e��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd�de��ZGd �d!e��ZGd"�d#e��ZGd$�d%e��ZGd&�d'e��ZGd(�d)e
e��ZGd*�d+e��ZGd,�d-e��ZGd.�d/e��ZGd0�d1e��ZdS)2zFThis module contains classes representing syntactical elements of SQL.�N��tokens)�
SQLParseError)�imt�
remove_quotesc��eZdZdZd�Zd�ZdS)�NameAliasMixinz'Implements get_real_name and get_alias.c�z�|�tjdf���\}}|�|d���S)�7Returns the real name (object name) of this identifier.�.��mT)�	real_name)�
token_next_by�T�Punctuation�_get_first_name)�self�dot_idx�_s   �./usr/lib/python3/dist-packages/sqlparse/sql.py�
get_real_namezNameAliasMixin.get_real_names>���'�'�1�=�#�*>�'�?�?�
����#�#�G�t�#�<�<�<�c�2�|�tjdf���\}}|�|�|dzd���S|�tj���\}}t|j��dkr|�|�d�	��SdSdS)
�2Returns the alias for this identifier or ``None``.�ASr
N�T)�keywords��t���reverse)rr�Keywordr�
Whitespace�lenr)r�kw_idx�kwr�wss     r�	get_aliaszNameAliasMixin.get_aliass����'�'�1�9�d�*;�'�<�<�
���
�>��'�'���
�T�'�B�B�B��"�"�Q�\�"�2�2���2��t�{���a���B�N��'�'��'�5�5�5� ��N�NrN)�__name__�
__module__�__qualname__�__doc__rr*�rrr	r	s8������1�1�=�=�=�6�6�6�6�6rr	c�T�eZdZdZdZd�Zd�Zd�Zd�Zd�Z	d�Z
dd
�Zd�Zd�Z
d
�ZdS)�Tokenz�Base class for all other classes in this module.

    It represents a single token and has two instance attributes:
    ``value`` is the unchanged value of the token and ``ttype`` is
    the type of the token.
    )�value�ttype�parent�
normalized�
is_keyword�is_group�
is_whitespacec��t|��}||_||_d|_d|_|t
jv|_|jt
jv|_	|jr|�
��n||_dS)NF)�strr2r3r4r7rr$r6r%r8�upperr5)rr3r2s   r�__init__zToken.__init__3sf���E�
�
����
���
������
��1�9�,���!�Z�1�<�7���+/�?�E�%�+�+�-�-�-�����rc��|jS�N�r2�rs r�__str__z
Token.__str__=s
���z�rc��|���}|���}|�d��r|�d��rdnd}djddt|��it
����S)N�'�"z"<{cls} {q}{value}{q} at 0x{id:2X}>�idr/)�_get_repr_name�_get_repr_value�
startswith�endswith�formatrE�locals)r�clsr2�qs    r�__repr__zToken.__repr__Ds����!�!�#�#���$�$�&�&���#�#�C�(�(�I�U�^�^�C�-@�-@�I�C�C�c��:�3�:�%�%��$�x�x�%�!�8�8�%�%�	%rc�\�t|j���d��dS)Nr���)r:r3�splitr@s rrFzToken._get_repr_nameLs#���4�:���$�$�S�)�)�"�-�-rc��t|��}t|��dkr
|dd�dz}tjdd|��S)N��z...z\s+� )r:r&�re�sub)r�raws  rrGzToken._get_repr_valueOsA���$�i�i���s�8�8�a�<�<��b�q�b�'�E�/�C��v�f�c�3�'�'�'rc#�K�|V�dS)zResolve subgroups.Nr/r@s r�flattenz
Token.flattenUs�����
�
�
�
�
rFc���|j|u}|r|�|St|t��r|f}|rG|jrtjnd��fd�|D��}|D]}|�|j��rdS� dS|jrd�|D��}|j|vS)a,Checks whether the token matches the given arguments.

        *ttype* is a token type. If this token doesn't match the given token
        type.
        *values* is a list of possible values for this token. The values
        are OR'ed together so if only one of the values matches ``True``
        is returned. Except for keyword tokens the comparison is
        case-sensitive. For convenience it's OK to pass in a single string.
        If *regex* is ``True`` (default is ``False``) the given values are
        treated as regular expressions.
        Nrc3�B�K�|]}tj|���V��dSr>)rV�compile)�.0�v�flags  �r�	<genexpr>zToken.match.<locals>.<genexpr>os/�����:�:�a�b�j��D�)�)�:�:�:�:�:�:rTFc3�>K�|]}|���V��dSr>)r;)r^r_s  rrazToken.match.<locals>.<genexpr>ws*����0�0�A�a�g�g�i�i�0�0�0�0�0�0r)r3�
isinstancer:r6rV�
IGNORECASE�searchr5)rr3�values�regex�type_matched�patternr`s      @r�matchzToken.matchYs�����z�U�*���	 �v�~����f�c�"�"�	��Y�F��	�$(�O�:�2�=�=��D�:�:�:�:�6�:�:�:�F�!�
 �
 ���>�>�$�/�2�2� ��4�4� ��5��?�	1�0�0��0�0�0�F���&�(�(rc�N�|j}|rt||��rdS|j}|�dS)z�Returns ``True`` if this token is within *group_cls*.

        Use this method for example to check if an identifier is within
        a function: ``t.within(sql.Function)``.
        TF)r4rc)r�	group_clsr4s   r�withinzToken.within{sB������	#��&�)�,�,�
��t��]�F��	#��urc��|j|kS)z<Returns ``True`` if this token is a direct child of *other*.�r4)r�others  r�is_child_ofzToken.is_child_of�s���{�e�#�#rc�:�|j}|r||krdS|j}|�dS)z7Returns ``True`` if *other* is in this tokens ancestry.TFro)rrpr4s   r�has_ancestorzToken.has_ancestor�s7������	#������t��]�F��	#��urN�F)r+r,r-r.�	__slots__r<rArNrFrGrZrjrmrqrsr/rrr1r1(s���������.�I�F�F�F����%�%�%�.�.�.�(�(�(���� )� )� )� )�D���$�$�$�����rr1c����eZdZdZdZd$�fd�	Zd�Zd�Zd�Zd�Z	d%d�Z
d�Zd
�Zd�Z
ed���Zd&d�Zd'd�Zd(d�Zd�Zd�Zd'd�Zd)d�Zd*d�Z		d'd�Zd�Zd+d�Zd�Zd�Zd �Zd!�Zd"�Z		d,d#�Z �xZ!S)-�	TokenListzwA group of tokens.

    It has an additional instance attribute ``tokens`` which holds a
    list of child-tokens.
    rNc����|pg�_�fd��jD��t���dt�����d�_dS)Nc�2��g|]}t|d�����Sro)�setattr)r^�tokenrs  �r�
<listcomp>z&TokenList.__init__.<locals>.<listcomp>�s%���A�A�A�E����$�	'�	'�A�A�ArT)r�superr<r:r7)rr�	__class__s` �rr<zTokenList.__init__�sV�����l����A�A�A�A�T�[�A�A�A�A�
������s�4�y�y�)�)�)���
�
�
rc�d�d�d�|���D����S)N�c3�$K�|]}|jV��dSr>r?)r^r{s  rraz$TokenList.__str__.<locals>.<genexpr>�s$����?�?�u�u�{�?�?�?�?�?�?r)�joinrZr@s rrAzTokenList.__str__�s+���w�w�?�?������?�?�?�?�?�?rc�*�t|j��Sr>)�iterrr@s r�__iter__zTokenList.__iter__�s���D�K� � � rc��|j|Sr>r)r�items  r�__getitem__zTokenList.__getitem__�s���{�4� � rc�*�t|��jSr>)�typer+r@s rrFzTokenList._get_repr_name�s���D�z�z�"�"rrr�c	���t|j��}t|j��D]�\}}|���}|���}	||dz
k}
|
rdnd}|	�d��r|	�d��rdnd}tdjdit����|���|j
r,|�||kr$|
rd	nd
}
|�||dz|||
z����dS)zPretty-print the object tree.rz`- z|- rCrDz${_pre}{pre}{idx} {cls} {q}{value}{q})�fileNz   z|  r/)r&r�	enumeraterFrGrHrI�printrJrKr7�_pprint_tree)r�	max_depth�depth�f�_pre�token_count�idxr{rLr2�last�prerM�
parent_pres              rr�zTokenList._pprint_tree�s5���$�+�&�&��#�D�K�0�0�
	O�
	O�J�C���&�&�(�(�C��)�)�+�+�E��;��?�+�D��*�%�%�U�C��'�'��,�,�M�����1D�1D�M���#�A���8��&�&�"�H�H�&�&�,-�
/�
/�
/�
/��~�
O�9�#4��	�8I�8I�&*�5�U�U��
��"�"�9�e�a�i��D�:�<M�N�N�N��
	O�
	Orc��d}|���D]/}|t|j��z}||cxkr|krnn|cS|}�0dS)z-Returns the token that is on position offset.rN)rZr&r2)r�offsetr�r{�ends     r�get_token_at_offsetzTokenList.get_token_at_offset�sn�����\�\�^�^�	�	�E���E�K�(�(�(�C��f�"�"�"�"�s�"�"�"�"�"������C�C�		�	rc#�K�	|jD](}|jr|���Ed{V���$|V��)dS#t$r}t	d��|�d}~wwxYw)znGenerator yielding ungrouped tokens.

        This method is recursively called for all child tokens.
        Nz Maximum recursion depth exceeded)rr7rZ�RecursionErrorr)rr{�errs   rrZzTokenList.flatten�s�����
	M���
 �
 ���>� �$�}�}���.�.�.�.�.�.�.�.��K�K�K�K�	
 �
 ��
�	M�	M�	M�� B�C�C��L�����	M���s�06�
A�A�Ac#�4K�|jD]
}|jr|V��dSr>)rr7�rr{s  r�get_sublistszTokenList.get_sublists�s5�����[�	�	�E��~�
������	�	rc��|jSr>rr@s r�_groupable_tokenszTokenList._groupable_tokens�s
���{�rFc�J�|�dSt|ttf��s|f}|rA|�J�t|dz
dd��D]'}|j|}|D]}||��r||fccS��(n<t|j||�|���D]\}}|D]}||��r||fccS��dS)znext token that match functionsNr!rP)�start�NN)rc�list�tuple�rangerr�)r�funcsr�r�r#r�r{�funcs        r�_token_matchingzTokenList._token_matching�s���=��4��%�$���/�/�	��H�E��	*��;�;�;��U�Q�Y��B�/�/�
*�
*����C�(��!�*�*�D��t�E�{�{�*�"�E�z�)�)�)�)�)�*�*�
*�(���E�#�I�(>�e�L�L�L�
*�
*�
��U�!�*�*�D��t�E�{�{�*�"�E�z�)�)�)�)�)�*�*��zrTc�H�����fd�}|�|��dS)z�Returns the first child token.

        If *skip_ws* is ``True`` (the default), whitespace
        tokens are ignored.

        if *skip_cm* is ``True`` (default: ``False``), comments are
        ignored too.
        c�^���r|jp"�o t|tjt���S�N)r �i�r8rr�Comment��tk�skip_cm�skip_wss ��r�matcherz&TokenList.token_first.<locals>.matcher�9��� �5�R�%5�I�#�G��B�!�)�w�(G�(G�(G�J�
Jrr�r�)rr�r�r�s `` r�token_firstzTokenList.token_first�sC����	J�	J�	J�	J�	J�	J��#�#�G�,�,�Q�/�/rrPc�J����|dz
}|����fd�||��S)Nrc�(��t|�����Sr>)r)r�r�rr s ���r�<lambda>z)TokenList.token_next_by.<locals>.<lambda>s���s�2�q�!�Q�/?�/?�rr�)rr�rr r�r�s ```  rrzTokenList.token_next_bys6������q����#�#�$?�$?�$?�$?�$?�$?��c�J�J�Jrc��t|ttf��s|fn|}d�|D��}|�||��S)Nc���g|]��fd���S)c����|��Sr>r/)r�r�s �rr�z9TokenList.token_not_matching.<locals>.<listcomp>.<lambda>s�����R���L�rr/)r^r�s @rr|z0TokenList.token_not_matching.<locals>.<listcomp>s#���;�;�;�T�(�(�(�(�;�;�;r)rcr�r�r��rr�r�s   r�token_not_matchingzTokenList.token_not_matchingsI�� *�5�4��-� @� @�K����e��;�;�U�;�;�;���#�#�E�3�/�/�/rc�:�|�||��dS)Nrr�r�s   r�token_matchingzTokenList.token_matchings���#�#�E�3�/�/��2�2rc�4�|�|||d���S)z�Returns the previous token relative to *idx*.

        If *skip_ws* is ``True`` (the default) whitespace tokens are ignored.
        If *skip_cm* is ``True`` comments are ignored.
        ``None`` is returned if there's no previous token.
        T)�_reverse)�
token_next)rr�r�r�s    r�
token_prevzTokenList.token_prevs�����s�G�W�t��D�D�Drc�T���|�dS|dz
}��fd�}|�|||���S)z�Returns the next token relative to *idx*.

        If *skip_ws* is ``True`` (the default) whitespace tokens are ignored.
        If *skip_cm* is ``True`` comments are ignored.
        ``None`` is returned if there's no next token.
        Nr�rc�^���r|jp"�o t|tjt���Sr�r�r�s ��rr�z%TokenList.token_next.<locals>.matcher-r�rr"r�)rr�r�r�r�r�s  ``  rr�zTokenList.token_next"sZ�����;��:��q���	J�	J�	J�	J�	J�	J��#�#�G�S�(�#�C�C�Crc��t|t��r|n|�|��}||j|d��|��zS)zReturn list index of token.N)rc�int�token_indexr�index)rr{r�s   rr�zTokenList.token_index2sL��#�E�3�/�/�L���T�5E�5E�e�5L�5L���t�{�5�6�6�*�0�0��7�7�7�7rc�f�|}|j|}||z}|r`t||��rP|j|dz|�}|}	|	j�|��|j|dz|�=t|��|	_n.|j||�}||��}	|	g|j||�<||	_|D]	}
|	|
_�
|	S)z+Replace tokens by an instance of *grp_cls*.r)rrc�extendr:r2r4)r�grp_clsr�r��include_endr��	start_idx�end_idx�	subtokens�grpr{s           r�group_tokenszTokenList.group_tokens7s����	���I�&����#���	�j���0�0�	���I��M�'�$9�:�I��C��J���i�(�(�(���I��M�'�1�2��E�
�
�C�I�I���I�g�$5�6�I��'�)�$�$�C�.1�U�D�K�	�'�)�*��C�J��	�	�E��E�L�L��
rc��t|t��s|�|��}||_|j�||��dS)zInserts *token* before *where*.N)rcr�r�r4r�insert)r�wherer{s   r�
insert_beforezTokenList.insert_beforeUsL���%��%�%�	,��$�$�U�+�+�E��������5�%�(�(�(�(�(rc��t|t��s|�|��}|�||���\}}||_|�|j�|��dS|j�||��dS)zInserts *token* after *where*.�r�N)rcr�r�r�r4r�appendr�)rr�r{r��nidx�next_s      r�insert_afterzTokenList.insert_after\s����%��%�%�	,��$�$�U�+�+�E��o�o�e�W�o�=�=���e�����=��K���u�%�%�%�%�%��K���t�U�+�+�+�+�+rc�.�|���duS)z(Returns ``True`` if an alias is present.N)r*r@s r�	has_aliaszTokenList.has_aliasgs���~�~���t�+�+rc��dS)rNr/r@s rr*zTokenList.get_aliask����trc�R�|���p|���S)aReturns the name of this identifier.

        This is either it's alias or it's real name. The returned valued can
        be considered as the name under which the object corresponding to
        this identifier is known within the current statement.
        )r*rr@s r�get_namezTokenList.get_nameos%���~�~���7�4�#5�#5�#7�#7�7rc��dS)rNr/r@s rrzTokenList.get_real_namexr�rc��|�tjdf���\}}|�|��\}}|�t	|j��ndS)ztReturn name of the parent object if any.

        A parent object is identified by the first occurring dot.
        rr
N)rrrr�rr2)rrr�prev_s    r�get_parent_namezTokenList.get_parent_name|sT��
�'�'�1�=�#�*>�'�?�?�
����?�?�7�+�+���5�-2�->�}�U�[�)�)�)�D�Hrc���|r|j|d�n|j}|rt|��n|}tjtjtjjg}|r|�tj��|D]i}|j	|vrt|j��cSt|ttf��r,|r|���n|���cS�jdS)z/Returns the name of the first token with a nameN)r�reversedr�Name�Wildcard�String�Symbolr�r$r3rr2rc�
Identifier�Functionrr�)rr�r#rrr�typesr{s        rrzTokenList._get_first_name�s���'*�:���S�T�T�"�"�t�{��%,�8��&�!�!�!�&������Q�X�_�5���	$��L�L���#�#�#��	P�	P�E��{�e�#�#�$�U�[�1�1�1�1�1��E�J��#9�:�:�
P�09�O�u�*�*�,�,�,�u�~�~�?O�?O�O�O�O�
P�	P�	Prr>)NrNr�)rNF)TF)NNNrPN)TFF)r)T)NFFF)"r+r,r-r.rur<rAr�r�rFr�r�rZr��propertyr�r�r�rr�r�r�r�r�r�r�r�r�r*r�rr�r�
__classcell__)r~s@rrwrw�sF����������I�������@�@�@�!�!�!�!�!�!�#�#�#�O�O�O�O�$���M�M�M����
����X������,
0�
0�
0�
0�K�K�K�K�0�0�0�
3�3�3�E�E�E�E�D�D�D�D� 8�8�8�8�
=A�!�����<)�)�)�	,�	,�	,�	,�,�,�,����8�8�8����I�I�I�AF�"'�P�P�P�P�P�P�P�Prrwc��eZdZdZd�ZdS)�	StatementzRepresents a SQL statement.c���|�d���}|�dS|jtjjtjjfvr|jS|jtjjkr�|�|��}|�	|d���\}}t|ttf��r=|�	|d���\}}|�!|jtjjkr|jSdS)aMReturns the type of a statement.

        The returned value is a string holding an upper-cased reprint of
        the first DML or DDL keyword. If the first token in this group
        isn't a DML or DDL keyword "UNKNOWN" is returned.

        Whitespaces and comments at the beginning of the statement
        are ignored.
        T)r�N�UNKNOWNr�)
r�r3rr$�DML�DDLr5�CTEr�r�rcr��IdentifierList)r�first_token�fidx�tidxr{r�dml_keywords       r�get_typezStatement.get_type�s����&�&�t�&�4�4�����9�
�
�1�9�=�!�)�-�"@�
@�
@��)�)�
�
�!�)�-�
/�
/��#�#�K�0�0�D��/�/�$��/�=�=�K�D�%��%�*�n�!=�>�>�
2�!%����t��!D�!D���;��*�'�-����>�>�&�1�1��yrN)r+r,r-r.rr/rrr�r��s)������%�%�!�!�!�!�!rr�c�*�eZdZdZd�Zd�Zd�Zd�ZdS)r�zNRepresents an identifier.

    Identifiers may have aliases or typecasts.
    c�P�|�tj���\}}|duS)z7Return ``True`` if this identifier contains a wildcard.rN)rrr�)rrr{s   r�is_wildcardzIdentifier.is_wildcard�s)���%�%��
�%�3�3���5��D� � rc��|�tjdf���\}}|�|d���\}}|r|jndS)z<Returns the typecast or ``None`` of this object as a string.z::r
Fr�N)rrrr�r2)r�midx�markerr�r�s     r�get_typecastzIdentifier.get_typecast�sM���)�)�Q�]�D�,A�)�B�B���f��o�o�d�E�o�:�:���e�#�-�u�{�{��-rc�h�|�tjj���\}}|r|jndS)z5Returns the ordering or ``None`` as uppercase string.rN)rrr$�Orderr5)rr�orderings   r�get_orderingzIdentifier.get_ordering�s3���(�(�1�9�?�(�;�;���8�&.�8�x�"�"�D�8rc#�jK�|jD](}t|t��r|jdd�V��)dS)z(Returns an iterator of index token listsrrPN)rrc�SquareBracketsr�s  r�get_array_indiceszIdentifier.get_array_indices�sM�����[�	)�	)�E��%��0�0�
)��l�1�R�4�(�(�(�(��	)�	)rN)r+r,r-r.rrrrr/rrr�r��sZ��������
!�!�!�
.�.�.�9�9�9�
)�)�)�)�)rr�c��eZdZdZd�ZdS)r�z.A list of :class:`~sqlparse.sql.Identifier`'s.c#�tK�|jD]-}|js$|�tjd��s|V��.dS)zkReturns the identifiers.

        Whitespaces and punctuations are not included in this generator.
        �,N)rr8rjrrr�s  r�get_identifierszIdentifierList.get_identifiers�sO����
�[�	�	�E��'�
�5�;�;�q�}�c�+J�+J�
������	�	rN)r+r,r-r.rr/rrr�r��s)������9�9�����rr�c�n�eZdZdZejjdfejdfgZej	j
dfZejdfZdS)�TypedLiteralzEA typed literal, such as "date '2001-09-28'" or "interval '2 hours'".N�	TIMESTAMP)�DAY�HOUR�MINUTE�MONTH�SECOND�YEAR)
r+r,r-r.rr��Builtinr$�M_OPENr��Single�M_CLOSE�M_EXTENDr/rrrr�sI������O�O��v�~�t�$�q�y�+�&>�
?�F��h�o�t�#�G��y�N�N�H�H�Hrrc�L�eZdZdZejdfZejdfZed���Z	dS)�ParenthesiszTokens between parenthesis.�(�)c� �|jdd�S�NrrPrr@s rr�zParenthesis._groupable_tokens�����{�1�R�4� � rN�
r+r,r-r.rrr!r#r�r�r/rrr&r&�sK������%�%�
�]�C�
�F��m�S� �G�
�!�!��X�!�!�!rr&c�L�eZdZdZejdfZejdfZed���Z	dS)rzTokens between square brackets�[�]c� �|jdd�Sr*rr@s rr�z SquareBrackets._groupable_tokensr+rNr,r/rrrr�sK������(�(�
�]�C�
�F��m�S� �G�
�!�!��X�!�!�!rrc��eZdZdZdS)�
Assignmentz An assignment like 'var := val;'N�r+r,r-r.r/rrr2r2s������*�*�*�*rr2c�6�eZdZdZejdfZejdfZdS)�Ifz7An 'if' clause with possible 'else if' or 'else' parts.�IFzEND IFN�r+r,r-r.rr$r!r#r/rrr5r5	s+������A�A�
�Y��_�F��i��!�G�G�Grr5c�6�eZdZdZejdfZejdfZdS)�Forz
A 'FOR' loop.)�FOR�FOREACHzEND LOOPNr7r/rrr9r9s-��������
�Y�*�
*�F��i��#�G�G�Grr9c�>�eZdZdZed���Zed���ZdS)�
Comparisonz/A comparison used for example in WHERE clauses.c��|jdS�Nrrr@s r�leftzComparison.lefts���{�1�~�rc��|jdS)NrPrr@s r�rightzComparison.rights���{�2��rN)r+r,r-r.r�r@rBr/rrr=r=sN������9�9�
����X������X���rr=c��eZdZdZd�ZdS)r�z
A comment.c�Z�|jo$|jdjtjjkSr?)rr3rr��	Multiliner@s r�is_multilinezComment.is_multiline$s"���{�J�t�{�1�~�3�q�y�7J�J�JrN)r+r,r-r.rFr/rrr�r�!s.��������K�K�K�K�Krr�c�6�eZdZdZejdfZejdfZdS)�WherezA WHERE clause.�WHERE)	�ORDER BYzGROUP BY�LIMIT�UNIONz	UNION ALL�EXCEPT�HAVING�	RETURNING�INTONr7r/rrrHrH(s1��������
�Y��
�F��i�'�'�G�G�GrrHc�6�eZdZdZejdfZejdfZdS)�HavingzA HAVING clause.rN)rJrKNr7r/rrrRrR0s-��������
�Y��
 �F��i�.�.�G�G�GrrRc�>�eZdZdZejdfZejdfZdd�ZdS)�CasezAA CASE statement with one or more WHEN and possibly an ELSE part.�CASE�ENDFc���d}d}g}|}|jD�]^}|�tjd��r�$|r|jtjvr�:|�tjd��r|�ggf��|}n|�tjd��r|}n\|�tjd��r|�dgf��|}n"|�tjd��rd}|r|s|�ggf��||kr#|d	d
�|����7||kr!|d	d�|����`|S)zeReturns a list of 2-tuples (condition, value).

        If an ELSE exists condition is None.
        rr!rU�WHEN�THEN�ELSENrVrPr)rrjrr$r3r%r�)rr��	CONDITION�VALUE�ret�moder{s       r�	get_caseszCase.get_cases;s���
�	��������[�	)�	)�E��{�{�1�9�f�-�-�
���
�U�[�A�L�8�8�����Q�Y��/�/�
��
�
�B��8�$�$�$� ������Q�Y��/�/�
�������Q�Y��/�/�
��
�
�D�"�:�&�&�&�������Q�Y��.�.�
����
%�C�
%��
�
�B��8�$�$�$��y� � ��B���
�!�!�%�(�(�(�(������B���
�!�!�%�(�(�(���
rNrt)	r+r,r-r.rr$r!r#r_r/rrrTrT6sF������K�K�
�Y��
�F��i���G�-�-�-�-�-�-rrTc��eZdZdZd�ZdS)r�zA function or procedure call.c���|jd}|jD]Z}t|t��r|���cSt	|t
tftj���r|gcS�[gS)zReturn a list of parameters.rP)r�r )	rrcr�rrr�r�r�Literal)r�parenthesisr{s   r�get_parameterszFunction.get_parametersns���k�"�o�� �'�	!�	!�E��%��0�0�
!��,�,�.�.�.�.�.��U�x��4��	�B�B�B�
!��y� � � �
!��	rN)r+r,r-r.rdr/rrr�r�ks)������'�'�����rr�c�6�eZdZdZejdfZejdfZdS)�BeginzA BEGIN/END block.�BEGINrVNr7r/rrrfrfys,��������
�Y��
�F��i���G�G�Grrfc��eZdZdZdS)�	OperationzGrouping of operationsNr3r/rrriris������ � � � rric��eZdZdZdS)�ValueszGrouping of valuesNr3r/rrrkrk�s���������rrkc��eZdZdZdS)�CommandzGrouping of CLI commands.Nr3r/rrrmrm�s������#�#�#�#rrm) r.rV�sqlparserr�sqlparse.exceptionsr�sqlparse.utilsrrr	r1rwr�r�r�rr&rr2r5r9r=r�rHrRrTr�rfrirkrmr/rr�<module>rqs%��M�L�	�	�	�	� � � � � � �-�-�-�-�-�-�-�-�-�-�-�-�-�-�6�6�6�6�6�6�6�6�.k�k�k�k�k�k�k�k�\~P�~P�~P�~P�~P��~P�~P�~P�B$�$�$�$�$�	�$�$�$�N)�)�)�)�)���)�)�)�>
�
�
�
�
�Y�
�
�
�O�O�O�O�O�9�O�O�O�!�!�!�!�!�)�!�!�!�!�!�!�!�!�Y�!�!�!�+�+�+�+�+��+�+�+�"�"�"�"�"��"�"�"�$�$�$�$�$�)�$�$�$�	�	�	�	�	��	�	�	�K�K�K�K�K�i�K�K�K�'�'�'�'�'�I�'�'�'�/�/�/�/�/�Y�/�/�/�2�2�2�2�2�9�2�2�2�j�����~�y���������I����!�!�!�!�!�	�!�!�!������Y����$�$�$�$�$�i�$�$�$�$�$r

Youez - 2016 - github.com/yon3zu
LinuXploit