Skip to content

Commit 729db2d

Browse files
committed
Consistent with our NS. Use SQLServer vs Sqlserver.
1 parent 8d07d1b commit 729db2d

File tree

64 files changed

+123
-123
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+123
-123
lines changed

CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
* Remove our log_info_schema_queries config since we are not hooking properly into AR's 'SCHEMA' names.
107107
* Properly use 'SCHEMA' name arguement in DB statements to comply with ActiveRecord::ExplainSubscriber::IGNORED_PAYLOADS.
108108
* Make use of the new ConnectionAdapters::SchemaCache for our needs.
109-
* New Sqlserver::Utils class for out helpers. Moved table name unquotes there.
109+
* New SQLServer::Utils class for out helpers. Moved table name unquotes there.
110110

111111

112112
## v3.1.5
@@ -367,7 +367,7 @@
367367

368368
## v2.2.14 (2009-03-17)
369369

370-
* Back passing tests on 2.2 work. Includes: (1) Created new test helpers that check ActiveRecordversion strings so we can conditionally run 2.2 and 2.3 tests. (2) Making TransactionTestSqlserver use Ship vsBird model. Also made it conditional run a few blocks for different versions of ActiveRecord. (3) PreviousJoinDependency#aliased_table_name_for is now only patched in ActiveRecord equal or greater than 2.3. [Ken Collins]
370+
* Back passing tests on 2.2 work. Includes: (1) Created new test helpers that check ActiveRecordversion strings so we can conditionally run 2.2 and 2.3 tests. (2) Making TransactionTestSQLServer use Ship vsBird model. Also made it conditional run a few blocks for different versions of ActiveRecord. (3) PreviousJoinDependency#aliased_table_name_for is now only patched in ActiveRecord equal or greater than 2.3. [Ken Collins]
371371
* Implement new savepoint support [Ken Collins]http://rails.lighthouseapp.com/projects/8994/tickets/383http://www.codeproject.com/KB/database/sqlservertransactions.aspx
372372
* Coerce NestedScopingTest#test_merged_scoped_find to use correct regexp for adapter. [Ken Collins]
373373
* Implement a custom ActiveRecord::Associations::ClassMethods::JoinDependency::JoinAssociation#aliased_table_name_formethod that uses a Regexp.escape so that table/column quoting does not get ignored. [Ken Collins]
@@ -417,7 +417,7 @@
417417
## v2.2.5 (2009-01-04)
418418

419419
* Added a log_info_schema_queries class attribute and make all queries to INFORMATION_SCHEMA silent bydefault. [Ken Collins]
420-
* Fix millisecond support in datetime columns. ODBC::Timestamp incorrectly takes SQL Server millisecondsand applies them as nanoseconds. We cope with this at the DBI layer by using SQLServerDBI::Type::SqlserverTimestampclass to parse the before type cast value appropriately. Also update the adapters #quoted_date methodto work more simply by converting ruby's #usec milliseconds to SQL Server microseconds. [Ken Collins]
420+
* Fix millisecond support in datetime columns. ODBC::Timestamp incorrectly takes SQL Server millisecondsand applies them as nanoseconds. We cope with this at the DBI layer by using SQLServerDBI::Type::SQLServerTimestampclass to parse the before type cast value appropriately. Also update the adapters #quoted_date methodto work more simply by converting ruby's #usec milliseconds to SQL Server microseconds. [Ken Collins]
421421
* Core extensions for ActiveRecord now reflect on the connection before doing SQL Server things. Nowthis adapter is compatible for using with other adapters. [Ken Collins]
422422

423423

Guardfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ require_relative 'test/support/paths_sqlserver'
33
notification :terminal_notifier if Guard::Notifier::TerminalNotifier.available?
44
ignore %r{debug\.log}
55

6-
ar_lib = File.join ARTest::Sqlserver.root_activerecord, 'lib'
7-
ar_test = File.join ARTest::Sqlserver.root_activerecord, 'test'
6+
ar_lib = File.join ARTest::SQLServer.root_activerecord, 'lib'
7+
ar_test = File.join ARTest::SQLServer.root_activerecord, 'test'
88

