Sha256: bdfe358b202f4e1878488118456308c9323d5b84fc9fb2320462f1a5489d891a
Contents?: true
Size: 1.1 KB
Versions: 19
Compression:
Stored size: 1.1 KB
Contents
module ActiveRecord module ConnectionAdapters module SQLServerCoreExtensions module ODBC module TimeStamp def to_sqlserver_string date, time, nanoseconds = to_s.split(' ') "#{date} #{time}.#{sprintf("%03d",nanoseconds.to_i/1000000)}" end end module Statement def finished? begin connected? false rescue ::ODBC::Error => e true end end end module Database def run_block(*args) yield sth = run(*args) sth.drop end end end end end end ODBC::TimeStamp.send :include, ActiveRecord::ConnectionAdapters::SQLServerCoreExtensions::ODBC::TimeStamp if defined?(ODBC::TimeStamp) ODBC::Statement.send :include, ActiveRecord::ConnectionAdapters::SQLServerCoreExtensions::ODBC::Statement if defined?(ODBC::Statement) ODBC::Database.send :include, ActiveRecord::ConnectionAdapters::SQLServerCoreExtensions::ODBC::Database if defined?(ODBC::Database)
Version data entries
19 entries across 19 versions & 1 rubygems