"'F' is a String and the query is expecting an smallint-value, because I guess, that char is mapped to some integer values." . . . . .