99
guard :minitest, {
1010
all_on_start: false,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ EXPLAIN for: SELECT [cars].* FROM [cars] WHERE [cars].[id] = 1
178178
You can configure a few options to your needs. First is the max column width for the logged table. The default value is 50 characters. You can change it like so.
179179

180180
```ruby
181-
ActiveRecord::ConnectionAdapters::Sqlserver::Showplan::PrinterTable.max_column_width = 500
181+
ActiveRecord::ConnectionAdapters::SQLServer::Showplan::PrinterTable.max_column_width = 500
182182
```
183183

184184
Another configuration is the showplan option. Some might find the XML format more useful. If you have Nokogiri installed, we will format the XML string. I will gladly accept pathches that make the XML printer more useful!

Rakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require_relative 'test/support/paths_sqlserver'
44
def test_files
55
return ENV['TEST_FILES'].split(',') if ENV['TEST_FILES']
66
sqlserver_cases = Dir.glob('test/cases/**/*_test_sqlserver.rb')
7-
ar_cases = Dir.glob("#{ARTest::Sqlserver.root_activerecord}/test/cases/**/*_test.rb")
7+
ar_cases = Dir.glob("#{ARTest::SQLServer.root_activerecord}/test/cases/**/*_test.rb")
88
if ENV['SQLSERVER_ONLY']
99
sqlserver_cases
1010
elsif ENV['ACTIVERECORD_ONLY']
@@ -22,7 +22,7 @@ namespace :test do
2222
%w(dblib odbc).each do |mode|
2323

2424
Rake::TestTask.new(mode) do |t|
25-
t.libs = ARTest::Sqlserver.test_load_paths
25+
t.libs = ARTest::SQLServer.test_load_paths
2626
t.test_files = test_files
2727
t.verbose = true
2828
end
@@ -48,7 +48,7 @@ namespace :profile do
4848
Dir.glob('test/profile/*_profile_case.rb').sort.each do |test_file|
4949
profile_case = File.basename(test_file).sub('_profile_case.rb', '')
5050
Rake::TestTask.new(profile_case) do |t|
51-
t.libs = ARTest::Sqlserver.test_load_paths
51+
t.libs = ARTest::SQLServer.test_load_paths
5252
t.test_files = [test_file]
5353
t.verbose = true
5454
end

activerecord-sqlserver-adapter.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require "active_record/connection_adapters/sqlserver/version"
44

55
Gem::Specification.new do |spec|
66
spec.name = 'activerecord-sqlserver-adapter'
7-
spec.version = ActiveRecord::ConnectionAdapters::Sqlserver::Version::VERSION
7+
spec.version = ActiveRecord::ConnectionAdapters::SQLServer::Version::VERSION
88
spec.platform = Gem::Platform::RUBY
99
spec.authors = ['Ken Collins', 'Anna Carey', 'Will Bond', 'Murray Steele', 'Shawn Balestracci', 'Joe Rafaniello', 'Tom Ward']
1010
spec.email = ['ken@metaskills.net', 'will@wbond.net']

lib/active_record/connection_adapters/sqlserver/core_ext/active_record.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ActiveRecord
22
module ConnectionAdapters
3-
module Sqlserver
3+
module SQLServer
44
module CoreExt
55
module ActiveRecord
66
extend ActiveSupport::Concern
@@ -34,4 +34,4 @@ def coerce_sqlserver_time(*attributes)
3434
end
3535
end
3636

37-
ActiveRecord::Base.send :include, ActiveRecord::ConnectionAdapters::Sqlserver::CoreExt::ActiveRecord
37+
ActiveRecord::Base.send :include, ActiveRecord::ConnectionAdapters::SQLServer::CoreExt::ActiveRecord

lib/active_record/connection_adapters/sqlserver/core_ext/explain.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ActiveRecord
22
module ConnectionAdapters
3-
module Sqlserver
3+
module SQLServer
44
module CoreExt
55
module Explain
66
SQLSERVER_STATEMENT_PREFIX = 'EXEC sp_executesql '
@@ -34,5 +34,5 @@ def unprepare_sqlserver_statement(sql)
3434
end
3535
end
3636

37-
ActiveRecord::Base.extend ActiveRecord::ConnectionAdapters::Sqlserver::CoreExt::Explain
38-
ActiveRecord::Relation.send :include, ActiveRecord::ConnectionAdapters::Sqlserver::CoreExt::Explain
37+
ActiveRecord::Base.extend ActiveRecord::ConnectionAdapters::SQLServer::CoreExt::Explain
38+
ActiveRecord::Relation.send :include, ActiveRecord::ConnectionAdapters::SQLServer::CoreExt::Explain

lib/active_record/connection_adapters/sqlserver/core_ext/odbc.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ActiveRecord
22
module ConnectionAdapters
3-
module Sqlserver
3+
module SQLServer
44
module CoreExt
55
module ODBC
66
module Statement
@@ -24,5 +24,5 @@ def run_block(*args)
2424
end
2525
end
2626

27-
ODBC::Statement.send :include, ActiveRecord::ConnectionAdapters::Sqlserver::CoreExt::ODBC::Statement
28-
ODBC::Database.send :include, ActiveRecord::ConnectionAdapters::Sqlserver::CoreExt::ODBC::Database
27+
ODBC::Statement.send :include, ActiveRecord::ConnectionAdapters::SQLServer::CoreExt::ODBC::Statement
28+
ODBC::Database.send :include, ActiveRecord::ConnectionAdapters::SQLServer::CoreExt::ODBC::Database

lib/active_record/connection_adapters/sqlserver/core_ext/relation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ActiveRecord
22
module ConnectionAdapters
3-
module Sqlserver
3+
module SQLServer
44
module CoreExt
55
module Relation
66
private
@@ -14,4 +14,4 @@ def tables_in_string(string)
1414
end
1515
end
1616

17-
ActiveRecord::Relation.send :include, ActiveRecord::ConnectionAdapters::Sqlserver::CoreExt::Relation
17+
ActiveRecord::Relation.send :include, ActiveRecord::ConnectionAdapters::SQLServer::CoreExt::Relation

lib/active_record/connection_adapters/sqlserver/database_limits.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module ActiveRecord
22
module ConnectionAdapters
3-
module Sqlserver
3+
module SQLServer
44
module DatabaseLimits
55
def table_alias_length
66
128

0 commit comments

Comments
 (0)