Wrong SqlType size set for LIKE statement

Description

The fix for 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:
Richard Brown
January 26, 2012, 4:02 PM

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

Richard Brown
January 26, 2012, 4:04 PM

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

Oskar Berggren
May 30, 2012, 6:31 PM

Closing issues fixed in 3.3.1.CR1.

Fixed

Assignee

Richard Brown

Reporter

Richard Brown

Labels

None

Components

Fix versions

Affects versions

Priority

Minor