lib/sequel/adapters/tinytds.rb in sequel-3.47.0 vs lib/sequel/adapters/tinytds.rb in sequel-3.48.0

- old
+ new

@@ -5,16 +5,10 @@ module TinyTDS class Database < Sequel::Database include Sequel::MSSQL::DatabaseMethods set_adapter_scheme :tinytds - # Choose whether to use unicode strings on initialization - def initialize(*) - super - set_mssql_unicode_strings - end - # Transfer the :user option to the :username option. def connect(server) opts = server_opts(server) opts[:username] = opts[:user] c = TinyTds::Client.new(opts) @@ -92,9 +86,14 @@ nil end private + # Choose whether to use unicode strings on initialization + def adapter_initialize + set_mssql_unicode_strings + end + # For some reason, unless you specify a column can be # NULL, it assumes NOT NULL, so turn NULL on by default unless # the column is a primary key column. def column_list_sql(g) pks = []