Changeset 6449
- Timestamp:
- 03/19/07 12:49:23 (2 years ago)
- Files:
-
- trunk/activerecord/CHANGELOG (modified) (1 diff)
- trunk/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/CHANGELOG
r6444 r6449 1 1 *SVN* 2 3 * SQLite: binary escaping works with $KCODE='u'. #7862 [tsuka] 2 4 3 5 * Base#to_xml supports serialized attributes. #7502 [jonathan] trunk/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
r6091 r6449 69 69 class << self 70 70 def string_to_binary(value) 71 value.gsub(/\0|\%/ ) do |b|71 value.gsub(/\0|\%/n) do |b| 72 72 case b 73 73 when "\0" then "%00" … … 78 78 79 79 def binary_to_string(value) 80 value.gsub(/%00|%25/ ) do |b|80 value.gsub(/%00|%25/n) do |b| 81 81 case b 82 82 when "%00" then "\0"