Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
Decimals = "abce61dc-4473-55a0-ba07-351d65e31d42"
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
Infiltrator = "5903a43b-9cc3-4c30-8d17-598619ec4e9b"
Inflector = "6d011eab-0732-4556-8808-e463c76bf3b6"
Intervals = "d8418881-c3e1-53bb-8760-2df7ec849ed5"
Expand All @@ -30,7 +29,6 @@ YAML = "ddb6d928-2868-570f-bddf-ab3f9cf99eb6"

[compat]
Decimals = "0.4.1"
Documenter = "1.14.1"
Infiltrator = "1.8.3"
OrderedCollections = "1.7.0"
Printf = "1.11.0"
Expand Down
10 changes: 3 additions & 7 deletions src/QueryBuilder.jl
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ function _up_values(str::String)
return SQLField(_check_function(check), join(check, "__"))
end
end
"Agora eu tenho que ver como que eu padronizo todas as variáveis para sair como SQLTypeField"
function up_values!(q::SQLObject, values::NTuple{N, Union{String, Symbol, SQLTypeFunction, SQLTypeText, SQLTypeField, Pair{String, T}}} where N where T <: Union{SQLTypeFunction, SQLTypeF, String})

function up_values!(q::SQLObject, values)
# every call of values, reset the values
q.values = []
for v in values
Expand Down Expand Up @@ -717,10 +717,6 @@ function up_values!(q::SQLObject, values::NTuple{N, Union{String, Symbol, SQLTyp

return q
end
function up_values!(q::SQLObject, values)
@infiltrate
@error "Invalid argument: $(values) (::$(typeof(values))); please use a string or a function (Mounth, Year, Day, Y_M ...)"
end

function up_create!(q::SQLObject, values)
q.insert = Dict()
Expand Down Expand Up @@ -2144,7 +2140,7 @@ function do_exists(oq::SQLObjectHandler; table_alias::Union{Nothing, SQLTableAli
return length(result) > 0
catch e
@infiltrate
@error "Error in do_exists for model $(q.object.model.name): $e"
@error "Error in do_exists for model $(oq.object.model.name): $e"
return false
end
end
Expand Down