Tests for maximum identifier length are incorrect

Issue #589 resolved
Former user created an issue

I'm using 0.3.8. In ansisql.py, the tests for max_identifier_length() are of the form:

if len(bind_name) >= self.dialect.max_identifier_length():

However, this prohibits me from having identifiers that are exactly max_identifier_length() long. I'm using Oracle, and I have columns that are 30 characters long. max_identifier_length() returns 30 for Oracle, as it should. However, ansisql.py truncates the names because the test is >=, not >. This prevents me from accessing these columns.

The patch is attached.

Comments (2)

  1. Log in to comment