I want to print individual exception for database connection, sql
execution, database closing, closing the cursor. Can I do it with one
try..catch or I need a nested try...catch?
conn = adodb.NewADOCon nection('mysql' )
conn.Connect('l ocalhost', 'temp', 'temp', 'temp')
sql = r"update file set pdf_file_path=' " +finalFile+r"' where
file_path='"+p+ r"'"
cursor = conn.Execute(sq l)
rows = cursor.Affected _Rows()
cursor.close()
conn.close()
Thank you for your FOUNTAIN OF WISDOM...
execution, database closing, closing the cursor. Can I do it with one
try..catch or I need a nested try...catch?
conn = adodb.NewADOCon nection('mysql' )
conn.Connect('l ocalhost', 'temp', 'temp', 'temp')
sql = r"update file set pdf_file_path=' " +finalFile+r"' where
file_path='"+p+ r"'"
cursor = conn.Execute(sq l)
rows = cursor.Affected _Rows()
cursor.close()
conn.close()
Thank you for your FOUNTAIN OF WISDOM...
Comment