From 135c5ca696b19d16cfe2b7e38f723300c4c752a6 Mon Sep 17 00:00:00 2001 From: pat-s Date: Wed, 24 Jul 2024 19:58:55 +0200 Subject: [PATCH] quotes --- R/build-metadata.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/build-metadata.R b/R/build-metadata.R index 10c7c00..38e62c4 100644 --- a/R/build-metadata.R +++ b/R/build-metadata.R @@ -42,7 +42,7 @@ store_build_metadata <- function( } else if (nrow(existing_entries) >= 1 && force) { cli::cli_alert_info("{.fun store_build_metadata}: Force overwriting build metadata for {.field {package_name}} {.field {tag}} because {.code force = TRUE} was set.") - dbExecute(con, sprintf("UPDATE single_builds SET build_timestamp = %s WHERE package_name = %s and tag = %s", format(Sys.time(), "%Y-%m-%d %H:%M:%S"), package_name, tag)) + dbExecute(con, sprintf("UPDATE single_builds SET build_timestamp = '%s' WHERE package_name = '%s' and tag = '%s'", format(Sys.time(), "%Y-%m-%d %H:%M:%S"), package_name, tag)) } # Close the SQLite connection