[PATCH] Derby handling of binary/date/time fields. hsqldb handling of binary
fields.
------------------------------------------------------------------------------------
Key: JRUBY-2967
URL: http://jira.codehaus.org/browse/JRUBY-2967
Project: JRuby
Issue Type: Bug
Components: ActiveRecord-JDBC
Affects Versions: ActiveRecord-JDBC 0.8.2
Reporter: Daniel Sheppard
Attachments: db_fixes.patch
This patch puts the jdbc_adapter.JdbcDerbySpec class back in sync with the
activerecord core. This fixes:
- Allows ActiveSupport::TimeWithZone times to be assigned to an attribute and
saved.
- Allows saving of DateTime objects to the db.
Also adds tests (for all dbs) to check the reading and writing of
date/datetime/time/timewithzone objects.
Code in jdbc_adapter/jdbc_derby.rb is removed as the core activerecord code
covers this.
Further changes to allow writing of blobs > 16K to the database (clobs have the
same issue at 32K, can be fixed in a similar manner).
Also fixed an issue in derby where quotes were being escaped in hex strings.
Also fixed the hsqldb binary handling, which fell over on low byte values (\000
was 0 instead of 00). Cut out a lot of code in the adapter as the core
activerecord code is better (or was just duplicated in the hsqldb code).
Tests showing failure included.
sqlite3 still fails the tests included in this patch.
--
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