This commit is contained in:
2026-06-07 13:46:04 +07:00
parent 688b9a22b6
commit 947580a2ec

View File

@@ -190,11 +190,9 @@ 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 pk_columns
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
end
set_clause = join(set_parts, ", ") set_clause = join(set_parts, ", ")