This commit is contained in:
2026-06-07 17:20:52 +07:00
parent abdf6cf3b8
commit 22fe810f63

View File

@@ -209,7 +209,7 @@ function generateUpdateSQL(table_name::String, pk_dict::AbstractDict{String, Any
# Build SET clause # Build SET clause
set_parts = String[] set_parts = String[]
for (key, value) in data for (key, value) in data
if key keys(data) if key keys(pk_dict)
value_str = isa(value, AbstractString) ? "'$value'" : "$value" value_str = isa(value, AbstractString) ? "'$value'" : "$value"
push!(set_parts, "$(string(key)) = $value_str") push!(set_parts, "$(string(key)) = $value_str")
end end