ÿØÿàJFIFÿþ ÿÛC       ÿÛC ÿÀÿÄÿÄ"#QrÿÄÿÄ&1!A"2qQaáÿÚ ?Øy,æ/3JæÝ¹È߲؋5êXw²±ÉyˆR”¾I0ó2—PI¾IÌÚiMö¯–þrìN&"KgX:Šíµ•nTJnLK„…@!‰-ý ùúmë;ºgµŒ&ó±hw’¯Õ@”Ü— 9ñ-ë.²1<yà‚¹ïQÐU„ہ?.’¦èûbß±©Ö«Âw*VŒ) `$‰bØÔŸ’ëXÖ-ËTÜíGÚ3ð«g Ÿ§¯—Jx„–’U/ÂÅv_s(Hÿ@TñJÑãõçn­‚!ÈgfbÓc­:él[ðQe 9ÀPLbÃãCµm[5¿ç'ªjglå‡Ûí_§Úõl-;"PkÞÞÁQâ¼_Ñ^¢SŸx?"¸¦ùY騐ÒOÈ q’`~~ÚtËU¹CڒêV  I1Áß_ÿÙ 6Rc@sdZddlmZddlmZmZmZmZmZm Z m Z m Z m Z m Z ddlZddlZddlZdZejdZdZdejfd YZdS( s This module implements connections for MySQLdb. Presently there is only one class: Connection. Others are unlikely. However, you might want to make your own subclasses. In most cases, you will probably override Connection.default_cursor with a non-standard Cursor class. i(tcursors( tWarningtErrortInterfaceErrort DataErrort DatabaseErrortOperationalErrortIntegrityErrort InternalErrortNotSupportedErrortProgrammingErrorNcCsH||f}|r%|jj|n|jj|~~||dS(s, If cursor is not None, (errorclass, errorvalue) is appended to cursor.messages; otherwise it is appended to connection.messages. Then errorclass is raised with errorvalue as the value. You can override this with your own error handler by assigning it to the instance. N(tmessagestappend(t connectiontcursort errorclasst errorvalueterror((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pytdefaulterrorhandlers s^(\d+)cCs,tj|}|r(t|jdSdS(sReturns the leading numeric part of a string. >>> numeric_part("20-alpha") 20 >>> numeric_part("foo") >>> numeric_part("16b") 16 iN(tre_numeric_parttmatchtinttgrouptNone(tstm((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyt numeric_part(s t ConnectioncBseZdZejZdZdZd dZ dZ dZ dZ dZ eejdsud Znd Zd Zd ZeZeZeZeZeZeZeZeZeZeZeZ RS(s MySQL Database Connection Objectcsddlm}m}ddlm}ddlm}|j}d|kr[|d}n|}i} xP|jD]B\} } t | t rt | t r| | | srY     8    *;       cCs8t|}|j|kr4tjj||ndS(N(tbooltget_autocommitRCR R((R]ton((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyR(s cCs|p |j|S(s Create a cursor on which queries may be performed. The optional cursorclass parameter is used to create the Cursor. By default, self.cursorclass=cursors.Cursor is used. (R!(R]R!((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyRs cCs&|jr|jdn|jS(NtBEGIN(RgtqueryR(R]((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyt __enter__s cCs!|r|jn |jdS(N(trollbacktcommit(R]texctvaluettb((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyt__exit__s cCs|j||jS(s If o is a single object, returns an SQL literal as a string. If o is a non-string sequence, the items of the sequence are converted and returned as a sequence. Non-standard. For internal use; do not use this in your applications. (tescapeRL(R]to((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyR. s cCs1ddlm}|dtd|jddS(sExplicitly begin a connection. Non-standard. DEPRECATED: Will be removed in 1.3. Use an SQL BEGIN statement instead.i(twarns2begin() is non-standard and will be removed in 1.3iRiN(twarningsRttDeprecationWarningRj(R]Rt((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pytbegins t warning_countcCs>ddlm}|j}|r6||jdSdSdS(spReturn the number of warnings generated from the last query. This is derived from the info() method.i(tatoiiN(tstringRytinfoRE(R]RyR{((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyRx#s  cCs|dkrd}n|}|j|krytt|j|Wqtk r|jdkrutdn|jd||jqXn||j _ ||j _ dS( sSet the connection character set to charset. The character set can only be changed in MySQL-4.1 and newer. If you try to change the character set from the current value in an older version, NotSupportedError will be raised.tutf8mb4tutf8iis server is too old to set charsets SET NAMES %sN(ii( RORHRRPtAttributeErrorRNR Rjt store_resultR4R"R1(R]R"t py_charset((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyRP-s    cCs=|jdkrtdn|jd||jdS(sNSet the connection sql_mode. See MySQL documentation for legal values.iis!server is too old to set sql_modesSET SESSION sql_mode='%s'N(ii(RNR RjR(R]R%((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyRQAscCs?|jdkrdS|jd|j}|jd}|S(sReturn detailed information about warnings as a sequence of tuples of (Level, Code, Message). This is only supported in MySQL-4.1 and up. If your server is an earlier version, an empty sequence is returned.iis SHOW WARNINGSi(ii((RNRjRt fetch_row(R]trRu((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyt show_warningsIs   N(!t__name__t __module__t__doc__RtCursorR>RIR(RRRkRqR.RwthasattrRCR RxRPRQRRRRRRRRRR R Rt errorhandler(((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pyR8s2        (RtMySQLdbRt_mysql_exceptionsRRRRRRRRR R RWRCtreRtcompileRRR R(((sF/opt/alt/python27/lib64/python2.7/site-packages/MySQLdb/connections.pytsF