bug: executeSet does not support blobs
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- java, javascript, sqlite
調査の方向性
UtilsSQLite.java で、Buffer オブジェクトを認識する run の objectJSArrayToArrayList 呼び出しと executeSet のパラメーターパスを比較することから始めます。Android で Buffer 値を使用した INSERT の例を再現し、その後、executeSet が run と同様に blob を受け入れることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Plugin version:
"@capacitor-community/sqlite": "^7.0.0"
Platform(s):
Just tested on Android, don't know about iOS and Electron.
Current behavior:
Let's assume the following code:
const statement = `INSERT INTO ${tableName} (id, blob) VALUES (?, ?);`;
const values = [[1, myBlob1], [2, myBlob2]]
const result = await this.db.executeSet([{statement, values}], true);
This results in a parsing error ("unexpected character '{').
My blobs are of type Buffer. Those work fine with the run command, but if I want to mass insert data with executeSet, they don't work.
Expected behavior:
Blobs can be used in executeSet as well.
Steps to reproduce:
See above
Related code:
I debugged the plugin, and I found out that in the code of the "run" statement the method "objectJSArrayToArrayList" from the file "UtilsSQLite.java" is called. This method is recognizing objects of type "Buffer" and is parsing the data from it.
This method is not called during "executeSet".
Other information:
Are blobs of type Buffer intentionally not supported or did so far just nobody need this yet? Or should I use executeSet somehow differently to make it work?
Capacitor doctor:
Capacitor Doctor
Latest Dependencies:
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
@capacitor/ios: 7.2.0
Installed Dependencies:
@capacitor/cli: 7.0.1
@capacitor/android: 7.0.1
@capacitor/ios: 7.0.1
@capacitor/core: 7.0.1
[success] Android looking great! 👌
[error] Xcode is not installed
- 主要言語
- Swift
- スター
- 661
- フォーク
- 158
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
capacitor-community/sqlite のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
capacitor-community/sqlite#700 · コメント 1 件 · リアクション 1 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
capacitor-community/sqlite#693 · リアクション 7 件 ·
-
bug/fix needs: triage
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
capacitor-community/sqlite#690 ·
-
feature needs: triage
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
capacitor-community/sqlite#689 ·
-
bug/fix needs: triage
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
capacitor-community/sqlite#685 ·
capacitor-community/sqlite の issue をすべて見る
似ている issue
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:other issue-rating: 🦞 diamond lobster P2
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
steipete/CodexBar#4071 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
Nextcloud Desktop 34.0.4 fails TestLocalDiscovery::testFileOpenedAsDirectoryCompletesDiscoveryJob()オープン0. Needs triage bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bot file conflict
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
termux/termux-packages#32026 ·
メンテナーはふだん 1 日以内に返信
-
Dictated bullet lists keep the recogniser's commas at the end of every line ("- Milk," "- Eggs,")オープンarea:dictation bug good first issue P2
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
uttrflow/uttrflow-swift#1958 ·
メンテナーはふだん 1 日以内に返信