mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-16 19:18:15 +02:00
added invalid index name test
This commit is contained in:
1 parent
522f9e0ab0
commit
1b3edbbf5c
1 file changed
+6
-5
@@ -23,11 +23,12 @@ func TestParseIndex(t *testing.T) {
|
||||
// no names
|
||||
{
|
||||
`create index on ()`,
|
||||
dbutils.Index{
|
||||
IndexName: "",
|
||||
TableName: "",
|
||||
Columns: []dbutils.IndexColumn{},
|
||||
},
|
||||
dbutils.Index{},
|
||||
},
|
||||
// invalid index name
|
||||
{
|
||||
`create index a.b.c on ()`,
|
||||
dbutils.Index{},
|
||||
},
|
||||
// simple (multiple spaces between the table and columns list)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user