conn = jaydebeapi.connect(
conf_dict['jdbc_driver_class'],`
conf_dict['jdbc_connection_string'],
[db_id, db_pw],
conf_dict['jdbc_driver_library'] )
logging.debug('CONNECT_SUCCESS!')
cur = conn.cursor()
logging.debug('BEFORE EXECUTE!')
logging.debug('EXECUTE QUERY :: {}'.format(query))
cur.execute(query)
logging.debug('AFTER EXECUTE!') <-- not printed
I always thanks for jaydebeapi.
above code is in my script
most time this script works well, but some big query doen'st work well
query execute never ends and the process of python script too.
so I want set timeout to execute, How can i set timeout on 'execute'?
thank you
I always thanks for jaydebeapi.
above code is in my script
most time this script works well, but some big query doen'st work well
query execute never ends and the process of python script too.
so I want set timeout to execute, How can i set timeout on 'execute'?
thank you