Module: Sequel::ADO::MSSQL::DatabaseMethods
- Includes:
- MSSQL::DatabaseMethods
- Defined in:
- lib/sequel/adapters/ado/mssql.rb
Constant Summary
Constants included from MSSQL::DatabaseMethods
MSSQL::DatabaseMethods::FOREIGN_KEY_ACTION_MAP
Instance Attribute Summary
Attributes included from MSSQL::DatabaseMethods
#like_without_collate, #mssql_unicode_strings
Instance Method Summary collapse
Methods included from MSSQL::DatabaseMethods
#call_mssql_sproc, #database_type, #foreign_key_list, #freeze, #global_index_namespace?, #indexes, #server_version, #supports_partial_indexes?, #supports_savepoints?, #supports_transaction_isolation_levels?, #supports_transactional_ddl?, #tables, #views, #with_advisory_lock
Instance Method Details
#execute_dui(sql, opts = OPTS) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/sequel/adapters/ado/mssql.rb', line 11 def execute_dui(sql, opts=OPTS) return super unless @opts[:provider] synchronize(opts[:server]) do |conn| begin sql = "SET NOCOUNT ON; #{sql}; SELECT @@ROWCOUNT" rst = log_connection_yield(sql, conn){conn.Execute(sql)} rst.GetRows[0][0] rescue ::WIN32OLERuntimeError => e raise_error(e) end end end |