You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tags/bun_test.go
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ import (
7
7
"fmt"
8
8
"testing"
9
9
10
-
"github.com/toeirei/keymaster/tags"
10
+
tags "github.com/toeirei/keymaster/tags"
11
11
"github.com/uptrace/bun"
12
12
"github.com/uptrace/bun/dialect/sqlitedialect"
13
13
"github.com/uptrace/bun/schema"
@@ -38,7 +38,7 @@ var bunTests = []bunTest{
38
38
// --- Complex Nesting ---
39
39
{"(aws|gcp)&!legacy", "SELECT * WHERE ((tags LIKE '%|aws|%' ESCAPE '!') OR (tags LIKE '%|gcp|%' ESCAPE '!')) AND (tags NOT LIKE '%|legacy|%' ESCAPE '!')"},
40
40
{"auth&(**-admin|super-**)", "SELECT * WHERE (tags LIKE '%|auth|%' ESCAPE '!') AND ((tags LIKE '%|%!-admin|%' ESCAPE '!') OR (tags LIKE '%|super!-%|%' ESCAPE '!'))"},
41
-
{"!(test|stage)&prod", "SELECT * WHERE ((tags NOT LIKE '%|test|%' ESCAPE '!') AND (tags NOT LIKE '%|stage|%' ESCAPE '!')) AND (tags LIKE '%|prod|%' ESCAPE '!')"},
41
+
{"!(test|stage)&prod", "SELECT * WHERE (tags NOT LIKE '%|test|%' ESCAPE '!') AND (tags NOT LIKE '%|stage|%' ESCAPE '!') AND (tags LIKE '%|prod|%' ESCAPE '!')"},
42
42
43
43
// --- Edge Cases ---
44
44
{"**", "SELECT * WHERE (tags LIKE '%|%|%' ESCAPE '!')"},
0 commit comments