def has_change_path_cmd(sql):
 return (u'set search_path' in sql.lower())

def has_change_path_cmd ( sql ) : return ( u'set search_path' in sql . lower ( ) )
determines if the search_path should be refreshed by checking if the sql has set search_path .