Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Use specific error for exceptions raised by create_scalar_function

オープン
#3 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

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

調査の方向性

まず register_function コード内のコメントを読み、deterministic モードで create_scalar_function からの例外を再現します。その例外を sqlite3.NotSupportedError と比較し、APSW のエラーが現在どのように捕捉されているかを調べます。利用可能な場合は特定の APSW エラーを発生させるか、不足しているエラーを文書化して上流の APSW プロジェクトにエスカレーションできれば完了です。

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

説明

Typically APSW has more precise errors than Sqlite3, this is one of the exceptions.

When using create_scalar_function in deterministic mode, it is possible to throw an exception based on Sqlite constraints. In sqlite3 this raises a sqlite.NotSupportedError, but there is nothing specific in APSW. In fact, we're not sure what error is raised, so we lump it under apsw.Error. Some better things we can do:

  1. Figure the specific error and capture/raise that as necessary
  2. If there is no specific error, open a ticket, submit a PR to the upstream APSW library

[!NOTE]
This is documented as a comment in the register_function code within this library

主要言語
Python
スター
3
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

AnswerDotAI/apswutils のほかの issue

AnswerDotAI/apswutils の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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