Skip to content

Commit 4a2e199

Browse files
author
Anna
committed
removed extra spaces
1 parent a733956 commit 4a2e199

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

lib/active_record/connection_adapters/sqlserver_adapter.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def initialize(name, default, sql_type = nil, null = true, sqlserver_options = {
6363
end
6464

6565
class << self
66-
66+
# TODO: I think this has problems with ruby 2.0
6767
def string_to_binary(value)
6868
"0x#{value.unpack("H*")[0]}"
6969
end
@@ -206,13 +206,6 @@ def initialize(connection, logger, pool, config)
206206
@connection_options = config
207207
connect
208208
@database_version = select_value 'SELECT @@version', 'SCHEMA'
209-
210-
# db_ver= "Microsoft SQL Server 2012 - 11.0.2100.60 (X64)
211-
# Feb 10 2012 19:39:15
212-
# Copyright (c) Microsoft Corporation
213-
# Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
214-
# "
215-
#TODO
216209
@database_year = begin
217210
if @database_version =~ /Azure/i
218211
@sqlserver_azure = true
@@ -321,7 +314,7 @@ def pk_and_sequence_for(table_name)
321314
end
322315

323316
def primary_key(table_name)
324-
identity_column(table_name).try(:name) || schema_cache .columns(table_name).detect(&:is_primary?).try(:name)
317+
identity_column(table_name).try(:name) || schema_cache.columns(table_name).detect(&:is_primary?).try(:name)
325318
end
326319

327320
# === SQLServer Specific (DB Reflection) ======================== #

0 commit comments

Comments
 (0)