[sql] determine DB2 text string length