fixed issue 1397, fixed CHAR_LENGTH in Firebird thanks Villas