Skip to content

Commit

Permalink
Allow data frame with column named sep
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Jan 3, 2021
1 parent 84c2bdb commit e6e5ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/table-insert.R
Expand Up @@ -44,7 +44,7 @@ setMethod("sqlAppendTable", signature("DBIConnection"),
fields <- dbQuoteIdentifier(con, names(sql_values))

# Convert fields into a character matrix
rows <- do.call(paste, c(sql_values, sep = ", "))
rows <- do.call(paste, c(unname(sql_values), sep = ", "))
SQL(paste0(
"INSERT INTO ", table, "\n",
" (", paste(fields, collapse = ", "), ")\n",
Expand Down

0 comments on commit e6e5ade

Please sign in to comment.