This would imply that there's a warning. What return packet type would contain this information?
The signature for .query is RowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[], and since this is an INSERT I'd expect the result to be an OkPacket if anything, however the OkPacket type definition is:
procotol41 (odd spelling, can't find any reference to this elsewhere)
So unless I typecast as any I don't believe I can determine if a query has had a warning, but I'd just like to confirm if this is the case and raise this just in case there is indeed an issue in the definition.
Upon console logging an
INSERT
, I can see the following:This would imply that there's a warning. What return packet type would contain this information?
The signature for
.query
isRowDataPacket[][] | RowDataPacket[] | OkPacket | OkPacket[]
, and since this is anINSERT
I'd expect the result to be anOkPacket
if anything, however theOkPacket
type definition is:Observations:
warningStatus
vswarningCount
procotol41
(odd spelling, can't find any reference to this elsewhere)So unless I typecast as
any
I don't believe I can determine if a query has had a warning, but I'd just like to confirm if this is the case and raise this just in case there is indeed an issue in the definition.