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 sqlalch...@googlegroups.com.
> To unsubscribe from this group, send email to 
> sqlalchemy+unsubscr...@googlegroups.com.
> 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 sqlalch...@googlegroups.com.
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to