|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/usr/lib/python2.4/site-packages/MySQLdb/ |
Upload File : |
mò
å9óAc @ sŠ d Z d k Z d k l Z l Z l Z l Z l Z l Z l Z l
Z
l Z l Z d k
Z
d k Z d „ Z d e i f d „ ƒ YZ d S( 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.
N(
s Warnings Errors InterfaceErrors DataErrors
DatabaseErrors OperationalErrors IntegrityErrors
InternalErrors NotSupportedErrors ProgrammingErrorc C sD | | f } | o | i i | ƒ n | i i | ƒ | | ‚ d S( 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( t
errorclasst
errorvaluet errort cursort messagest appendt
connection( R R R R R ( ( t7 /usr/lib/python2.4/site-packages/MySQLdb/connections.pyt defaulterrorhandler s t
Connectionc B s— t Z d Z e i Z d „ Z e d „ Z d „ Z e
e i d ƒ p
d „ Z
n e Z e Z e Z e Z e Z e Z e Z e Z e Z e Z e Z RS( s MySQL Database Connection Objectc O së d k l } l } d k l } d k } d k l }
| i ƒ } | i d ƒ o | d | d <} n | i ƒ | d <} | i d ƒ o | d | _ | d =n
| i | _ | i d d ƒ } | i d ƒ o | d =n t t | ƒ i | | Ž | i ƒ i d ƒ d | _ | oM |
| ƒ d
„ } | | | i <| | | i <| | i i d d | f ƒ n d |
| ƒ d „ }
d |
| ƒ d
„ } |
| i! | i"