mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-09-08 15:41:18 +02:00
added invalid index name test
This commit is contained in:
@@ -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