Fixed columns casting for Oracle and PostgreSQL when filtering.

Check each column type and if it's a string set its max size instead of the default 255.
Because PostgreSQL and Oracle don't allow to cast CHAR type without a max length parameter.