Description

The fix for NH-2528: Throw exception instead of silently truncate string and blob dataClosed prevents parameters being silently truncated by throwing an error. When a LIKE clause is generated, the sql-type has a size corresponding to the mapping of the property, but the parameter should be allowed to be 2 characters larger to allow a '%' at either side.

Environment

None

Activity

Show:

Oskar Berggren May 30, 2012 at 6:31 PM

Closing issues fixed in 3.3.1.CR1.

Richard Brown January 26, 2012 at 4:04 PM

A nicer fix may be to get the ICriteria/HQL generation to not set the SqlType.Length for LIKE clauses.

Richard Brown January 26, 2012 at 4:02 PM

Changed SQL parameter lengths set in the driver to use the defaults for the type (rather than a specific length).

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Richard Brown

Reporter

Richard Brown

Components

Fix versions

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created January 26, 2012 at 2:16 PM
Updated September 26, 2017 at 11:43 AM
Resolved January 26, 2012 at 4:02 PM
Who's Looking?