Skip to content

Commit

Permalink
Initial MonetDB support
Browse files Browse the repository at this point in the history
  • Loading branch information
hannes committed Nov 8, 2015
1 parent 25d9a90 commit 1d6931a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/sqldf.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,14 @@ sqldf <- function(x, stringsAsFactors = FALSE,
as.dates.character <- function(x) structure(as.numeric(x), class = c("dates", "times"))
as.times.character <- function(x) structure(as.numeric(x), class = "times")


# nam2 code is duplicated above. Needs to be factored out.
backquote.maybe <- function(nam) {
if (drv == "h2") { nam
} else if (drv == "mysql") { nam
} else if (drv == "pgsql") { nam
} else if (drv == "postgresql") { nam
} else if (drv == "monetdb") { nam
} else {
if (regexpr(".", nam, fixed = TRUE)) {
if (regexpr(".", nam, fixed = TRUE) > 0) {
paste("`", nam, "`", sep = "")
} else nam
}
Expand Down Expand Up @@ -292,6 +291,7 @@ sqldf <- function(x, stringsAsFactors = FALSE,
else if (inherits(connection, "pgSQLConnection")) "pgSQL"
else if (inherits(connection, "MySQLConnection")) "MySQL"
else if (inherits(connection, "H2Connection")) "H2"
else if (inherits(connection, "MonetDBConnection")) "MonetDB"
else "SQLite"
drv <- tolower(drv)
dbPreExists <- attr(connection, "dbPreExists")
Expand Down

0 comments on commit 1d6931a

Please sign in to comment.