the idiomatic solution would be:
class RowID(Unicode):
pass
from sqlalchemy.ext.compiler import compiles
@compiles(RowId):
def compile_rowid(compiler, element, **kw):
return "ROWID"
we should add ROWID to the oracle dialect.
On Jul 29, 2010, at 12:54 PM, Kent wrote:
> I worked out this solution:
>
> class RowID(Unicode):
> def _compiler_dispatch(self, type_):
> return "ROWID"
>
>
> Please let me know if there are any obvious implications that I may
> have overlooked.
>
> Thanks
>
> --
> 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.
>
--
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.