Skip to content

Commit

Permalink
Merge pull request #45 from leungi/fix-get_partitions
Browse files Browse the repository at this point in the history
fix: remove single quotes in SQL statement
  • Loading branch information
ddotta committed May 30, 2023
2 parents 4523002 + 4d611bc commit 357c006
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# parquetize (WIP)

This release includes :

- bugfix by @leungi: remove single quotes in SQL statement thatgenerates incorrect SQL syntax for connection of type Microsoft SQL Server #45


# parquetize 0.5.6.1

This release includes :
Expand Down
2 changes: 1 addition & 1 deletion R/get_partitions.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ get_partitions <- function(conn, table, column) {
cli_abort("Be careful, the argument column must be filled in", class = "parquetize_missing_argument")
}

DBI::dbGetQuery(conn, glue::glue("SELECT distinct({`column`}) FROM '{`table`}'", .con = conn))[,1]
DBI::dbGetQuery(conn, glue::glue("SELECT distinct({`column`}) FROM {`table`}", .con = conn))[,1]
}

0 comments on commit 357c006

Please sign in to comment.