def check_version(expected, found):
    if is_sequence(expected):
        is_good = found in expected
    else:
        is_good = (found == expected)

    if not is_good:
        error = "Version '{0}' is invalid. Expected {1}."
        error = error.format(found, expected)
        raise ValueError(error)
Logs an sql query to the logger at debug level.
dataset/ETHPy150Open STIXProject/python-stix/stix/utils/__init__.py/check_version--crossover with--dataset/ETHPy150Open GeoscienceAustralia/agdc/src/abstract_ingester/ingest_db_wrapper.py/IngestDBWrapper.log_sql