bzr revid: pinky-ec49cea5bc7b85c40385456d5dfd1d4e4e00a965
This commit is contained in:
pinky 2007-02-07 08:24:43 +00:00
parent aef0fff63a
commit c0828736a6
1 changed files with 3 additions and 3 deletions

View File

@ -48,9 +48,9 @@ class fake_cursor:
self.con = con self.con = con
self.dbname = dbname self.dbname = dbname
def execute(self,*args): def execute_not_run(self,*args):
if not fake_cursor.nbr % 1: #if not fake_cursor.nbr % 1:
print 'sql: ',fake_cursor.nbr, args # print 'sql: ',fake_cursor.nbr, args
res = re.match('^select.* from ([a-zA-Z_]+) .*$', args[0], re.I) res = re.match('^select.* from ([a-zA-Z_]+) .*$', args[0], re.I)
if res: if res:
fake_cursor._tables.setdefault(res.group(1), 0) fake_cursor._tables.setdefault(res.group(1), 0)