実運用に使うことを考えて、OpenBaseを使おうと思っているのですが、バグを見つけたので修正方法を書いておきます。
まだRubyの文法すらよくわかっていないので暫定です。
このファイルです。
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/openbase_adapter.rb:259
def default_value(value)
(略)
return nil if value.nil? # この行を追加
return nil if value.empty?
# Otherwise return what we got from OpenBase
# and hope for the best...
return value
end
activerecord-openbase-adapterは、0.8.3のようです。
#gem list ではopenbaseアダプターは表示されないので不明。
そのうちまとめます。
【関連する記事】

