mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-15 02:28:15 +02:00
added test for partially matched table name/alias as suffix
This commit is contained in:
1 parent
f4108cb354
commit
e4d637e6e0
2 files changed
+10
-2
No files matched your search
@@ -78,6 +78,13 @@ func TestNormalizeUniqueIndexError(t *testing.T) {
|
||||
[]string{"a", "b"},
|
||||
nil,
|
||||
},
|
||||
{
|
||||
"unique index error with table name suffix matching the specified one",
|
||||
errors.New("UNIQUE constraint failed for fields test_suffix.a,test_suffix.b"),
|
||||
"suffix",
|
||||
[]string{"a", "b", "c"},
|
||||
nil,
|
||||
},
|
||||
{
|
||||
"unique index error but mismatched fields",
|
||||
errors.New("UNIQUE constraint failed for fields test.a,test.b"),
|
||||
|
||||
Reference in new issue
Block a user