enhance: do not ignore error from gdb.FormatMultiLineSqlToSingle func (#3368)

This commit is contained in:
oldme
2024-03-13 19:22:17 +08:00
committed by GitHub
parent a8713da97f
commit 4feda4c395
8 changed files with 41 additions and 13 deletions

View File

@ -32,7 +32,11 @@ ORDER BY a.attnum`
)
func init() {
tableFieldsSqlTmp = gdb.FormatMultiLineSqlToSingle(tableFieldsSqlTmp)
var err error
tableFieldsSqlTmp, err = gdb.FormatMultiLineSqlToSingle(tableFieldsSqlTmp)
if err != nil {
panic(err)
}
}
// TableFields retrieves and returns the fields' information of specified table of current schema.