mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
[mariadb] fix protocol tests
This commit is contained in:
parent
01dbcd3ff5
commit
d5a543d5cf
@ -31,7 +31,7 @@ mod tests {
|
||||
fn it_encodes_com_stmt_close() {
|
||||
let mut buf = Vec::new();
|
||||
|
||||
ComStmtClose { statement_id: 1 }.encode(&mut buf);
|
||||
ComStmtClose { statement_id: 1 }.encode(&mut buf, Capabilities::empty());
|
||||
|
||||
assert_eq!(&buf[..], b"\x19\x01\0\0\0");
|
||||
}
|
||||
|
||||
@ -39,6 +39,6 @@ mod tests {
|
||||
}
|
||||
.encode(&mut buf, Capabilities::empty());
|
||||
|
||||
assert_eq!(&buf[..], b"\x09\0\0\x00\x1C\x01\0\0\0\x0A\0\0\0");
|
||||
assert_eq!(&buf[..], b"\x1C\x01\0\0\0\x0A\0\0\0");
|
||||
}
|
||||
}
|
||||
|
||||
@ -34,9 +34,6 @@ mod tests {
|
||||
}
|
||||
.encode(&mut buf, Capabilities::empty());
|
||||
|
||||
assert_eq!(
|
||||
&buf[..],
|
||||
"\x27\0\0\x00\x16SELECT * FROM users WHERE username = ?"
|
||||
);
|
||||
assert_eq!(&buf[..], &b"\x16SELECT * FROM users WHERE username = ?"[..]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,6 +29,6 @@ mod tests {
|
||||
|
||||
ComStmtReset { statement_id: 1 }.encode(&mut buf, Capabilities::empty());
|
||||
|
||||
assert_eq!(&buf[..], b"\x05\0\0\x00\x1A\x01\0\0\0");
|
||||
assert_eq!(&buf[..], b"\x1A\x01\0\0\0");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user