Different results for QUOTE() with control characters between SQLite3 Fiddle and sqlite-jdbc

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

メンテナーはふだん 1 日以内に返信

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

評価

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

調査の方向性

The report names QUOTE() behavior in sqlite-jdbc and compares it with SQLite3 Fiddle, but it does not identify a source file or test. Start by checking how the bundled SQLite version handles QUOTE() for the provided control characters, then compare the query output with the reported results. Done means determining whether the outputs are expected and documenting or correcting the discrepancy; the issue has had no activity for 220 days.

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

説明

troubleshooting

Describe the bug
I noticed inconsistent behavior for the QUOTE() function when the input string contains control characters. The same query produces different results in SQLite3 Fiddle and sqlite-jdbc.

To Reproduce
Run the following SQL query:
SELECT QUOTE('L' || char(0x17) || 'A' || char(0x13) || '2');
In SQLite3 Fiddle and sqlite-jdbc, this query returns different outputs.

Expected behavior
I expected QUOTE() to produce identical output across both environments.
Is this difference expected, or could it indicate an inconsistency in how control characters are handled?

Logs
Result in sqlite-jdbc
'L A 2'

results in SQLite3 Fiddle
unistr('''L\u0017A\u00132''')

Environment (please complete the following information):
OS: Windows 11
CPU architecture: x86_64
sqlite-jdbc version: 3.51.2.0

Additional context
The difference seems to occur specifically when the input string contains control characters. It is unclear whether this is intended behavior or a potential inconsistency between environments.

Image
主要言語
Java
スター
3.3k
フォーク
676
平均マージ
1日 15時間
マージ済み PR(30日)
18

環境構築

はじめの一歩

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

xerial/sqlite-jdbc のほかの issue

xerial/sqlite-jdbc の issue をすべて見る

似ている issue

Java の issue をもっと見る

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

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