From 1b3edbbf5cf0f97265244c8511192b519b966f7a Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Wed, 2 Sep 2026 10:57:00 +0300 Subject: [PATCH] added invalid index name test --- tools/dbutils/index_test.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tools/dbutils/index_test.go b/tools/dbutils/index_test.go index 2e3452ff..2a32b326 100644 --- a/tools/dbutils/index_test.go +++ b/tools/dbutils/index_test.go @@ -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) {