On Sep 26, 2008, at 9:39 AM, picoplex wrote:
> > I have been porting an app from Windows to linux. > > Whereas the windows app using SA 0.4.5 worked fine, I had a SA erro > with the installed version on Linux - SA 0.4.0 (AttributeError: 'list' > object has no attribute 'values' in get_children in expression.py). > > I therefore upgraded SA on linux to the latest version (0.5.0rc1), > but now get another SA error which did not occur on 0.4.0: > > In processing the result of a query in types.py it is trying to call > decode on a cx_Oracle LOB value, which does not have an attribute of > decode. (cx_Oracle is v4.4) > > def result_processor(self, dialect): > if self.convert_unicode or dialect.convert_unicode: > def process(value): > if value is not None and not isinstance(value, > unicode): > return value.decode(dialect.encoding) > else: > return value > return process > else: > return None > > > (I have no idea whether the previous error was fixed by the upgrade as > I can't get to that point now) > > Any insights on how to proceed? the OracleText or OracleBinary type should be in use for any LOB values. Would need to see how you are formulating your query to determine why this is not the case. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en -~----------~----~----~----~------~----~------~--~---
