MINI SHELL

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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/MySQLdb/cursors.pyc
mò
Ý¥áAc@s_dZdkZeideiƒZdklZlZlZl	Z	l
Z
lZlZl
Z
lZlZdefd„ƒYZdefd„ƒYZdefd	„ƒYZd
efd„ƒYZdefd
„ƒYZdefd„ƒYZdeeefd„ƒYZdeeefd„ƒYZdeeefd„ƒYZdeeefd„ƒYZdS(szMySQLdb Cursors

This module implements Cursors of various types for MySQLdb. By
default, MySQLdb uses the Cursor class.

Ns\svalues\s*(\(.+\))(
sWarningsErrorsInterfaceErrors	DataErrors
DatabaseErrorsOperationalErrorsIntegrityErrors
InternalErrorsNotSupportedErrorsProgrammingErrort
BaseCursorcBs2tZdZdklZlZlZlZlZl	Z	l
Z
lZlZl
Z
lZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd	„Zd
„Zd„Zd„Zed
„Zd„Zd„Zd„Zdd„Zd„Z eZeZeZeZe	Z	e
Z
eZeZe
Z
eZRS(sæA base for Cursor classes. Useful attributes:
    
    description -- DB API 7-tuple describing columns in last query
    arraysize -- default number of rows fetchmany() will fetch
    
    See the MySQL docs for more information.(s
MySQLErrorsWarningsErrorsInterfaceErrors
DatabaseErrors	DataErrorsOperationalErrorsIntegrityErrors
InternalErrorsProgrammingErrorsNotSupportedErrorcCsj||_d|_d|_d|_d|_d|_g|_|i	|_	d|_
d|_d|_dS(Niÿÿÿÿii(
t
connectiontselftNonetdescriptiontrowcountt	arraysizet	_executedt	lastrowidtmessagesterrorhandlert_resultt	_warningst_info(RR((t3/usr/lib/python2.4/site-packages/MySQLdb/cursors.pyt__init__s									cCs |iƒd|_d|_dS(N(RtcloseRR
R(R((Rt__del__)s
	cCs4|ipdSnx|iƒoqWd|_dS(s6Close the cursor. No further queries will be possible.N(RRtnextsetR(R((RR.s

cCs%|ip|i|tdƒndS(Nsexecute() first(RRR
tProgrammingError(R((Rt_check_executed4s
cCs[dkl}|io@|io6|ii|i|ifƒ||i|idƒndS(N(swarni(twarningstwarnRRR
R	tappendtWarning(RR((Rt_warning_check8s
cCsn|io|iƒn|i2|iƒ}|iƒ}|djodSn|i	ƒ|i
ƒ|iƒdS(s`Advance to the next result set.

        Returns None if there are no more result sets.
        iÿÿÿÿiN(RRtfetchallR	t_get_dbtdbtnext_resulttnrRt_do_get_resultt_post_get_resultR(RRR((RR>s




cCsdS(N((R((RR PscCs„|i}|iƒ|_|iƒ|_d|_|io|iiƒpd|_
|iƒ|_|i
ƒ|_|iƒ|_dS(Ni(RRRt_get_resultRt
affected_rowsRt	rownumbertdescribeRRt	insert_idRt
warning_countRtinfoR
(RR((RRRs		#cGsdS(s!Does nothing, required by DB API.N((Rtargs((Rt
setinputsizes\scGsdS(s!Does nothing, required by DB API.N((RR(((Rtsetoutputsizes_scCs(|ip|i|tdƒn|iS(Ns
cursor closed(RRR
R(R((RRbs
cCsUdkl}l}	dkl}|i2yC|djo|i	|ƒ}n |i	||ii
|ƒƒ}WnÑtj
o}|iddjo;|iit|idfƒ|i|t|idƒq>|iit|fƒ|i|t|ƒnF|ƒ\}}}
~
|ii||fƒ|i|||ƒnX||_|iƒ|S(sŒExecute a query.
        
        query -- string, query to execute on server
        args -- optional sequence or mapping, parameters to use with query.

        Note: If args is a sequence, then %s must be used as the
        parameter placeholder in the query. If a mapping is used,
        %(key)s must be used as the placeholder.

        Returns long integer rows affected, if any

        (sListTypes	TupleType(sexc_infois&not enough arguments for format stringsnot all arguments convertedN(s&not enough arguments for format stringsnot all arguments converted(ttypestListTypet	TupleTypetsystexc_infoRR	R(Rt_querytquerytrRtliteralt	TypeErrortmRRR
texctvaluettbRR(RR1R(R6R5R7R2R/R,R-R8((Rtexecutegs,


#	
cCsË|i2|pdSnti|ƒ}|p5d}	x$|D]}|	|i	||ƒ}	q9W|	Sn|i
dƒ}||}
|i
i|ƒ}yE||dg}|ig}|dD]}||
|qµ~ƒWnÈtj
o}|iddjo;|iit|idfƒ|i|t|idƒqœ|iit|fƒ|i|t|ƒn=dkl}|ƒ\}}
}~|i|||
ƒnX|idi|ƒƒ}	||_|i ƒ|	S(	s°Execute a multi-row query.
        
        query -- string, query to execute on server

        args

            Sequence of sequences or mappings, parameters to use with
            query.
            
        Returns long integer rows affected, if any.
        
        This method improves performance on multiple-row INSERT and
        REPLACE. Otherwise it is equivalent to looping over args with
        execute().

        Niis&not enough arguments for format stringsnot all arguments converted(sexc_infos,
(s&not enough arguments for format stringsnot all arguments converted(!RR	R(t
insert_valuestsearchR1R5R2taR9tstarttptqvRR3tqargstqtextendt_[1]R4tmsgRRR
R.R/R6R7R8R0tjoinRR(RR1R(R<RCR>R5R6RAR2R7R@RDR?R8R/((RtexecutemanyŽs@
4
	
cCs*|iƒ}|i|ƒ|iƒ|iS(N(RRRR1RARR(RRAR((Rt	_do_queryÀs

cCs
|i|ƒS(N(RRGRA(RRA((RR0ÆsicCs(|ipfSn|ii||iƒS(N(RRt	fetch_rowtsizet_fetch_type(RRI((Rt
_fetch_rowÈs
cCst|idƒS(N(titerRtfetchoneR(R((Rt__iter__Ís(!t__name__t
__module__t__doc__t_mysql_exceptionst
MySQLErrorRtErrortInterfaceErrort
DatabaseErrort	DataErrortOperationalErrortIntegrityErrort
InternalErrorRtNotSupportedErrorRRRRRRR RR)R*RRR9RFRGR0RKRN(((RRs:I	
							
			'	2			tCursorStoreResultMixIncBs\tZdZd„Zd„Zd„Zd„Zed„Zd„Z	dd„Z
d	„ZRS(
sThis is a MixIn class which causes the entire result set to be
    stored on the client side, i.e. it uses mysql_store_result(). If the
    result set can be very large, consider adding a LIMIT clause to your
    query, or using CursorUseResultMixIn instead.cCs|iƒiƒS(N(RRtstore_result(R((RR!ãscCs|i|ƒ}|iƒ|S(N(RRGRARR (RRAR((RR0ås
cCs|idƒ|_d|_dS(Ni(RRKt_rowsRR(R((RR êscCsO|iƒ|it|iƒjodSn|i|i}|id|_|S(s]Fetches a single row from the cursor. None indicates that
        no more rows are available.iN(RRR#tlenR^Rtresult(RR`((RRMîs
cCsS|iƒ|i|p|i}|i|i|!}t|t	|iƒƒ|_|S(s…Fetch up to size rows from the cursor. Result set may be smaller
        than size. If size is not defined, cursor.arraysize is used.N(
RRR#RIRtendR^R`tminR_(RRIRaR`((Rt	fetchmany÷s
cCsD|iƒ|io|i|ip|i}t|iƒ|_|S(s*Fetchs all available rows from the cursor.N(RRR#R^R`R_(RR`((RRs

$trelativecCsž|iƒ|djo|i|}n0|djo
|}n|i|td|
ƒ|djp|t|i	ƒjo|i|t
dƒn||_dS(sScroll the cursor in the result set to a new position according
        to mode.
        
        If mode is 'relative' (default), value is taken as offset to
        the current position in the result set, if set to 'absolute',
        value states an absolute target position.Rdtabsolutesunknown scroll mode %sisout of rangeN(RRtmodeR#R7R2R
RR_R^t
IndexError(RR7RfR2((Rtscrolls



#cCs8|iƒ|io|i|ip|i}t|ƒS(N(RRR#R^R`RL(RR`((RRNs
$(RORPRQR!R0R RMRRcRRhRN(((RR\Üs							tCursorUseResultMixIncBs5tZdZd„Zd„Zed„Zd„ZRS(sThis is a MixIn class which causes the result set to be stored
    in the server and sent row-by-row to client side, i.e. it uses
    mysql_use_result(). You MUST retrieve the entire result set and
    close() the cursor before additional queries can be peformed on
    the connection.cCs|iƒiƒS(N(RRt
use_result(R((RR!(scCs@|iƒ|idƒ}|pdSn|id|_|dS(s%Fetches a single row from the cursor.iiN(RRRKR2RR#(RR2((RRM*s
cCs=|iƒ|i|p|iƒ}|it|ƒ|_|S(s…Fetch up to size rows from the cursor. Result set may be smaller
        than size. If size is not defined, cursor.arraysize is used.N(RRRKRIRR2R#R_(RRIR2((RRc2s

cCs3|iƒ|idƒ}|it|ƒ|_|S(s*Fetchs all available rows from the cursor.iN(RRRKR2R#R_(RR2((RR:s

(RORPRQR!RMRRcR(((RRi s
		tCursorTupleRowsMixIncBstZdZdZRS(swThis is a MixIn class that causes all rows to be returned as tuples,
    which is the standard form required by DB API.i(RORPRQRJ(((RRkBstCursorDictRowsMixIncBs2tZdZdZd„Zed„Zd„ZRS(snThis is a MixIn class that causes all rows to be returned as
    dictionaries. This is a non-standard feature.icCs
|iƒS(sOFetch a single row as a dictionary. Deprecated:
        Use fetchone() instead.N(RRM(R((RtfetchoneDictQscCs
|i|ƒS(sZFetch several rows as a list of dictionaries. Deprecated:
        Use fetchmany() instead.N(RRcRI(RRI((Rt
fetchmanyDictVscCs
|iƒS(s_Fetch all available rows as a list of dictionaries. Deprecated:
        Use fetchall() instead.N(RR(R((RtfetchallDict[s(RORPRQRJRmRRnRo(((RRlJs
	tCursorOldDictRowsMixIncBstZdZdZRS(sŽThis is a MixIn class that returns rows as dictionaries with
    the same key convention as the old Mysqldb (MySQLmodule). Don't
    use this.i(RORPRQRJ(((RRpastCursorcBstZdZRS(sjThis is the standard Cursor class that returns rows as tuples
    and stores the result set in the client.(RORPRQ(((RRqjst
DictCursorcBstZdZRS(seThis is a Cursor class that returns rows as dictionaries and
    stores the result set in the client.(RORPRQ(((RRrqstSSCursorcBstZdZRS(s_This is a Cursor class that returns rows as tuples and stores
    the result set in the server.(RORPRQ(((RRsxstSSDictCursorcBstZdZRS(seThis is a Cursor class that returns rows as dictionaries and
    stores the result set in the server.(RORPRQ(((RRts(RQtretcompilet
IGNORECASER:RRRRTRURWRVRXRYRZR[RtobjectRR\RiRkRlRpRqRrRsRt(RZRRiRYRlRkRuRRpRWR[RtR\RqRTRsRURrR:RRVRX((Rt?s	CÍD"	

Anon7 - 2021