mysql string quoting fails with ArrayIndexOutofBoundsException
--------------------------------------------------------------
Key: JRUBY-2382
URL: http://jira.codehaus.org/browse/JRUBY-2382
Project: JRuby
Issue Type: Bug
Components: ActiveRecord-JDBC
Affects Versions: JRuby 1.1
Reporter: Jan Berkel
Attachments: quote_string.patch
JdbcMySQLSpec.quote_string fails when the strings's underlying ByteList.begin
!= 0. in this case the calculated offsets are wrong and the final append
operation results in an ArrayIndexOutofBoundsException (ByteList.append()
already takes the offset into account).
no testcase included as quote_string heavily depends on RubyString's internals
which is difficult to test from jruby testcases.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email