activerecord-jdbc-alt-adapter 61.2.0-java → 61.3.0-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +5 -5
- data/lib/arjdbc/jdbc/adapter_java.jar +0 -0
- data/lib/arjdbc/mssql/schema_definitions.rb +14 -14
- data/lib/arjdbc/mssql/schema_statements.rb +4 -4
- data/lib/arjdbc/mssql/transaction.rb +2 -2
- data/lib/arjdbc/mssql/types/numeric_types.rb +2 -2
- data/lib/arjdbc/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 781349fe765b4a4f4120f56bffc438f5b0aed6c88eace2e2c0d06ae9f0c2e74e
|
4
|
+
data.tar.gz: 26e984b439b7525c5952aaf30890f05463e6e0f0d56e350a9cd2ec201e32ebfb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa7e6244bfbc98507d72bae0e5efd93c2da6bf7375e740d59bbdaf58cfa5908766e3a0e778fc1d2ac04508b19b7c70a54d69d7a701f5e26f19e54fca41ccb104
|
7
|
+
data.tar.gz: 0b3c681b353c0ec8cdaf45744cfba2684d989e38aef4bd501b198c91bf005c48df4f5efc9e3478ef6229ff082dad08e07dd701f1d81e644b527fff883adfe237
|
data/Gemfile
CHANGED
@@ -50,19 +50,19 @@ end
|
|
50
50
|
gem 'rake', '>= 11.1', require: nil
|
51
51
|
|
52
52
|
group :test do
|
53
|
-
gem 'test-unit',
|
54
|
-
gem 'test-unit-context',
|
53
|
+
gem 'test-unit', require: nil
|
54
|
+
gem 'test-unit-context', require: nil
|
55
55
|
gem 'mocha', '~> 1.2', require: false # Rails has '~> 0.14'
|
56
56
|
|
57
57
|
gem 'bcrypt', '~> 3.1.11', require: false
|
58
|
-
gem 'jdbc-mssql', '~>
|
58
|
+
gem 'jdbc-mssql', '~> 12.2.0', require: nil
|
59
59
|
# gem 'pry-debugger-jruby', platform: :jruby
|
60
60
|
end
|
61
61
|
|
62
62
|
group :rails do
|
63
63
|
group :test do
|
64
|
-
gem 'minitest',
|
65
|
-
gem 'minitest-excludes',
|
64
|
+
gem 'minitest', require: nil
|
65
|
+
gem 'minitest-excludes', require: nil
|
66
66
|
gem 'minitest-rg', require: nil
|
67
67
|
|
68
68
|
gem 'benchmark-ips', require: nil
|
Binary file
|
@@ -14,61 +14,61 @@ module ActiveRecord
|
|
14
14
|
|
15
15
|
# datetime with seconds always zero (:00) and without fractional seconds
|
16
16
|
def smalldatetime(*args, **options)
|
17
|
-
args.each { |name| column(name, :smalldatetime, options) }
|
17
|
+
args.each { |name| column(name, :smalldatetime, **options) }
|
18
18
|
end
|
19
19
|
|
20
20
|
# this is the old sql server datetime type, the precision is as follow
|
21
21
|
# xx1, xx3, and xx7
|
22
22
|
def datetime_basic(*args, **options)
|
23
|
-
args.each { |name| column(name, :datetime_basic, options) }
|
23
|
+
args.each { |name| column(name, :datetime_basic, **options) }
|
24
24
|
end
|
25
25
|
|
26
26
|
def real(*args, **options)
|
27
|
-
args.each { |name| column(name, :real, options) }
|
27
|
+
args.each { |name| column(name, :real, **options) }
|
28
28
|
end
|
29
29
|
|
30
30
|
def money(*args, **options)
|
31
|
-
args.each { |name| column(name, :money, options) }
|
31
|
+
args.each { |name| column(name, :money, **options) }
|
32
32
|
end
|
33
33
|
|
34
34
|
def smallmoney(*args, **options)
|
35
|
-
args.each { |name| column(name, :smallmoney, options) }
|
35
|
+
args.each { |name| column(name, :smallmoney, **options) }
|
36
36
|
end
|
37
37
|
|
38
38
|
def char(*args, **options)
|
39
|
-
args.each { |name| column(name, :char, options) }
|
39
|
+
args.each { |name| column(name, :char, **options) }
|
40
40
|
end
|
41
41
|
|
42
42
|
def varchar(*args, **options)
|
43
|
-
args.each { |name| column(name, :varchar, options) }
|
43
|
+
args.each { |name| column(name, :varchar, **options) }
|
44
44
|
end
|
45
45
|
|
46
46
|
def varchar_max(*args, **options)
|
47
|
-
args.each { |name| column(name, :varchar_max, options) }
|
47
|
+
args.each { |name| column(name, :varchar_max, **options) }
|
48
48
|
end
|
49
49
|
|
50
50
|
def text_basic(*args, **options)
|
51
|
-
args.each { |name| column(name, :text_basic, options) }
|
51
|
+
args.each { |name| column(name, :text_basic, **options) }
|
52
52
|
end
|
53
53
|
|
54
54
|
def nchar(*args, **options)
|
55
|
-
args.each { |name| column(name, :nchar, options) }
|
55
|
+
args.each { |name| column(name, :nchar, **options) }
|
56
56
|
end
|
57
57
|
|
58
58
|
def ntext(*args, **options)
|
59
|
-
args.each { |name| column(name, :ntext, options) }
|
59
|
+
args.each { |name| column(name, :ntext, **options) }
|
60
60
|
end
|
61
61
|
|
62
62
|
def binary_basic(*args, **options)
|
63
|
-
args.each { |name| column(name, :binary_basic, options) }
|
63
|
+
args.each { |name| column(name, :binary_basic, **options) }
|
64
64
|
end
|
65
65
|
|
66
66
|
def varbinary(*args, **options)
|
67
|
-
args.each { |name| column(name, :varbinary, options) }
|
67
|
+
args.each { |name| column(name, :varbinary, **options) }
|
68
68
|
end
|
69
69
|
|
70
70
|
def uuid(*args, **options)
|
71
|
-
args.each { |name| column(name, :uniqueidentifier, options) }
|
71
|
+
args.each { |name| column(name, :uniqueidentifier, **options) }
|
72
72
|
end
|
73
73
|
end
|
74
74
|
|
@@ -138,7 +138,7 @@ module ActiveRecord
|
|
138
138
|
execute "ALTER TABLE #{quote_table_name(table_name)} DROP COLUMN #{quote_column_name(column_name)}"
|
139
139
|
end
|
140
140
|
|
141
|
-
def drop_table(table_name, options
|
141
|
+
def drop_table(table_name, **options)
|
142
142
|
# mssql cannot recreate referenced table with force: :cascade
|
143
143
|
# https://docs.microsoft.com/en-us/sql/t-sql/statements/drop-table-transact-sql?view=sql-server-2017
|
144
144
|
if options[:force] == :cascade
|
@@ -248,7 +248,7 @@ module ActiveRecord
|
|
248
248
|
(order_columns << super).join(', ')
|
249
249
|
end
|
250
250
|
|
251
|
-
def add_timestamps(table_name, options
|
251
|
+
def add_timestamps(table_name, **options)
|
252
252
|
if !options.key?(:precision) && supports_datetime_with_precision?
|
253
253
|
options[:precision] = 7
|
254
254
|
end
|
@@ -345,8 +345,8 @@ module ActiveRecord
|
|
345
345
|
MSSQL::SchemaCreation.new(self)
|
346
346
|
end
|
347
347
|
|
348
|
-
def create_table_definition(
|
349
|
-
MSSQL::TableDefinition.new(self,
|
348
|
+
def create_table_definition(name, **options)
|
349
|
+
MSSQL::TableDefinition.new(self, name, **options)
|
350
350
|
end
|
351
351
|
|
352
352
|
def new_column_from_field(table_name, field)
|
@@ -27,10 +27,10 @@ module ActiveRecord
|
|
27
27
|
module RealTransactionExt
|
28
28
|
attr_reader :initial_transaction_isolation
|
29
29
|
|
30
|
-
def initialize(connection,
|
30
|
+
def initialize(connection, isolation: nil, joinable: true, run_commit_callbacks: false)
|
31
31
|
@connection = connection
|
32
32
|
|
33
|
-
if
|
33
|
+
if isolation
|
34
34
|
@initial_transaction_isolation = current_transaction_isolation
|
35
35
|
end
|
36
36
|
|
@@ -35,7 +35,7 @@ module ActiveRecord
|
|
35
35
|
end
|
36
36
|
|
37
37
|
class Money < Decimal
|
38
|
-
def initialize(options
|
38
|
+
def initialize(**options)
|
39
39
|
super
|
40
40
|
@precision = 19
|
41
41
|
@scale = 4
|
@@ -46,7 +46,7 @@ module ActiveRecord
|
|
46
46
|
end
|
47
47
|
|
48
48
|
class SmallMoney < Decimal
|
49
|
-
def initialize(options
|
49
|
+
def initialize(**options)
|
50
50
|
super
|
51
51
|
@precision = 10
|
52
52
|
@scale = 4
|
data/lib/arjdbc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbc-alt-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 61.
|
4
|
+
version: 61.3.0
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Nick Sieger, Ola Bini, Karol Bucek, Jesse Chavez, and JRuby contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -17,8 +17,8 @@ dependencies:
|
|
17
17
|
- !ruby/object:Gem::Version
|
18
18
|
version: 6.1.0
|
19
19
|
name: activerecord
|
20
|
-
prerelease: false
|
21
20
|
type: :runtime
|
21
|
+
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
266
|
- !ruby/object:Gem::Version
|
267
267
|
version: '0'
|
268
268
|
requirements: []
|
269
|
-
rubygems_version: 3.
|
269
|
+
rubygems_version: 3.3.26
|
270
270
|
signing_key:
|
271
271
|
specification_version: 4
|
272
272
|
summary: ActiveRecord JDBC adapter, for use within JRuby on Rails and SQL Server
|