added invalid index name test

This commit is contained in:
Gani Georgiev
2026-09-02 10:57:00 +03:00
parent 522f9e0ab0
commit 1b3edbbf5c
+6 -5
View File
@@ -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)
{