hi
thanks for your advice. yes,the args parameter can be included.
Yes , the syntax is valid. I tried and it works for the 2 tables. looks
like sybase knows
how to distinguish that 2 update statements..as separate ones.
cheers
--
http://mail.python.org/mailman/listinfo/python-list
hi
thanks!
i used your method to rearrange the try,except clauses, and the
problem is solved.
I also redefined my funcs to get rid of the try/except clauses and
leave it to the caller to
do the job of try/except.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> db = Sybase.connect(DSN)
> ...
> def x_dml(SQL,conn):
> ''' Connects to database specified, exec the SQL and returns
> value'''
> try:
> c = conn.cursor()
> try:
> c.execute(SQL)
>
hi
i defined a func
db = Sybase.connect(DSN)
...
def x_dml(SQL,conn):
''' Connects to database specified, exec the SQL and returns
value'''
try:
c = conn.cursor()
try:
c.execute(SQL)
res = c.rowco