|
From: Denis B. (JIRA) <nh...@gm...> - 2010-10-05 20:05:45
|
Minor patch for BinaryLogicOperatorNode (NHibernate.Hql.Ast.ANTLR.Tree)
------------------------------------------------------------------------
Key: NH-2365
URL: http://216.121.112.228/browse/NH-2365
Project: NHibernate
Issue Type: Patch
Components: Core
Affects Versions: 2.1.2.GA
Reporter: Denis Bykov
Priority: Major
Attachments: nh_2.1.2_BinaryLogicOperatorNode.patch
Problem (fixed by this patch) take place when you use in "where" part of your HQL an entity, represented by multicolumn custom/composite user type. Example: "delete from Something entity where entity.Property = :SomePropertyValue", where "entity.Property" is mapped by 2-column composite user type.
Wrong behaviour is provoked by a little error in string splitting in BinaryLogicOperatorNode.ExtractMutationTexts method. It uses StringHelper.Split internally. StringHelper.Split interpret "separators" parameter like char array, therefore it split string that looks like "a, b" with separators=", " into 3 parts: "a", "", "b", and for BinaryLogicOperatorNode.ExtractMutationTexts method this behaviour is incorrect.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://216.121.112.228/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
|