def selectone(fn):
    """target driver must support the literal statement 'select 1'"""
    return _chain_decorators_on(
        fn,
        skip_if(lambda: testing.against('oracle'),
            "non-standard SELECT scalar syntax")
    )
Exemple #2
0
def english_locale_on_postgresql(fn):
    return _chain_decorators_on(
        fn,
        skip_if(lambda: testing.against('postgresql') \
                and not testing.db.scalar('SHOW LC_COLLATE').startswith('en'))
    )
Exemple #3
0
def _has_mysql_fully_case_sensitive():
    return testing.against('mysql') and \
            testing.db.dialect._server_casing == 0
Exemple #4
0
def _has_mysql_on_windows():
    return testing.against('mysql') and \
            testing.db.dialect._server_casing == 1
def english_locale_on_postgresql(fn):
    return _chain_decorators_on(
        fn,
        skip_if(lambda: testing.against('postgresql') \
                and not testing.db.scalar('SHOW LC_COLLATE').startswith('en'))
    )
def _has_mysql_fully_case_sensitive():
    return testing.against('mysql') and \
            testing.db.dialect._server_casing == 0
def _has_mysql_on_windows():
    return testing.against('mysql') and \
            testing.db.dialect._server_casing == 1
def _has_mysql_fully_case_sensitive():
    return testing.against('mysql') and \
            testing.db.dialect._detect_casing(testing.db) == 0
def _has_mysql_on_windows():
    return testing.against('mysql') and \
            testing.db.dialect._detect_casing(testing.db) == 1