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))
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) )