People, I'm trying to query a search using GLUE Package and a numericInput, like this:
dfPlot2 <- dbGetQuery(
connection_reportUser,
query <- glue(
"
select * from test
where cod_pedido = '{input$iPedido}'
"))
My input in UI.R has: numericInput(inputId= "iPedido", label= "Pedido:", value = 0)
The Problem is: My value in this numericInput is '0000545461'
I have seen something about numbers started with '0' what makes R understand '545461' instead of '0000545461'. So, my search never works until I pass the value direct into the code, like: where cod_pedido = 0000545461
Someone know how to solve this?
Ps.: This number will ALWAYS start with four 0's.