this is technically a bug in the DB2 dialect as they should be setting the
"max_identifier_length" attribute correctly on their dialect. You can
set it manually:
engine = create_engine(...)
engine.dialect.max_identifier_length = 30
Sorry to dig up an old thread. On DB2 for z/OS, the identifier length limit is 30 for column and column alias, and 128 for almost everything else:I can set `label_length = 30` to apply the limit for column alias. What would be the best way to apply the limit for column only, without affecting table, constraint, etc?