Commit c20760d9 authored by Pavel's avatar Pavel

Converting "NULL" values to nil in results

Changed max_message_size to 8192 to (hopefully) avoid broken pipe errors
parent 1d7f2673
......@@ -516,6 +516,7 @@ module ActiveRecord
fields.each do |f|
cols = hdl.fetch_column_name(f)
cols.each_with_index do |val, i|
val = nil if val == 'NULL'
result[i][f] = val
end
end
......
......@@ -65,7 +65,7 @@ class MonetDBConnection
@@HOUR = 3600
# maximum size (in bytes) for a monetdb message to be sent
@@MAX_MESSAGE_SIZE = 32766
@@MAX_MESSAGE_SIZE = 8192
# endianness of a message sent to the server
@@CLIENT_ENDIANNESS = "BIG"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment