SQLAlchemy/Oracle generates alias indentifiers too long for tables when the column name is exactly 30 characters ?

Issue #1309 resolved
Former user created an issue

DatabaseError: (DatabaseError) ORA-00972: identifier is too long

The generated sql contains an alias identifier 32 characters long, the maximum allowed by oracle is 30.

Here is a sample of generated sql: 'SELECT curation.tmx_relationship_tag.id AS curation_tmx_relationshi_1, curation.tmx_relationship_tag.identifier AS curation_tmx_relationshi_2, ... tmx_entity_tag_1.last_update_work_unit_id AS tmx_entity_tag_1_last_up_13 FROM curation.tmx_relationship_tag LEFT OUTER JOIN curation.tmx_relationship_tag_children tmx_relationship_tag_children_1 ON curation.tmx_relationship_tag.id = tmx_relationship_tag_children_1.relationship_tag_id LEFT OUTER JOIN curation.tmx_entity_tag tmx_entity_tag_1 ON tmx_entity_tag_1.id = tmx_relationship_tag_children_1.entity_tag_id WHERE :param_1 = curation.tmx_relationship_tag.document_id

Comments (7)

  1. Mike Bayer repo owner

    I'm behind a firewall and can't commit, but ignore my previous comment. the attached patch should be committed to resolve this issue.

  2. Former user Account Deleted
    • changed status to open
    • removed status

    I still get the same problem when using eager loading using SQLAlchemy 0.5.4p2.

  3. Log in to comment