I've been testing it inside Wildfly and SQL Server. The container is not important, but the databas is. You'll need to deploy your example-ds.xml with the appropriate credentials.
When the deployment starts you'll get the error:
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The data types varbinary and date are incompatible in the equal to operator.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:216)
when the following query runs:
SELECT f FROM TestEntity f WHERE (:namedParam IS NULL OR :namedParam = f.val)
|