Oracle dialect generates too long index names

Issue #820 resolved
Former user created an issue

This issue exists in 3.11

in _execute raise exceptions.SQLError(context.statement, context.parameters, e) sqlalchemy.exceptions.SQLError: (DatabaseError) ORA-00972: identifier is too long 'CREATE INDEX ix_r_5_0_was_r_notify_user_name ON r_5_0_was_r_notify (user_name)' {}

This patch works around the issue by truncating the index to the max_identifier_length() specified by the dialect.

Comments (7)

  1. Former user Account Deleted

    Added patch against SA 0.4 (pardon the dyslexia) autosetinputsizes is not really part of the change, however I seem to require it with Oracle 10g with UTF8 (testing on Win32 if that makes a difference).

  2. Former user Account Deleted

    (original author: ged) Doesn't this problem also exists for other DBMS? (I think I've had it with Postgres) and there is also a similar problem with table names (see ticket 571).

  3. Log in to comment