Skip to content

Commit

Permalink
Revert method name change
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanharan committed Oct 17, 2023
1 parent 5435d8a commit 21952df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def identity_columns(table_name)

# === SQLServer Specific (Selecting) ============================ #

def raw_select(sql, conn, options = {})
def _raw_select(sql, conn, options = {})
handle = internal_raw_execute(sql, conn)

handle_to_names_and_values(handle, options)
Expand Down
4 changes: 2 additions & 2 deletions lib/active_record/connection_adapters/sqlserver_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def version_year
end

def sqlserver_version
@sqlserver_version ||= raw_select("SELECT @@version", @raw_connection, fetch: :rows).first.first.to_s
@sqlserver_version ||= _raw_select("SELECT @@version", @raw_connection, fetch: :rows).first.first.to_s
end

private
Expand All @@ -526,7 +526,7 @@ def configure_connection
@raw_connection.execute("SET TEXTSIZE 2147483647").do
@raw_connection.execute("SET CONCAT_NULL_YIELDS_NULL ON").do

@spid = raw_select("SELECT @@SPID", @raw_connection, fetch: :rows).first.first
@spid = _raw_select("SELECT @@SPID", @raw_connection, fetch: :rows).first.first

initialize_dateformatter
use_database
Expand Down

0 comments on commit 21952df

Please sign in to comment.