def identifies(id, ref):
 return ((id == ref.alias) or (id == ref.name) or (ref.schema and (id == ((ref.schema + '.') + ref.name))))

def identifies ( id , ref ) : return ( ( id == ref . alias ) or ( id == ref . name ) or ( ref . schema and ( id == ( ( ref . schema + '.' ) + ref . name ) ) ) )
returns true if string id matches tablereference ref .