no_support('sybase', 'not supported by database'),
])
+ @property
+ def non_native_boolean_unconstrained(self):
+ """target database is not native boolean and allows arbitrary integers
+ in it's "bool" column"""
+
+ return skip_if([
+ LambdaPredicate(
+ lambda config: against(config, "mssql"),
+ "SQL Server drivers / odbc seem to change their mind on this"
+ ),
+ LambdaPredicate(
+ lambda config: config.db.dialect.supports_native_boolean,
+ "native boolean dialect"
+ )
+ ])
+
@property
def standalone_binds(self):
"""target database/driver supports bound parameters as column expressions
)
- @testing.skip_if(lambda: testing.db.dialect.supports_native_boolean)
+ @testing.requires.non_native_boolean_unconstrained
def test_nonnative_processor_coerces_integer_to_boolean(self):
boolean_table = self.tables.boolean_table
with testing.db.connect() as conn: