activerecord-jdbc-alt-adapter 80.1.0.beta1-java → 80.1.0.rc1-java
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 633e3fdf964a200968304873babd37145c39fdcacf75c0e29bd78e75df99bad0
|
|
4
|
+
data.tar.gz: 979e73fa4890863a4eea2adfbe66667cf17c0aa3bb510fdc99ca4a794977768b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4ac0755284b9164a031dae9e2b3bcaebd65380d32637a85abeb09ce11ff63ca6c95f69d50e02398fb47fc87cf4a89522bd33768eb38e2d4b603d4ffe42918837
|
|
7
|
+
data.tar.gz: 14c8650cbc96db74c2d58d331d33e9cf8ed1a9d74ddb944dd150c166a890d24b53e8474c02de2ce894b8199b6070453fd145e124670bbd0659b00046bad79686
|
data/.github/workflows/main.yml
CHANGED
|
@@ -30,6 +30,8 @@ jobs:
|
|
|
30
30
|
ruby-version: ['jruby-10.0.6.0']
|
|
31
31
|
db: ['mssql']
|
|
32
32
|
test_targets: ['test_mssql']
|
|
33
|
+
prepared_statements: ['true', 'false']
|
|
34
|
+
ar_version: ["8-1-stable-dev"]
|
|
33
35
|
|
|
34
36
|
# NOTE: using a specific tag, it fails with 2019-latest.
|
|
35
37
|
# it seems the issue is related to some changes in mssql tools
|
|
@@ -55,6 +57,8 @@ jobs:
|
|
|
55
57
|
JRUBY_OPTS: "-J-Xms64M -J-Xmx1024M"
|
|
56
58
|
SQLUSER: SA
|
|
57
59
|
SQLPASS: Password12!
|
|
60
|
+
PREPARED_STATEMENTS: ${{ matrix.prepared_statements }}
|
|
61
|
+
AR_VERSION: ${{ matrix.ar_version }}
|
|
58
62
|
|
|
59
63
|
steps:
|
|
60
64
|
- uses: actions/checkout@v3
|
|
@@ -85,10 +89,12 @@ jobs:
|
|
|
85
89
|
ruby-version: ['jruby-10.0.6.0']
|
|
86
90
|
db: ['sqlite3']
|
|
87
91
|
test_targets: ['test_sqlite3']
|
|
92
|
+
ar_version: ["8-1-stable-dev"]
|
|
88
93
|
|
|
89
94
|
env:
|
|
90
95
|
DB: ${{ matrix.db }}
|
|
91
96
|
JRUBY_OPTS: "-J-Xms64M -J-Xmx1024M --dev"
|
|
97
|
+
AR_VERSION: ${{ matrix.ar_version }}
|
|
92
98
|
|
|
93
99
|
steps:
|
|
94
100
|
- uses: actions/checkout@v4
|
|
@@ -116,6 +122,7 @@ jobs:
|
|
|
116
122
|
test_targets: ["db:postgresql test_postgresql"]
|
|
117
123
|
prepared_statements: ['false', 'true']
|
|
118
124
|
insert_returning: ['false', 'true']
|
|
125
|
+
ar_version: ["8-1-stable-dev"]
|
|
119
126
|
|
|
120
127
|
services:
|
|
121
128
|
postgres:
|
|
@@ -132,6 +139,7 @@ jobs:
|
|
|
132
139
|
JRUBY_OPTS: "-J-Xms64M -J-Xmx1024M"
|
|
133
140
|
PREPARED_STATEMENTS: ${{ matrix.prepared_statements }}
|
|
134
141
|
INSERT_RETURNING: ${{ matrix.insert_returning }}
|
|
142
|
+
AR_VERSION: ${{ matrix.ar_version }}
|
|
135
143
|
PGHOST: localhost
|
|
136
144
|
PGPORT: 5432
|
|
137
145
|
PGUSER: postgres
|
|
@@ -40,7 +40,7 @@ module ArJdbc
|
|
|
40
40
|
if without_prepared_statement?(binds)
|
|
41
41
|
log(sql, name, async: async) { conn.execute_query(sql) }
|
|
42
42
|
else
|
|
43
|
-
log(sql, name, type_casted_binds, async: async) do
|
|
43
|
+
log(sql, name, binds, type_casted_binds, async: async) do
|
|
44
44
|
# this is different from normal AR that always caches
|
|
45
45
|
cached_statement = fetch_cached_statement(sql) if prepare && @jdbc_statement_cache_enabled
|
|
46
46
|
conn.execute_prepared_query(sql, binds, cached_statement)
|
|
@@ -97,7 +97,7 @@ module ActiveRecord
|
|
|
97
97
|
|
|
98
98
|
# binds = convert_legacy_binds_to_attributes(binds) if binds.first.is_a?(Array)
|
|
99
99
|
|
|
100
|
-
# puts "[1]
|
|
100
|
+
# puts "[1]internal_exec_query----->sql: #{sql}, binds: #{binds}"
|
|
101
101
|
type_casted_binds = type_casted_binds(binds)
|
|
102
102
|
# puts "[2]internal----->sql: #{type_casted_binds.size}, binds: #{type_casted_binds}"
|
|
103
103
|
|
|
@@ -112,7 +112,7 @@ module ActiveRecord
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
else
|
|
115
|
-
log(sql, name, type_casted_binds) do
|
|
115
|
+
log(sql, name, binds, type_casted_binds, async: async) do
|
|
116
116
|
with_raw_connection do |conn|
|
|
117
117
|
# this is different from normal AR that always caches
|
|
118
118
|
cached_statement = fetch_cached_statement(sql) if prepare && @jdbc_statement_cache_enabled
|
|
@@ -144,7 +144,7 @@ module ActiveRecord
|
|
|
144
144
|
else
|
|
145
145
|
log(sql, name, binds, type_casted_binds) do
|
|
146
146
|
with_raw_connection do |conn|
|
|
147
|
-
result = conn.execute_prepared_update(sql,
|
|
147
|
+
result = conn.execute_prepared_update(sql, binds)
|
|
148
148
|
verified!
|
|
149
149
|
result
|
|
150
150
|
end
|
|
@@ -198,6 +198,7 @@ module ActiveRecord
|
|
|
198
198
|
|
|
199
199
|
|
|
200
200
|
def perform_query(raw_connection, sql, binds, type_casted_binds, prepare:, notification_payload:, batch:)
|
|
201
|
+
# puts "perform_query----->sql: #{sql}, binds: #{binds}"
|
|
201
202
|
result = conditional_indentity_insert(sql) { raw_connection.execute(sql) }
|
|
202
203
|
|
|
203
204
|
count = 0
|
|
@@ -21,15 +21,15 @@ module ArJdbc
|
|
|
21
21
|
def internal_exec_query(sql, name = nil, binds = [], prepare: false, async: false, allow_retry: false, materialize_transactions: true)
|
|
22
22
|
sql = preprocess_query(sql)
|
|
23
23
|
|
|
24
|
-
# puts "[1]
|
|
24
|
+
# puts "[1]internal_exec_query----->sql: #{sql}, binds: #{binds}"
|
|
25
25
|
type_casted_binds = type_casted_binds(binds)
|
|
26
|
-
# puts "[2]
|
|
26
|
+
# puts "[2]internal_exec_query----->sql: #{type_casted_binds.size}, binds: #{type_casted_binds}"
|
|
27
27
|
|
|
28
28
|
with_raw_connection do |conn|
|
|
29
29
|
if without_prepared_statement?(binds)
|
|
30
30
|
log(sql, name, async: async) { conn.execute_query(sql) }
|
|
31
31
|
else
|
|
32
|
-
log(sql, name, type_casted_binds, async: async) do
|
|
32
|
+
log(sql, name, binds, type_casted_binds, async: async) do
|
|
33
33
|
# this is different from normal AR that always caches
|
|
34
34
|
cached_statement = fetch_cached_statement(sql) if prepare && @jdbc_statement_cache_enabled
|
|
35
35
|
conn.execute_prepared_query(sql, type_casted_binds, cached_statement)
|
|
@@ -39,6 +39,7 @@ module ArJdbc
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def perform_query(raw_connection, sql, binds, type_casted_binds, prepare:, notification_payload:, batch:)
|
|
42
|
+
# puts "perform_query----->sql: #{sql}, binds: #{binds}"
|
|
42
43
|
result = raw_connection.execute(sql)
|
|
43
44
|
|
|
44
45
|
count = 0
|
data/lib/arjdbc/version.rb
CHANGED
metadata
CHANGED