activerecord-jdbc-adapter 70.1-java → 70.2-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: 91bed685b2bb3b78dbf3ddc464f79e8c8023a3f9790c96c498e77398a3e589b1
|
4
|
+
data.tar.gz: d6056d03d71a6558172737f827429e379d8f855d74b9a091ca78623646c68dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d8154960b44d44a8419ab4f57e5e3d9ffc622245472f9c23de709d38bb0745d593dfa3a8477e90c71c0547f18a0dc94a6a8d2fb97c65a59e18fdede3eb526b47
|
7
|
+
data.tar.gz: e4db4d37e11007a182f091995550c5cc74897183c9732faab755dc08e39f95f489459350bb8857d2d1936e93f2cad8cb199889107204ac8f93b6fc21855c374f
|
Binary file
|
@@ -126,51 +126,52 @@ ArJdbc::ConnectionMethods.module_eval do
|
|
126
126
|
|
127
127
|
private
|
128
128
|
|
129
|
-
|
129
|
+
MYSQL_ENCODINGS = {
|
130
|
+
"big5" => "Big5",
|
131
|
+
"dec8" => nil,
|
132
|
+
#"cp850" => "Cp850",
|
133
|
+
"hp8" => nil,
|
134
|
+
#"koi8r" => "KOI8-R",
|
135
|
+
"latin1" => "Cp1252",
|
136
|
+
"latin2" => "ISO8859_2",
|
137
|
+
"swe7" => nil,
|
138
|
+
"ascii" => "US-ASCII",
|
139
|
+
"ujis" => "EUC_JP",
|
140
|
+
"sjis" => "SJIS",
|
141
|
+
"hebrew" => "ISO8859_8",
|
142
|
+
"tis620" => "TIS620",
|
143
|
+
"euckr" => "EUC_KR",
|
144
|
+
#"koi8u" => "KOI8-R",
|
145
|
+
"gb2312" => "EUC_CN",
|
146
|
+
"greek" => "ISO8859_7",
|
147
|
+
"cp1250" => "Cp1250",
|
148
|
+
"gbk" => "GBK",
|
149
|
+
#"latin5" => "ISO-8859-9",
|
150
|
+
"armscii8" => nil,
|
151
|
+
"ucs2" => "UnicodeBig",
|
152
|
+
"cp866" => "Cp866",
|
153
|
+
"keybcs2" => nil,
|
154
|
+
"macce" => "MacCentralEurope",
|
155
|
+
"macroman" => "MacRoman",
|
156
|
+
#"cp852" => "CP852",
|
157
|
+
#"latin7" => "ISO-8859-13",
|
158
|
+
"cp1251" => "Cp1251",
|
159
|
+
"cp1256" => "Cp1256",
|
160
|
+
"cp1257" => "Cp1257",
|
161
|
+
"binary" => false,
|
162
|
+
"geostd8" => nil,
|
163
|
+
"cp932" => "Cp932",
|
164
|
+
#"eucjpms" => "eucJP-ms"
|
165
|
+
"utf8" => "UTF-8",
|
166
|
+
"utf8mb4" => false,
|
167
|
+
"utf16" => false,
|
168
|
+
"utf32" => false,
|
169
|
+
}
|
170
|
+
|
130
171
|
|
131
172
|
# @see https://dev.mysql.com/doc/connector-j/5.1/en/connector-j-reference-charsets.html
|
132
173
|
def convert_mysql_encoding(encoding) # to charset-name (characterEncoding=...)
|
133
|
-
|
134
|
-
"big5" => "Big5",
|
135
|
-
"dec8" => nil,
|
136
|
-
#"cp850" => "Cp850",
|
137
|
-
"hp8" => nil,
|
138
|
-
#"koi8r" => "KOI8-R",
|
139
|
-
"latin1" => "Cp1252",
|
140
|
-
"latin2" => "ISO8859_2",
|
141
|
-
"swe7" => nil,
|
142
|
-
"ascii" => "US-ASCII",
|
143
|
-
"ujis" => "EUC_JP",
|
144
|
-
"sjis" => "SJIS",
|
145
|
-
"hebrew" => "ISO8859_8",
|
146
|
-
"tis620" => "TIS620",
|
147
|
-
"euckr" => "EUC_KR",
|
148
|
-
#"koi8u" => "KOI8-R",
|
149
|
-
"gb2312" => "EUC_CN",
|
150
|
-
"greek" => "ISO8859_7",
|
151
|
-
"cp1250" => "Cp1250",
|
152
|
-
"gbk" => "GBK",
|
153
|
-
#"latin5" => "ISO-8859-9",
|
154
|
-
"armscii8" => nil,
|
155
|
-
"ucs2" => "UnicodeBig",
|
156
|
-
"cp866" => "Cp866",
|
157
|
-
"keybcs2" => nil,
|
158
|
-
"macce" => "MacCentralEurope",
|
159
|
-
"macroman" => "MacRoman",
|
160
|
-
#"cp852" => "CP852",
|
161
|
-
#"latin7" => "ISO-8859-13",
|
162
|
-
"cp1251" => "Cp1251",
|
163
|
-
"cp1256" => "Cp1256",
|
164
|
-
"cp1257" => "Cp1257",
|
165
|
-
"binary" => false,
|
166
|
-
"geostd8" => nil,
|
167
|
-
"cp932" => "Cp932",
|
168
|
-
#"eucjpms" => "eucJP-ms"
|
169
|
-
"utf8" => "UTF-8",
|
170
|
-
"utf8mb4" => false,
|
171
|
-
"utf16" => false,
|
172
|
-
"utf32" => false,
|
173
|
-
} )[ encoding ]
|
174
|
+
MYSQL_ENCODINGS[ encoding ]
|
174
175
|
end
|
175
176
|
|
176
177
|
end
|
data/lib/arjdbc/version.rb
CHANGED
@@ -2727,7 +2727,7 @@ public class RubyJdbcConnection extends RubyObject {
|
|
2727
2727
|
}
|
2728
2728
|
else { // e.g. `BigDecimal '42.00000000000000000001'`
|
2729
2729
|
statement.setBigDecimal(index,
|
2730
|
-
RubyBigDecimal.newInstance(context, context.runtime.getModule("BigDecimal"), value).getValue());
|
2730
|
+
RubyBigDecimal.newInstance(context, context.runtime.getModule("BigDecimal"), value, RubyFixnum.newFixnum(context.runtime, Integer.MAX_VALUE)).getValue());
|
2731
2731
|
}
|
2732
2732
|
}
|
2733
2733
|
|
@@ -511,7 +511,7 @@ public class SQLite3RubyJdbcConnection extends RubyJdbcConnection {
|
|
511
511
|
statement.setDouble(index, ((RubyNumeric) value).getDoubleValue());
|
512
512
|
}
|
513
513
|
else { // e.g. `BigDecimal '42.00000000000000000001'`
|
514
|
-
RubyBigDecimal val = RubyBigDecimal.newInstance(context, context.runtime.getModule("BigDecimal"), value);
|
514
|
+
RubyBigDecimal val = RubyBigDecimal.newInstance(context, context.runtime.getModule("BigDecimal"), value, RubyFixnum.newFixnum(context.runtime, Integer.MAX_VALUE));
|
515
515
|
statement.setString(index, val.getValue().toString());
|
516
516
|
}
|
517
517
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord-jdbc-adapter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '70.
|
4
|
+
version: '70.2'
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Nick Sieger, Ola Bini, Karol Bucek and JRuby contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-09 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: '7.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
|
- - "~>"
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
198
198
|
- !ruby/object:Gem::Version
|
199
199
|
version: '0'
|
200
200
|
requirements: []
|
201
|
-
rubygems_version: 3.3.
|
201
|
+
rubygems_version: 3.3.26
|
202
202
|
signing_key:
|
203
203
|
specification_version: 4
|
204
204
|
summary: JDBC adapter for ActiveRecord, for use within JRuby on Rails.
|