cx_Oracle seems to be DB-API compliant, no need to stuff about with
those pesky oracle data-dictionary views. I did this:

def get_table_description(cursor, table_name):
    "should return a DB-API cursor.description alike sequence"
    cursor.execute("SELECT * FROM %s WHERE 1=2" %
quote_name(table_name))
    return cursor.description

And it just worked. I can now introspect my Oracle App, and get a great
big ugly models.py without throwing any errors. Cool :)

I humbly suggest this change could be made in trunk.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to