activerecord-jdbc-alt-adapter 72.0.0.rc1-java → 72.0.0.rc2-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: dafecd441b97c213a72c5ae9c1c486a62a8fb4c72dd9e95e7ba312bbb481b2d0
|
4
|
+
data.tar.gz: 46a37a4c9016a716dea9499872f31201b52185087b681386a876674dda26148f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e798446777f566110b2a17c34fdda5f1a872a6e5818c1a5eabb0cf5de762c7ecc6b4d077eaec45f27ac7a694ef3bef6efe88747992c896b486c3a9c269cef904
|
7
|
+
data.tar.gz: 5df07f076775d2933c619f8987356dcfe41538edf14ddd6d78a990c7384cc6552c44928c6a7749f23891131ac488390b4ef346aafb14b5c72aadd2d752f188ea
|
@@ -44,14 +44,17 @@ module ArJdbc
|
|
44
44
|
|
45
45
|
binds = convert_legacy_binds_to_attributes(binds) if binds.first.is_a?(Array)
|
46
46
|
|
47
|
+
# puts "internal----->sql: #{sql}, binds: #{binds}"
|
48
|
+
type_casted_binds = type_casted_binds(binds)
|
49
|
+
|
47
50
|
with_raw_connection do |conn|
|
48
51
|
if without_prepared_statement?(binds)
|
49
52
|
log(sql, name, async: async) { conn.execute_query(sql) }
|
50
53
|
else
|
51
|
-
log(sql, name,
|
54
|
+
log(sql, name, type_casted_binds, async: async) do
|
52
55
|
# this is different from normal AR that always caches
|
53
56
|
cached_statement = fetch_cached_statement(sql) if prepare && @jdbc_statement_cache_enabled
|
54
|
-
conn.execute_prepared_query(sql,
|
57
|
+
conn.execute_prepared_query(sql, type_casted_binds, cached_statement)
|
55
58
|
end
|
56
59
|
end
|
57
60
|
end
|
Binary file
|
@@ -102,6 +102,8 @@ module ActiveRecord
|
|
102
102
|
# binds = convert_legacy_binds_to_attributes(binds) if binds.first.is_a?(Array)
|
103
103
|
|
104
104
|
# puts "internal----->sql: #{sql}, binds: #{binds}"
|
105
|
+
type_casted_binds = type_casted_binds(binds)
|
106
|
+
|
105
107
|
if without_prepared_statement?(binds)
|
106
108
|
log(sql, name) do
|
107
109
|
with_raw_connection do |conn|
|
@@ -113,13 +115,13 @@ module ActiveRecord
|
|
113
115
|
end
|
114
116
|
end
|
115
117
|
else
|
116
|
-
log(sql, name,
|
118
|
+
log(sql, name, type_casted_binds) do
|
117
119
|
with_raw_connection do |conn|
|
118
120
|
# this is different from normal AR that always caches
|
119
121
|
cached_statement = fetch_cached_statement(sql) if prepare && @jdbc_statement_cache_enabled
|
120
122
|
|
121
123
|
result = conditional_indentity_insert(sql) do
|
122
|
-
conn.execute_prepared_query(sql,
|
124
|
+
conn.execute_prepared_query(sql, type_casted_binds, cached_statement)
|
123
125
|
end
|
124
126
|
verified!
|
125
127
|
result
|
data/lib/arjdbc/version.rb
CHANGED
@@ -691,7 +691,7 @@ public class PostgreSQLRubyJdbcConnection extends arjdbc.jdbc.RubyJdbcConnection
|
|
691
691
|
}
|
692
692
|
}
|
693
693
|
|
694
|
-
|
694
|
+
statement.setObject(index, value.asString().toString(), Types.OTHER);
|
695
695
|
}
|
696
696
|
|
697
697
|
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbc-alt-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 72.0.0.
|
4
|
+
version: 72.0.0.rc2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Nick Sieger, Ola Bini, Karol Bucek, Jesse Chavez, and JRuby contributors
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date: 2025-
|
10
|
+
date: 2025-09-28 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: activerecord
|
@@ -222,7 +221,6 @@ homepage: https://github.com/JesseChavez/activerecord-jdbc-adapter
|
|
222
221
|
licenses:
|
223
222
|
- BSD-2-Clause
|
224
223
|
metadata: {}
|
225
|
-
post_install_message:
|
226
224
|
rdoc_options:
|
227
225
|
- "--main"
|
228
226
|
- README.md
|
@@ -235,12 +233,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
235
233
|
version: '0'
|
236
234
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
235
|
requirements:
|
238
|
-
- - "
|
236
|
+
- - ">="
|
239
237
|
- !ruby/object:Gem::Version
|
240
|
-
version:
|
238
|
+
version: '0'
|
241
239
|
requirements: []
|
242
|
-
rubygems_version: 3.3
|
243
|
-
signing_key:
|
240
|
+
rubygems_version: 3.6.3
|
244
241
|
specification_version: 4
|
245
242
|
summary: ActiveRecord JDBC adapter, for use within JRuby on Rails and SQL Server
|
246
243
|
test_files: []
|