del param[fromname]
if self.dialect.auto_setinputsizes:
- self.set_input_sizes(quoted_bind_names)
+ # cx_oracle really has issues when you setinputsizes
+ # on String, including that outparams/RETURNING
+ # breaks for varchars
+ self.set_input_sizes(quoted_bind_names,
+ exclude_types=[
+ self.dialect.dbapi.STRING,
+ self.dialect.dbapi.UNICODE])
if len(self.compiled_parameters) == 1:
for key in self.compiled.binds:
assert row[table.c.persons] == row['persons'] == 5
assert row[table.c.full] == row['full'] == True
- @testing.fails_on('oracle+cx_oracle', 'unknown DBAPI issue')
- def test():
- assert row[table.c.goofy] == row['goofy'] == "FOOsomegoofyBAR"
- test()
+ eq_(row[table.c.goofy], row['goofy'])
+ eq_(row['goofy'], "FOOsomegoofyBAR")
@testing.fails_on('firebird', "fb can't handle returning x AS y")
@testing.exclude('firebird', '<', (2, 0), '2.0+ feature')
@testing.fails_on('firebird', "fb/kintersbasdb can't handle the bind params")
@testing.fails_on('oracle+zxjdbc', "JDBC driver bug")
- @testing.fails_on('oracle+cx_oracle', "unknown DBAPI issue")
@testing.exclude('firebird', '<', (2, 0), '2.0+ feature')
@testing.exclude('postgresql', '<', (8, 2), '8.2+ feature')
def test_anon_expressions(self):