mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
fix(mysql): handle Changed and Warnings in OK info parser
This commit is contained in:
parent
ad6d4b5740
commit
5926dcaa69
@ -1,7 +1,7 @@
|
||||
// https://dev.mysql.com/doc/c-api/8.0/en/mysql-info.html
|
||||
// https://mariadb.com/kb/en/mysql_info/
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Default)]
|
||||
pub(crate) struct Info {
|
||||
pub(crate) records: u64,
|
||||
pub(crate) duplicates: u64,
|
||||
@ -33,6 +33,14 @@ impl Info {
|
||||
"Duplicates" => duplicates = value,
|
||||
"Rows matched" => matched = value,
|
||||
|
||||
// ignore records changed
|
||||
// this is "rows affected" for UPDATE
|
||||
"Changed" => {},
|
||||
|
||||
// ignore warnings in info
|
||||
// these are passed back differently
|
||||
"Warnings" => {},
|
||||
|
||||
// unknown key
|
||||
_ => failed = true,
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user