#10 In StatsSatabase.py [line 279], extraction of results is done incorrectly

クローズ
7 年 前carlos.garcia によって開かれました · 1 コメント
Carlos Garcia7 年 前 にコメントしました

If I understood correctly, the intention of the extraction mechanism is to obtain the result of a query, which returns only one value, as a single variable instead of a list.

In it's current form, results of the form: [(10,'2.6.57.13',5)] are also processed through the "extraction" mechanism and incorrectly retrieve the value "10", dropping everything else.

This incorrect behavior is observed when, for example, entering into query mode and issuing the query: "SELECT * FROM file_statistics;"

If I understood correctly, the intention of the extraction mechanism is to obtain the result of a query, which returns only one value, as a single variable instead of a list. In it's current form, results of the form: [(10,'2.6.57.13',5)] are also processed through the "extraction" mechanism and incorrectly retrieve the value "10", dropping everything else. This incorrect behavior is observed when, for example, entering into query mode and issuing the query: "SELECT * FROM file_statistics;"
Patrick Jattke7 年 前 にコメントしました

Yes, that's right, the extraction mechanism should avoid returning a list or tuple with only a single element.

I can reproduce the issue. I just checked your pull request, it looks like it solves it. I will merge it into the master branch now.

Yes, that's right, the extraction mechanism should avoid returning a list or tuple with only a single element. I can reproduce the issue. I just checked your pull request, it looks like it solves it. I will merge it into the master branch now.
patrick.jattke 7 年 前 に閉じられました
会話に参加するには サインイン してください。
ラベルなし
Bug
マイルストーンなし
担当者なし
2 参加者
読み込み中…
キャンセル
保存
まだコンテンツがありません