mirror of
https://github.com/launchbadge/sqlx
synced 2024-11-10 06:24:16 +00:00
fix(mysql): "exclusive range pattern is experimental" error
closes #3472
This commit is contained in:
parent
fd80f998ac
commit
6cb6fce793
1 changed files with 3 additions and 3 deletions
|
@ -16,12 +16,12 @@ impl MySqlBufMutExt for Vec<u8> {
|
|||
let encoded_le = v.to_le_bytes();
|
||||
|
||||
match v {
|
||||
..251 => self.push(encoded_le[0]),
|
||||
251..0x1_00_00 => {
|
||||
0..=250 => self.push(encoded_le[0]),
|
||||
251..=0xFF_FF => {
|
||||
self.push(0xfc);
|
||||
self.extend_from_slice(&encoded_le[..2]);
|
||||
}
|
||||
0x1_00_00..0x1_00_00_00 => {
|
||||
0x1_00_00..=0xFF_FF_FF => {
|
||||
self.push(0xfd);
|
||||
self.extend_from_slice(&encoded_le[..3]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue