This commit is contained in:
greeneclipse committed 2026-11-15 10:04:44 +01:00
1 parent 41f1a7dbe4
commit e7964c58c8
13 files changed
+1215 -24

No files matched your search

+4 -9
View File
@@ -290,15 +290,10 @@ func TestUpsertSQLIsSetBased(t *testing.T) {
"update": upsertSQLUpdateSet,
} {
lower := strings.ToLower(sql)
switch name {
case "insert", "update":
if !strings.Contains(lower, "unnest(") {
t.Fatalf("%s missing unnest: %s", name, sql)
}
case "touch":
if !strings.Contains(lower, "any(") {
t.Fatalf("touch missing ANY: %s", sql)
}
// Touch also joins through unnest now: it refreshes the owning feed and the
// per-field sources of every touched row in one statement.
if !strings.Contains(lower, "unnest(") {
t.Fatalf("%s missing unnest: %s", name, sql)
}
if strings.Contains(lower, "values ($1") {
t.Fatalf("%s still per-row VALUES form", name)