Hello,
I don't believe such bug can exist and no one has noticed it yet :)
Anyway, thanks for your suggestion. I've checked it - works fine.
Actually, the code is this:
QString uuid=QUuid::createUuid().toString(QUuid::WithoutBraces);
QVariant v(uuid);
QByteArray UuidByteArray = toByteArrayByDs(v);
template<classT>
QByteArraytoByteArrayByDs(
constT&t,
QDataStream::Versionversion)
{
QByteArrayresult;
{
QDataStreamds(&result,QIODevice::WriteOnly);
if(version!=QDataStream::Qt_DefaultCompiledVersion)
ds.setVersion(version);
ds<<t;
}
returnresult;
}
Thus, the resulting QByteArray "structure" (first bytes) does not depend
on UUID.
On 1/15/2021 6:29 PM, Thiago Macieira wrote:
On Thursday, 14 January 2021 22:31:19 PST Alexander Dyagilev wrote:
BLOB, so any arbitrary data is allowed. Thus the reason is not that the
first byte is 0.
But it might be that the binding is buggy and is not passing the full 16
bytes.
You can easily confirm or deny this by trying to insert varying binary data
and seeing if any fails to go through.
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest