You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
tnir
linked a pull request
Nov 1, 2019
that will
close
this issue
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.The text was updated successfully, but these errors were encountered: