Commit 04ee5ee2 authored by catherine's avatar catherine

Get adapter to work with ruby 2

parent 69abef7b
Gem::Specification.new do |s|
s.required_ruby_version = '>= 1.8.0'
s.required_ruby_version = '>= 2.1.0'
s.name = %q{activerecord-monetdb-adapter}
s.version = "0.1"
s.version = "0.2"
s.date = %q{2009-05-18}
s.authors = ["G Modena"]
s.email = %q{gm@cwi.nl}
......
#MDB_SYS_SCHEMA = "" # initial value [before fix] - I.T.
MDB_SYS_SCHEMA = "sys." # explicitly specifying system schema
#MDB_NON_SYSTEM_TABLES_ONLY = "" # initial value [before fix] - I.T.
MDB_NON_SYSTEM_TABLES_ONLY = "and system = false" # ignoring columns from system tables (in order not to mix in 'default_schema' and other fields from sys.users to OLDS users table)
MDB_LOG_USER_QUERIES = false
# NOTE: critical fix: lib/MonetDBData.rb, line 280:
# fields << f.gsub(/\\/, '').gsub(/^"/,'').gsub(/"$/,'').gsub(/\"/, '')
# should be
# fields << f.gsub(/\\n/, "\n").gsub(/\\/, '').gsub(/^"/,'').gsub(/"$/,'').gsub(/\"/, '')
# in order to treat line breaks correctly
\ No newline at end of file
......@@ -254,8 +254,7 @@
def query(q="")
if @connection != nil
@data = MonetDBData.new(@connection)
(puts; puts q; puts) if MDB_LOG_USER_QUERIES # defined in adapter/lib/active_record/connection_adapter/monetdb_adapter_config.rb
@data.execute(q)
@data.execute(q)
end
return @data
end
......
This diff is collapsed.
This diff is collapsed.
Gem::Specification.new do |s|
s.required_ruby_version = '>= 1.8.0'
s.required_ruby_version = '>= 2.1.0'
s.name = %q{ruby-monetdb-sql}
s.version = "0.1"
s.version = "0.2"
s.date = %q{2009-04-27}
s.authors = ["G Modena"]
s.email = %q{gm@cwi.nl}
......
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