config root man

Current Path : /usr/local/lib/python2.5/sqlite3/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/sqlite3/test/userfunctions.pyc

hRc@sddkZddkZdZdZdZdZdZdZdZ	d	Z
d
ZdZdZ
d
Zdd&dYZdd'dYZdd(dYZdd)dYZdd*dYZdd+dYZdd,dYZdeifdYZdeifdYZd Zd!eifd"YZd#Zd$Zed%joendS(-iNcCsdS(Ntfoo((((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_returntextscCsdS(Nubar((((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_returnunicodescCsdS(Ni*((((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_returnint scCsdS(NgQ	@((((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_returnfloat"scCsdS(N(tNone(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_returnnull$scCs
tdS(Ntblob(tbuffer(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_returnblob&scCsdddS(Nii((((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_raiseexception(scCst|tjS(N(ttypetunicode(tv((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyt
func_isstring+scCst|tjS(N(Rtint(R
((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyt
func_isint-scCst|tjS(N(Rtfloat(R
((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_isfloat/scCst|tdjS(N(RR(R
((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_isnone1scCst|tjS(N(RR(R
((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfunc_isblob3st
AggrNoStepcBseZdZdZRS(cCsdS(N((tself((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyt__init__7scCsdS(Ni((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfinalize:s(t__name__t
__module__RR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR6s	tAggrNoFinalizecBseZdZdZRS(cCsdS(N((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR>scCsdS(N((Rtx((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytstepAs(RRRR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR=s	tAggrExceptionInInitcBs#eZdZdZdZRS(cCsdddS(Nii((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyREscCsdS(N((RR((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRHscCsdS(N((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRKs(RRRRR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRDs		tAggrExceptionInStepcBs#eZdZdZdZRS(cCsdS(N((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyROscCsdddS(Nii((RR((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRRscCsdS(Ni*((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRUs(RRRRR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRNs		tAggrExceptionInFinalizecBs#eZdZdZdZRS(cCsdS(N((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRYscCsdS(N((RR((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR\scCsdddS(Nii((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR_s(RRRRR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR Xs		t
AggrCheckTypecBs#eZdZdZdZRS(cCs
d|_dS(N(Rtval(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRcscCs\htd<td<td<tdd<td<}t||t|j|_dS(NtstrRRRR(RRRRRRR"(Rt	whichTypeR"ttheType((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRfs9cCs|iS(N(R"(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRjs(RRRRR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR!bs		tAggrSumcBs#eZdZdZdZRS(cCs
d|_dS(Ng(R"(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRnscCs|i|7_dS(N(R"(RR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRqscCs|iS(N(R"(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRts(RRRRR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR&ms		t
FunctionTestscBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZdZdZRS(cCstid|_|iiddt|iiddt|iiddt|iiddt|iiddt|iiddt	|iid	dt
|iid
dt|iiddt|iid
dt
|iiddt|iiddtdS(Ns:memory:t
returntextit
returnunicodet	returninttreturnfloatt
returnnullt
returnblobtraiseexceptiontisstringitisinttisfloattisnonetisblob(tsqlitetconnecttcontcreate_functionRRRRRR	R
RRRRR(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytsetUpxscCs|iidS(N(R6tclose(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyttearDownscCsGy*|iiddd|idWntij
onXdS(NtblaicSsd|S(i((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyt<lambda>ss&should have raised an OperationalError(R6R7tfailR4tOperationalError(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncErrorOnCreates
cCsUd}|}|td<|iidd||ii}|iddS(NcSs
d}|S(NcSsdS(Ni((((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytfs((R@((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytgetfuncs	Rtreftestisselect reftest()(tglobalsR6R7tcursortexecute(RRAR@tcur((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncRefCounts		
cCsV|ii}|id|id}|it|t|i|ddS(Nsselect returntext()iR(R6RDREtfetchonetfailUnlessEqualRR(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncReturnTexts

cCsV|ii}|id|id}|it|t|i|ddS(Nsselect returnunicode()iubar(R6RDRERHRIRR(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncReturnUnicodes

cCsV|ii}|id|id}|it|t|i|ddS(Nsselect returnint()ii*(R6RDRERHRIRR(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncReturnInts

cCsq|ii}|id|id}|it|t|djp
|djo|idndS(Nsselect returnfloat()ig&1	@gT㥛 	@swrong value(R6RDRERHRIRRR=(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncReturnFloats
cCs\|ii}|id|id}|it|td|i|ddS(Nsselect returnnull()i(R6RDRERHRIRR(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncReturnNulls

cCs\|ii}|id|id}|it|t|i|tddS(Nsselect returnblob()iR(R6RDRERHRIRR(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncReturnBlobs

cCsm|ii}y(|id|i|idWn/tij
o }|i|iddnXdS(Nsselect raiseexception()s#should have raised OperationalErroris&user-defined function raised exception(	R6RDRERHR=R4R>RItargs(RRFte((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckFuncExceptions

cCsC|ii}|idd|id}|i|ddS(Nsselect isstring(?)Rii(sfoo(R6RDRERHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckParamStringscCsC|ii}|idd|id}|i|ddS(Nsselect isint(?)i*ii(i*(R6RDRERHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyt
CheckParamIntscCsC|ii}|idd|id}|i|ddS(Nsselect isfloat(?)gQ	@ii(gQ	@(R6RDRERHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckParamFloatscCsC|ii}|idd|id}|i|ddS(Nsselect isnone(?)ii(N(R6RDRERRHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckParamNonescCsL|ii}|idtdf|id}|i|ddS(Nsselect isblob(?)Rii(R6RDRERRHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckParamBlobs(RRR8R:R?RGRJRKRLRMRNRORRRSRTRURVRW(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR'ws 																tAggregateTestscBseZdZdZdZdZdZdZdZdZ	dZ
d	Zd
ZdZ
dZd
ZRS(cCstid|_|ii}|id|idddddtdf|iidd	t|iid
d	t	|iidd	t
|iidd	t|iid
d	t|iiddt
|iidd	tdS(Ns:memory:s
            create table test(
                t text,
                i integer,
                f float,
                n,
                b blob
                )
            s6insert into test(t, i, f, n, b) values (?, ?, ?, ?, ?)RigQ	@Rtnostepit
nofinalizetexcInittexcSteptexcFinalizet	checkTypeitmysum(R4R5R6RDRERRtcreate_aggregateRRRRR R!R&(RRF((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR8s	cCsdS(N((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR:	scCsDy'|iiddt|idWntij
onXdS(NR;is&should have raised an OperationalError(R6R7R&R=R4R>(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrErrorOnCreates
cCs`|ii}y|id|idWn,tj
o }|i|iddnXdS(Nsselect nostep(t) from tests$should have raised an AttributeErroris+AggrNoStep instance has no attribute 'step'(R6RDRER=tAttributeErrorRIRP(RRFRQ((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrNoSteps
cCss|ii}y.|id|id}|idWn/tij
o }|i|iddnXdS(Nsselect nofinalize(t) from testis&should have raised an OperationalErrors7user-defined aggregate's 'finalize' method raised error(	R6RDRERHR=R4R>RIRP(RRFR"RQ((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrNoFinalizes
cCss|ii}y.|id|id}|idWn/tij
o }|i|iddnXdS(Nsselect excInit(t) from testis&should have raised an OperationalErrors7user-defined aggregate's '__init__' method raised error(	R6RDRERHR=R4R>RIRP(RRFR"RQ((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrExceptionInInit&s
cCss|ii}y.|id|id}|idWn/tij
o }|i|iddnXdS(Nsselect excStep(t) from testis&should have raised an OperationalErrors3user-defined aggregate's 'step' method raised error(	R6RDRERHR=R4R>RIRP(RRFR"RQ((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrExceptionInStep/s
cCss|ii}y.|id|id}|idWn/tij
o }|i|iddnXdS(Nsselect excFinalize(t) from testis&should have raised an OperationalErrors7user-defined aggregate's 'finalize' method raised error(	R6RDRERHR=R4R>RIRP(RRFR"RQ((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrExceptionInFinalize8s
cCsC|ii}|idd|id}|i|ddS(Nsselect checkType('str', ?)Rii(sfoo(R6RDRERHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrCheckParamStrAscCsC|ii}|idd|id}|i|ddS(Nsselect checkType('int', ?)i*ii(i*(R6RDRERHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrCheckParamIntGscCsC|ii}|idd|id}|i|ddS(Nsselect checkType('float', ?)gQ	@ii(gQ	@(R6RDRERHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrCheckParamFloatMscCsC|ii}|idd|id}|i|ddS(Nsselect checkType('None', ?)ii(N(R6RDRERRHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrCheckParamNoneSscCsL|ii}|idtdf|id}|i|ddS(Nsselect checkType('blob', ?)Rii(R6RDRERRHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrCheckParamBlobYscCsf|ii}|id|idd	d
dg|id|id}|i|ddS(Nsdelete from testsinsert into test(i) values (?)i
iisselect mysum(i) from testii<(i
(i(i(R6RDREtexecutemanyRHRI(RRFR"((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckAggrCheckAggrSum_s

(RRR8R:RaRcRdReRfRgRhRiRjRkRlRn(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRXs																	cCsG|tijotiSn|djp
|djotiSntiS(Ntc2tt2(R4t
SQLITE_SELECTtSQLITE_DENYt	SQLITE_OK(tactiontarg1targ2tdbnametsource((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyt
authorizer_cbgs
tAuthorizerTestscBs,eZdZdZdZdZRS(cCsFtid|_|iid|iid|iitdS(Ns:memory:s
            create table t1 (c1, c2);
            create table t2 (c1, c2);
            insert into t1 (c1, c2) values (1, 2);
            insert into t2 (c1, c2) values (4, 5);
            sselect c2 from t2(R4R5R6t
executescriptREtset_authorizerRy(R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR8os
	cCsdS(N((R((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyR:}scCswy|iidWnOtij
o@}|ididp|id|idndSnX|iddS(Nsselect * from t2it
prohibitedswrong exception text: %ss9should have raised an exception due to missing privileges(R6RER4t
DatabaseErrorRPtendswithR=(RRQ((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckTableAccesss	cCswy|iidWnOtij
o@}|ididp|id|idndSnX|iddS(Nsselect c2 from t1iR}swrong exception text: %ss9should have raised an exception due to missing privileges(R6RER4R~RPRR=(RRQ((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytCheckColumnAccesss	(RRR8R:RR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyRzns				cCsLtitd}titd}titd}ti|||fS(NtCheck(tunittestt	makeSuiteR'RXRzt	TestSuite(tfunction_suitetaggregate_suitetauthorizer_suite((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pytsuitescCs ti}|itdS(N(RtTextTestRunnertrunR(trunner((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pyttestst__main__((((((((Rtsqlite3R4RRRRRR	R
RRRRRRRRRR R!R&tTestCaseR'RXRyRzRRR(((s6/usr/local/lib/python2.5/sqlite3/test/userfunctions.pys<module>s8												



zv	$		


Man Man