提交 01e67316 编写于 作者: C Carlos Antonio da Silva

Improve changelog entries in AR

Describe better the changes related to raising errors with empty
array/hash values in where clauses.

[ci skip]
上级 85e1c4a0
## Rails 4.0.0 (unreleased) ##
* Change behaviour with empty array in where clause,
the SQL generated when when were passed an empty array was insecure in some cases
* Raise `ArgumentError` instead of generating `column IN (NULL)` SQL when
empty array is used in where clause value.
Roberto Miranda
*Roberto Miranda*
* Raise ArgumentError instead of generate invalid SQL when empty hash is used in where clause value
* Raise `ArgumentError` instead of generating invalid SQL when empty hash is
used in where clause value.
Roberto Miranda
*Roberto Miranda*
* Quote numeric values being compared to non-numeric columns. Otherwise,
in some database, the string column values will be coerced to a numeric
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册