Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

Commit d8768e4

Browse files
committed
Fixes #18 issue
1 parent a89db0e commit d8768e4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

SQLToolsModels.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,11 +276,15 @@ def run(self):
276276

277277
results, errors = self.process.communicate(input=self.query.encode())
278278

279+
resultString = '';
280+
281+
if results:
282+
resultString += results.decode(self.encoding, 'replace').replace('\r', '')
283+
279284
if errors:
280-
self.callback(errors.decode(self.encoding, 'replace').replace('\r', ''))
281-
return
285+
resultString += errors.decode(self.encoding, 'replace').replace('\r', '')
282286

283-
self.callback(results.decode(self.encoding, 'replace').replace('\r', ''))
287+
self.callback(resultString)
284288

285289
def stop(self):
286290
if not self.process:

0 commit comments

Comments
 (0)