From 6e8cbacdfc326c1b6a9a6e2239eee02d70e15768 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Fri, 10 Feb 2023 13:45:10 -0500 Subject: [PATCH] name unnamed values properly Signed-off-by: Dave Henderson --- driver/value.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/value.go b/driver/value.go index 4f0e1fdf9a..8dc4dad4a6 100644 --- a/driver/value.go +++ b/driver/value.go @@ -93,7 +93,7 @@ func namedValuesToBindings(v []driver.NamedValue) (map[string]sql.Expression, er for _, v := range v { name := v.Name if name == "" { - name = strconv.FormatInt(int64(v.Ordinal), 10) + name = "v" + strconv.FormatInt(int64(v.Ordinal), 10) } b[name], err = valueToExpr(v.Value)