Potential leak of data: Python Database Connection
Detected 2 occurrence(s) of ‘(mdb|pyodbc)\.connect\(‘:
= cxn.cursor()
csr.execute(use)
fetch = csr.fetchall()
Sqls = (Sql,Sql_2,Sql_3)
Sqls = ('Sql','Sql_2','Sql_3')
SQl = """Select something"""
SQl_2 = """Select something"""
SQl_3 = """Select something"""
Sqls = (Sql, Sql_2, Sql_3)
cxn = pyodbc.connect('DSN=MySQL;PWD=xxx')
csr = cxn.cursor()
for x in Sqls:
print x
use = Sql_2
# use = x
csr.execute(use)
fetch = csr.fetchall()
Source: http://pastebin.com/raw.php?i=aqmWvWny
Tags: pastebin.com, Python Database Connection
This entry was posted on Monday, July 2nd, 2012 at 13:41 and is filed under PasteMon. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.
Comments are closed.

