Hibernate version: 1.2.1
I'm trying to run an HQL query with a parameter that's compared to an Oracle NCHAR column. The query looks something like
Code:
FROM Foo
WHERE Foo.Bar = :bar
If the bar parameter is set to something like 'bar', and the Oracle NCHAR column is longer than the parameter text, it does not match. It does match if I right-pad the parameter value to the column length.
I've tried this using the same schema (NCHAR column) in SQL Server and it works fine. Using a literal value, like this:
Code:
FROM Foo
WHERE Foo.Bar = 'bar'
works against the same Oracle database.