def IdentifierRepr(identifier):
    """Return the representation of an identifier. In Oracle this means that
       if the identifier is all uppercase, it can be returned as is; otherwise,
       double quotes must be placed around it."""
    if identifier.isupper():
        return identifier
    return '"%s"' % identifier
