エラーコードポータル
SQLiteSQLiteエラーコード

SQLITE_LOCKED_VTAB

locked vtab

別表記: 518

コード SQLITE_LOCKED_VTAB · SQLiteが報告した問題です。

SQLITE_LOCKED_VTAB 結果コードは SQLite コアでは使用されませんが、拡張機能では使用できます。仮想テーブルの実装は、他のスレッドまたはプロセスによってロックが保持されているために現在の操作を完了できないことを示すために、この結果コードを返すことができます。 R ツリー拡張機能は、別のプリペアド ステートメントが R ツリーをアクティブに読み取っているときに R ツリーを更新しようとすると、この結果コードを返します。 R ツリーへの変更にはノードの再シャッフルと再バランスが含まれる可能性があり、読み取りカーソルが中断され、一部の行が繰り返され、他の行が省略されるため、更新を続行できません。

Google Translate · 自動翻訳です。専門用語や適用条件は英語の原文で確認してください。

The SQLITE_LOCKED_VTAB result code is not used by the SQLite core, but it is available for use by extensions. Virtual table implementations can return this result code to indicate that they cannot complete the current operation because of locks held by other threads or processes. The R-Tree extension returns this result code when an attempt is made to update the R-Tree while another prepared statement is actively reading the R-Tree. The update cannot proceed because any change to an R-Tree might involve reshuffling and rebalancing of nodes, which would disrupt read cursors, causing some rows to be repeated and other rows to be omitted.

トラブルシューティング・診断リンク

まず、文書の製品・バージョン・発生環境が現在の状況と一致しているか確認してください。

この項目には公式のコード参考文書のみを掲載しています。個別の解決手順は検証していません。