We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0cf570 commit 4d2582aCopy full SHA for 4d2582a
1 file changed
mdl/executor/executor.go
@@ -323,15 +323,16 @@ func (e *Executor) IsConnected() bool {
323
324
// Close closes the connection to the project and all SQL connections.
325
func (e *Executor) Close() error {
326
+ var closeErr error
327
if e.backend != nil && e.backend.IsConnected() {
- e.backend.Disconnect()
328
+ closeErr = e.backend.Disconnect()
329
e.backend = nil
330
}
331
if e.sqlMgr != nil {
332
e.sqlMgr.CloseAll()
333
e.sqlMgr = nil
334
- return nil
335
+ return closeErr
336
337
338
// ----------------------------------------------------------------------------
0 commit comments