<div dir="ltr">I used sqlite3 python module, and it is parsed fine</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 28, 2022 at 9:46 PM Yauheni Pervenenka <<a href="mailto:yauheni.pervenenka@viber.com">yauheni.pervenenka@viber.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Christian, thanks for your effort, db was simplified for test, is it possible to fix it on the client side? Any ideas, why is column considered as SQLITE_TEXT if it is BLOB?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 28, 2022 at 9:40 PM Christian Ehrlicher <<a href="mailto:Ch.Ehrlicher@gmx.de" target="_blank">Ch.Ehrlicher@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Am 28.11.2022 um 19:16 schrieb Yauheni Pervenenka via Interest:<br>
> Thiago, hello, thanks for your reply, sorry have no instructions for<br>
> create and insert, but have data base with one value which can't be<br>
> parsed correct(db is cut to one value for provide example)<br>
><br>
> <a href="https://bugreports.qt.io/browse/QTBUG-108992" rel="noreferrer" target="_blank">https://bugreports.qt.io/browse/QTBUG-108992</a><br>
><br>
Your database looks strange to me - even though your column type<br>
according to the schema is BLOB:<br>
<br>
sqlite> .schema<br>
CREATE TABLE IF NOT EXISTS "test" (<br>
         "value" BLOB NOT NULL<br>
);<br>
<br>
the return value of sqlite3_column_type() is SQLITE_TEXT (3).<br>
<br>
Therefore the return value is treated as string and the data is screwed<br>
up. If I change the return value to SQLITE_BLOB (4) in the debugger, all<br>
is correct:<br>
<br>
qDebug() << value.toByteArray().toHex();<br>
<br>
--><br>
<br>
"763130492d46ab4c9c7bb0e9789b29c3ab1e4723dea6c8e5d2f9b266a275e1fbe4a6"<br>
<br>
<br>
<br>
Christian<br>
<br>
</blockquote></div>
</blockquote></div>