示例#1
0
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")
    )
示例#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'))
    )
示例#3
0
def _has_mysql_fully_case_sensitive():
    return testing.against('mysql') and \
            testing.db.dialect._server_casing == 0
示例#4
0
def _has_mysql_on_windows():
    return testing.against('mysql') and \
            testing.db.dialect._server_casing == 1
示例#5
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'))
    )
示例#6
0
def _has_mysql_fully_case_sensitive():
    return testing.against('mysql') and \
            testing.db.dialect._server_casing == 0
示例#7
0
def _has_mysql_on_windows():
    return testing.against('mysql') and \
            testing.db.dialect._server_casing == 1
示例#8
0
def _has_mysql_fully_case_sensitive():
    return testing.against('mysql') and \
            testing.db.dialect._detect_casing(testing.db) == 0
示例#9
0
def _has_mysql_on_windows():
    return testing.against('mysql') and \
            testing.db.dialect._detect_casing(testing.db) == 1