[cx-oracle-users] wrapping curs.execute() in another function?
Brought to you by:
atuining
From: Mark H. <mh...@pi...> - 2006-12-06 08:23:55
|
Is it possible to do if there is a keyword argument? I want to wrap queries like this: curs.execute('select * from p4_files where p4path like :x', x=NAME) print curs.fetchall() in a function like this: def doall(*cmd): curs.execute(cmd) return curs.fetchall() r=doall('select * from p4_files where p4path like :x', x=NAME) Any clues appreciated! Mark -- Mark Harrison Pixar Animation Studios |