Skip to content

Commit 752a129

Browse files
committed
Tweaks
1 parent 2114523 commit 752a129

File tree

5 files changed

+22
-2
lines changed

5 files changed

+22
-2
lines changed

DESCRIPTION

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: RMySQL
22
Version: 0.10.3.9000
3-
Title: Database Interface and MySQL Driver for R
4-
Description: Implements DBI-compliant Interface to MySQL and MariaDB Databases.
3+
Title: Database Interface and 'MySQL' Driver for R
4+
Description: Implements 'DBI' Interface to 'MySQL' and 'MariaDB' Databases.
55
Authors@R: c(person("Jeroen", "Ooms", email = "jeroen.ooms@stat.ucla.edu", role = c("aut", "cre")),
66
person("David", "James", role = "aut"),
77
person("Saikat", "DebRoy", role = "aut"),

NAMESPACE

+3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ exportMethods(show)
6969
exportMethods(summary)
7070
import(DBI)
7171
import(methods)
72+
importFrom(utils,packageVersion)
73+
importFrom(utils,read.table)
74+
importFrom(utils,write.table)
7275
useDynLib(RMySQL)
7376
useDynLib(RMySQL,RS_MySQL_cloneConnection)
7477
useDynLib(RMySQL,RS_MySQL_closeConnection)

NEWS.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1+
# Version 0.10.4
2+
13
* Fix dbWriteTable bug with MySQL-based Infobright database
4+
5+
* Use mariadb_config if available
6+
7+
* Properly import used utils functions
28

39
# Version 0.10.3
410

R/driver.R

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ setClass("MySQLDriver",
2525
#' default.)
2626
#' @export
2727
#' @import methods DBI
28+
#' @importFrom utils packageVersion read.table write.table
2829
#' @useDynLib RMySQL
2930
#' @rdname MySQLDriver-class
3031
#' @examples

configure

+10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,16 @@ if [ $(command -v mysql_config) ]; then
2626
exit 0
2727
fi
2828

29+
# If the mariadb_config command is availble, use that
30+
if [ $(command -v mariadb_config) ]; then
31+
echo "Found mariadb_config"
32+
MYSQL_CFLAGS=$(mariadb_config --cflags)
33+
MYSQL_LIBS=$(mariadb_config --libs)
34+
echo "PKG_CPPFLAGS=$MYSQL_CFLAGS" > src/Makevars
35+
echo "PKG_LIBS=$MYSQL_LIBS" >> src/Makevars
36+
exit 0
37+
fi
38+
2939
# Force static linking on OSX to support redistributable binary packages.
3040
if [ $(echo "$OSTYPE" | grep "darwin") ]; then
3141

0 commit comments

Comments
 (0)