Changeset 2351
- Timestamp:
- 09/26/05 21:04:36 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
r2339 r2351 62 62 class SQLiteColumn < Column #:nodoc: 63 63 def string_to_binary(value) 64 value.gsub(/ (\0|\%)/) do65 case $164 value.gsub(/\0|\%/) do |b| 65 case b 66 66 when "\0" then "%00" 67 when "%" then "%25"67 when "%" then "%25" 68 68 end 69 69 end … … 71 71 72 72 def binary_to_string(value) 73 value.gsub(/ (%00|%25)/) do74 case $173 value.gsub(/%00|%25/) do |b| 74 case b 75 75 when "%00" then "\0" 76 76 when "%25" then "%"