).scalar()
eq_(round_decimal(ret, 9), result)
+ @testing.fails_on('postgresql+zxjdbc',
+ 'zxjdbc has no support for PG arrays')
@testing.provide_metadata
def test_arrays(self):
metadata = self.metadata
sess.add(foo)
sess.flush()
+ @testing.fails_on('+zxjdbc',
+ "Can't infer the SQL type to use for an instance "
+ "of org.python.core.PyList.")
@testing.provide_metadata
def test_tuple_flag(self):
metadata = self.metadata
__only_on__ = 'postgresql'
@testing.requires.python25
+ @testing.fails_on('postgresql+zxjdbc',
+ 'column "data" is of type uuid but expression is of type character varying')
@testing.fails_on('postgresql+pg8000', 'No support for UUID type')
def test_uuid_string(self):
import uuid
)
@testing.requires.python25
+ @testing.fails_on('postgresql+zxjdbc',
+ 'column "data" is of type uuid but expression is of type character varying')
@testing.fails_on('postgresql+pg8000', 'No support for UUID type')
def test_uuid_uuid(self):
import uuid
finally:
testing.db.dialect.supports_sane_rowcount = save
- @testing.emits_warning(r'.*does not support updated rowcount')
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support (update|delete)d rowcount')
def test_basic(self):
Foo = self.classes.Foo
else:
s1.commit()
- @testing.emits_warning(r'.*does not support updated rowcount')
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support (update|delete)d rowcount')
def test_bump_version(self):
"""test that version number can be bumped.
assert f1s2.id == f1s1.id
assert f1s2.value == f1s1.value
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support updated rowcount')
def test_merge_no_version(self):
Foo = self.classes.Foo
s1.commit()
eq_(f3.version_id, 3)
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support updated rowcount')
def test_merge_correct_version(self):
Foo = self.classes.Foo
s1.commit()
eq_(f3.version_id, 3)
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support updated rowcount')
def test_merge_incorrect_version(self):
Foo = self.classes.Foo
s1.merge, f2
)
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support updated rowcount')
def test_merge_incorrect_version_not_in_session(self):
Foo = self.classes.Foo
})
mapper(C, c, version_id_col=c.c.version_id)
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support updated rowcount')
def test_row_switch(self):
P = self.classes.P
session.add(P(id='P1', data="really a row-switch"))
session.commit()
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support updated rowcount')
def test_child_row_switch(self):
P, C = self.classes.P, self.classes.C
version_id_generator=lambda x:make_uuid(),
)
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support updated rowcount')
def test_row_switch(self):
P = self.classes.P
session.add(P(id='P1', data="really a row-switch"))
session.commit()
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support (update|delete)d rowcount')
def test_child_row_switch_one(self):
P, C = self.classes.P, self.classes.C
p.c = C(data='child row-switch')
session.commit()
+ @testing.emits_warning_on('+zxjdbc', r'.*does not support (update|delete)d rowcount')
def test_child_row_switch_two(self):
P = self.classes.P