Skip to content

Commit f9c6377

Browse files
committed
Windows: update to mariadbcient 2.3.7
1 parent 3a7febe commit f9c6377

File tree

5 files changed

+21
-45
lines changed

5 files changed

+21
-45
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: RMySQL
2-
Version: 0.10.15
2+
Version: 0.10.16
33
Title: Database Interface and 'MySQL' Driver for R
44
Description: Legacy 'DBI' interface to 'MySQL' / 'MariaDB' based on old code
55
ported from S-PLUS. A modern 'MySQL' client based on 'Rcpp' is available

NEWS.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Version 0.10.16
2+
3+
* Windows: Update mariadbclient to v2.3.7 + OpenSSL 1.1.1
4+
* Fix for MySQL 8 (issue #223)
5+
16
# Version 0.10.15
27

38
* Windows: Update mariadbclient to v 2.3.5

src/Makevars.win

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
PKG_CPPFLAGS= -I../windows/libmariadbclient-2.3.5/include/mariadb
2-
PKG_LIBS= -L../windows/libmariadbclient-2.3.5/lib${R_ARCH} \
3-
-lmariadbclient -lssl -lcrypto -lgdi32 -lz -lws2_32 -pthread
1+
VERSION = 2.3.7
2+
RWINLIB = ../windows/libmariadbclient-$(VERSION)
43

5-
all: clean winlibs
4+
CXX_STD=CXX11
5+
PKG_CPPFLAGS = -I$(RWINLIB)/include/mariadb
6+
PKG_LIBS= -L$(RWINLIB)/lib${R_ARCH} \
7+
-lmariadbclient -lssl -lcrypto -lcrypt32 -lgdi32 -lz -lws2_32 -pthread
68

7-
winlibs:
8-
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R"
9+
all: clean winlibs
910

1011
clean:
11-
rm -f $(OBJECTS) $(SHLIB)
12+
rm -f $(SHLIB) $(OBJECTS)
13+
14+
winlibs:
15+
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" "../tools/winlibs.R" $(VERSION)

tools/mysql-connector-c.rb

-33
This file was deleted.

tools/winlibs.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Link against mariadb native client static libraries
2-
# Info and source code: https://downloads.mariadb.org/client-native/
3-
if(!file.exists("../windows/libmariadbclient-2.3.5/include/mariadb/mysql.h")){
1+
# Link against libmariadbclient static libraries
2+
VERSION <- commandArgs(TRUE)
3+
if(!file.exists(sprintf("../windows/libmariadbclient-%s/include/mariadb/mysql.h", VERSION))){
44
if(getRversion() < "3.3.0") setInternet2()
5-
download.file("https://github.com/rwinlib/libmariadbclient/archive/v2.3.5.zip", "lib.zip")
5+
download.file(sprintf("https://github.com/rwinlib/libmariadbclient/archive/v%s.zip", VERSION), "lib.zip", quiet = TRUE)
66
dir.create("../windows", showWarnings = FALSE)
77
unzip("lib.zip", exdir = "../windows")
88
unlink("lib.zip")

0 commit comments

Comments
 (0)