From 86dd57adcb3c592d329af86a82f2859ce1613f21 Mon Sep 17 00:00:00 2001 From: Eddy Decena Date: Sat, 27 Jul 2024 16:54:38 -0400 Subject: [PATCH] fix: add support for multiple data source type starting with MySQL --- internal/services/trino.engine.impl.service.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/internal/services/trino.engine.impl.service.go b/internal/services/trino.engine.impl.service.go index 1ccdd29..3f80783 100644 --- a/internal/services/trino.engine.impl.service.go +++ b/internal/services/trino.engine.impl.service.go @@ -45,7 +45,6 @@ func (self *TrinoEngineServiceImpl) Query(query string, dest interface{}) error rows, err := self.db.Query(query) if err != nil { logger.Error.Printf("Failed to get data from data source: %v\n", err) - logger.Error.Printf("Query: \n\n%s\n\n", query) return err } @@ -53,7 +52,6 @@ func (self *TrinoEngineServiceImpl) Query(query string, dest interface{}) error columns, err = rows.Columns() if err != nil { logger.Error.Printf("Failed to get data from data source: %v\n", err) - logger.Error.Printf("Query: \n\n%s\n\n", query) return err } @@ -72,7 +70,6 @@ func (self *TrinoEngineServiceImpl) Query(query string, dest interface{}) error err = rows.Scan(r...) if err != nil { logger.Error.Printf("Failed to get data from data source: %v\n", err) - logger.Error.Printf("Query: \n\n%s\n\n", query) return err } @@ -108,7 +105,6 @@ func (self *TrinoEngineServiceImpl) GetRawData(query string) ([]map[string]inter if err != nil { logger.Error.Printf("Failed to get data from data source: %v\n", err) - logger.Error.Printf("Query: \n\n%s\n\n", query) return nil, err } @@ -116,7 +112,6 @@ func (self *TrinoEngineServiceImpl) GetRawData(query string) ([]map[string]inter columns, err = rows.Columns() if err != nil { logger.Error.Printf("Failed to get data from data source: %v\n", err) - logger.Error.Printf("Query: \n\n%s\n\n", query) return nil, err } @@ -135,7 +130,6 @@ func (self *TrinoEngineServiceImpl) GetRawData(query string) ([]map[string]inter err = rows.Scan(r...) if err != nil { logger.Error.Printf("Failed to get data from data source: %v\n", err) - logger.Error.Printf("Query: \n\n%s\n\n", query) return nil, err }