Skip to content

Commit

Permalink
Update R/backend-teradata.R
Browse files Browse the repository at this point in the history
Co-authored-by: Simon P. Couch <[email protected]>
  • Loading branch information
rplsmn and simonpcouch authored Oct 24, 2024
1 parent a49c400 commit 5c40830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/backend-teradata.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ sql_translation.Teradata <- function(con) {
},
as.double = sql_cast("FLOAT"),
as.character = function(x, nchar = 255L) {
nchar <- vctrs::vec_cast(nchar, integer())
check_number_whole(nchar, min = 0, max = 64000)
sql_expr(CAST(!!x %as% VARCHAR(!!nchar)))
},
as.Date = teradata_as_date,
Expand Down

0 comments on commit 5c40830

Please sign in to comment.