Ñò u@€Dc@s‡dZddkTddkTd„Zd„Zd„Zd„Zd„Zd„Zd fd „ƒYZ e d jod Ge GHHeGHnd S(sZPyGreSQL classic interface. This pg module implements some basic database management stuff. It includes the _pg module and builds on it, providing the higher level wrapper class named DB with addtional functionality. This is known as the "classic" ("old style") PyGreSQL interface. For a DB-API 2 compliant interface use the newer pgdb module. iÿÿÿÿ(t*cCs|djodS|djo|djodSt|ƒS|djo!|djodSdt|ƒS|djoRt|ƒtjo.|djodSt|ƒiƒdj}n | }d|S|djo|djodSndt|ƒiddƒiddƒS(sReturn quotes if needed.tNULLtinttseqtdecimalttmoneys'%.2f'tboolttttruet1tytyestons'f's't'tdatetinettcidrs'%s's\s\\t's''N(sintRR(RR R R R R (s'f's't'(RRR(tNonetstrtfloatttypet StringTypetlowertreplace(tdR((s(/usr/lib64/python2.6/site-packages/pg.pyt_quotes*           cCsA|iddƒ}|iƒ p!|d iƒp||iƒjS(s1Check whether this string is a quoted identifier.t_tai(RtisalnumtisdigitR(ts((s(/usr/lib64/python2.6/site-packages/pg.pyt _is_quoted/scCs.|iddƒ}|iƒo|d iƒ S(s4Check whether this string is an unquoted identifier.RRi(RRR(R((s(/usr/lib64/python2.6/site-packages/pg.pyt _is_unquoted4sc CsŸ|iƒ}|d djo5g}|iddƒd}|i|dƒx]t|ƒdjoI|ddjo8|idƒ|diddƒ}|i|dƒqMWdi|ƒg}di|dƒiƒ}|or|d djo|i|dƒqNt|ƒ}|dc|d70 or pg_attribute.attname='oid') AND pg_attribute.attisdropped='f'RtoidRRRtabstimeRtintervalt timestampRttext( R@RQR4RJRPR/RTR^R2RFRKt startswith(R8RMt newattnamesRWRtattttyp((s(/usr/lib64/python2.6/site-packages/pg.pyt get_attnames sJ       ic Cs|idƒo|d iƒ}nt|i|ƒƒ}d|}|d jo|i|ƒ}n|i|ƒ}t|tƒoo|i |ƒp=d|i|ƒd}|i |ƒo||||s       ÿ«