From 03800d42bf02f9e1e8d4358c7ea4dc4a797b2ec7 Mon Sep 17 00:00:00 2001 From: Alper Reha Yazgan Date: Sun, 11 Feb 2024 22:11:23 +0300 Subject: [PATCH] create index back tick err due to postgres fix --- tools/dbutils/index.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/dbutils/index.go b/tools/dbutils/index.go index 0b8658e2d..908eff2a1 100644 --- a/tools/dbutils/index.go +++ b/tools/dbutils/index.go @@ -58,18 +58,18 @@ func (idx Index) Build() string { } if idx.SchemaName != "" { - str.WriteString("`") + str.WriteString("") // !CHANGED: back tick removed due to postgres error. str.WriteString(idx.SchemaName) - str.WriteString("`.") + str.WriteString(".") // !CHANGED: back tick removed due to postgres error. } - str.WriteString("`") + str.WriteString("") // !CHANGED: back tick removed due to postgres error. str.WriteString(idx.IndexName) - str.WriteString("` ") + str.WriteString(" ") // !CHANGED: back tick removed due to postgres error. - str.WriteString("ON `") + str.WriteString("ON ") // !CHANGED: back tick removed due to postgres error. str.WriteString(idx.TableName) - str.WriteString("` (") + str.WriteString(" (") // !CHANGED: back tick removed due to postgres error. if len(idx.Columns) > 1 { str.WriteString("\n ") @@ -91,9 +91,9 @@ func (idx Index) Build() string { str.WriteString(trimmedColName) } else { // regular identifier - str.WriteString("`") + str.WriteString("") // !CHANGED: back tick removed due to postgres error. str.WriteString(trimmedColName) - str.WriteString("`") + str.WriteString("") // !CHANGED: back tick removed due to postgres error. } if col.Collate != "" {