示例#1
0
 def is_begin_required_for_sql_query(trans_obj, conn, sql):
     return (not trans_obj.auto_commit
             and conn.transaction_status() == TX_STATUS_IDLE
             and is_begin_required(sql))
示例#2
0
 def is_begin_required_for_sql_query(trans_obj, conn, sql):
     return (not trans_obj.auto_commit and
             conn.transaction_status() == TX_STATUS_IDLE and
             is_begin_required(sql)
             )