dbcli / dbcli/mssql-cli

on_error not respected in non-interactive mode/exit code is 0

オープン
#469 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
1.4k
フォーク
191
PR マージ指標
30日以内にマージされた PR はありません

説明

If I run a file with syntax errors using non-interactive mode, mssql-cli doesn't stop execution after the first error nor does it return a non-zero exit code:

Output looks like:

```Msg 102, Level 15, State 1, Line 1
Incorrect syntax near ''.
Commands completed successfully.
Commands completed successfully.
Commands completed successfully.
Commands completed successfully.
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

issue ではファイルもテストも指定されていません。非対話モードで構文エラーを再現し、その後、on_error の処理とプロセスの終了ステータスがどのように決定されるかを追跡してください。完了条件は、最初のエラーの後に実行が停止し、コマンドがゼロ以外の終了コードを返すことです。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python, sql
領域
cli, database
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。