mysql2 0.5.1-x64-mingw32 → 0.5.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/ext/mysql2/mysql_enc_to_ruby.h +10 -0
- data/ext/mysql2/result.c +2 -1
- data/lib/mysql2/2.0/mysql2.so +0 -0
- data/lib/mysql2/2.1/mysql2.so +0 -0
- data/lib/mysql2/2.2/mysql2.so +0 -0
- data/lib/mysql2/2.3/mysql2.so +0 -0
- data/lib/mysql2/2.4/mysql2.so +0 -0
- data/lib/mysql2/2.5/mysql2.so +0 -0
- data/lib/mysql2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b00b08bbab3db9805a9cd46d9526b757d75a12763a5e4fd14d29e0bf3556f77
|
4
|
+
data.tar.gz: 014e159ac3f808a947c30f99e32fad2acbe2403563566c5c6599c2074404715c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a3a6ca299f0a95d00edd947110be0518f7f5dfc3e6dc9107cf734815bd70ea2e32cc98a6b8ff62d8cc7aac5cb4eec7c6e38c245e3ddb6884ce3784c942664f0
|
7
|
+
data.tar.gz: b4dc09bf99c0ad27587ae6316109945bccb27f87359f80f668e2f598f45930130ab3eb1190fbc975b3882342740bafa5e9f1aed9e6edd3db89063ed687ac64d5
|
data/README.md
CHANGED
@@ -74,10 +74,11 @@ To see line numbers in backtraces, declare these environment variables
|
|
74
74
|
|
75
75
|
### Linux and other Unixes
|
76
76
|
|
77
|
-
You may need to install a package such as `libmysqlclient-dev
|
78
|
-
refer to your distribution's package guide to
|
79
|
-
The most common issue we see is a user who has
|
80
|
-
|
77
|
+
You may need to install a package such as `libmysqlclient-dev`, `mysql-devel`,
|
78
|
+
or `default-libmysqlclient-dev`; refer to your distribution's package guide to
|
79
|
+
find the particular package. The most common issue we see is a user who has
|
80
|
+
the library file `libmysqlclient.so` but is missing the header file `mysql.h`
|
81
|
+
-- double check that you have the _-dev_ packages installed.
|
81
82
|
|
82
83
|
### Mac OS X
|
83
84
|
|
@@ -245,5 +245,15 @@ static const char *mysql2_mysql_enc_to_rb[] = {
|
|
245
245
|
"UTF-8",
|
246
246
|
"UTF-8",
|
247
247
|
"UTF-8",
|
248
|
+
"UTF-8",
|
249
|
+
NULL,
|
250
|
+
NULL,
|
251
|
+
NULL,
|
252
|
+
NULL,
|
253
|
+
NULL,
|
254
|
+
NULL,
|
255
|
+
NULL,
|
248
256
|
"UTF-8"
|
249
257
|
};
|
258
|
+
|
259
|
+
#define CHARSETNR_SIZE (sizeof(mysql2_mysql_enc_to_rb)/sizeof(mysql2_mysql_enc_to_rb[0]))
|
data/ext/mysql2/result.c
CHANGED
@@ -179,7 +179,8 @@ static VALUE mysql2_set_field_string_encoding(VALUE val, MYSQL_FIELD field, rb_e
|
|
179
179
|
const char *enc_name;
|
180
180
|
int enc_index;
|
181
181
|
|
182
|
-
enc_name = mysql2_mysql_enc_to_rb[field.charsetnr-1];
|
182
|
+
enc_name = (field.charsetnr-1 < CHARSETNR_SIZE) ? mysql2_mysql_enc_to_rb[field.charsetnr-1] : NULL;
|
183
|
+
|
183
184
|
if (enc_name != NULL) {
|
184
185
|
/* use the field encoding we were able to match */
|
185
186
|
enc_index = rb_enc_find_index(enc_name);
|
data/lib/mysql2/2.0/mysql2.so
CHANGED
Binary file
|
data/lib/mysql2/2.1/mysql2.so
CHANGED
Binary file
|
data/lib/mysql2/2.2/mysql2.so
CHANGED
Binary file
|
data/lib/mysql2/2.3/mysql2.so
CHANGED
Binary file
|
data/lib/mysql2/2.4/mysql2.so
CHANGED
Binary file
|
data/lib/mysql2/2.5/mysql2.so
CHANGED
Binary file
|
data/lib/mysql2/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mysql2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Brian Lopez
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-04
|
12
|
+
date: 2018-07-04 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email:
|