Skip to content

Commit d42aef4

Browse files
authored
Merge pull request #12 from infopark/mysql_blob_streaming_2.5.0
mysql_blob_streaming version 2.5.0
2 parents 08dc479 + 144919b commit d42aef4

File tree

7 files changed

+34
-7
lines changed

7 files changed

+34
-7
lines changed

.travis.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
language: ruby
22
rvm:
3-
- "2.2.8"
4-
- "2.3.5"
3+
- "2.7.5"
4+
- "2.6.9"
5+

CHANGELOG.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,32 @@
11
All notable changes to this project will be documented in this file.
22

33
This gem lives here https://github.com/infopark/mysql_blob_streaming.
4+
## v2.5.0 - 2022-05-03
5+
6+
### Reason to make changes
7+
8+
- make gem compatible with MariaDB 10.2 and 10.3 (see Bug https://bugs.mysql.com/bug.php?id=87337)
9+
- Tested with the following versions:
10+
- MySQL 5.6
11+
- MySQL 5.7
12+
- MySQL 8.0.2
13+
- MariaDB 10.2
14+
- MariaDB 10.3
15+
16+
### Compatible changes
17+
18+
- add condition to check MySQL version in /ext/mysql_blob_streaming/mysql_blob_streaming.c
19+
#if MYSQL_VERSION_ID >=80000 && MYSQL_VERSION_ID <80030
20+
#include <stdbool.h>
21+
typedef bool my_bool;
22+
#endif
23+
424

525
## v2.4.0 - 2021-03-23
626

727
### Reason to make changes
828

9-
- make gem compatible with MySQL version ~> 8.0.1
29+
- make gem compatible with MySQL version ~> 8.0.1
1030

1131
### Compatible changes
1232

README.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ Install it like any other Gem:
3939
gem install mysql_blob_streaming-X.X.X.gem
4040

4141
Run it with root privileges if needed.
42+
43+
## Development/Tests
44+
45+
rake

Rakefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,6 @@ task :prepare_test_db do
3535
sh "mysqladmin", "-uroot", "--force", "drop", database_config['database']
3636
end
3737
sh "mysqladmin", "-uroot", "create", database_config['database']
38-
sh "mysql", "-uroot", "-e", "grant all on #{database_config['database']}.* to '#{database_config['username']}'@'localhost' identified by '#{database_config['password']}'"
38+
sh "mysql", "-uroot", "-e", "CREATE USER IF NOT EXISTS '#{database_config['username']}'@'localhost' IDENTIFIED BY '#{database_config['password']}'"
39+
sh "mysql", "-uroot", "-e", "GRANT ALL ON #{database_config['database']}.* TO '#{database_config['username']}'@'localhost'"
3940
end

ext/mysql_blob_streaming/mysql_blob_streaming.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
#include <mysql.h>
55
#include <errmsg.h>
66

7-
#if MYSQL_VERSION_ID >=80000
7+
#if MYSQL_VERSION_ID >=80000 && MYSQL_VERSION_ID <80030
8+
#include <stdbool.h>
89
typedef bool my_bool;
910
#endif
1011

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
class MysqlBlobStreaming
2-
VERSION = "2.4.0"
2+
VERSION = "2.5.0"
33
end

test/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def test_should_not_link_against_libruby_see_bug_12701
138138
assert !Dir.glob(libraries).empty?
139139

140140
# sanity check to see if we got any sensible output from our dependency checker at all
141-
assert dependencies.include?(running_on_mac ? "libmysql" : "libc.so")
141+
assert dependencies.match?(running_on_mac ? /libmysql|libmariadb/ : /libc.so/)
142142

143143
assert !dependencies.include?("libruby")
144144
end

0 commit comments

Comments
 (0)