Skip to content

Commit

Permalink
Modify tdb.query to allow bind parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Aug 16, 2014
1 parent c635e86 commit f435846
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,10 @@ def getStation(self, name):
return system.stations[0]


def query(self, sql):
def query(self, *args):
conn = pypyodbc.connect(self.path)
cur = conn.cursor()
cur.execute(sql)
cur.execute(*args)
return cur


Expand Down

0 comments on commit f435846

Please sign in to comment.