@@ -1287,8 +1287,8 @@ mod tests {
12871287 // Test text format float64
12881288 let buffer = parse_hex_dump (
12891289 r#"
1290- 42 00 00 00 19 00 73 30 00 00 01 00 00 00 01 00 B.....s0........
1291- 00 00 04 33 2e 31 34 00 00 00 00 ...3.14 ....
1290+ 42 00 00 00 1a 00 73 30 00 00 01 00 00 00 01 00 B.....s0........
1291+ 00 00 05 32 36 2e 31 31 00 00 00 00 ...26.11 ....
12921292 "#
12931293 . to_string ( ) ,
12941294 ) ;
@@ -1303,14 +1303,14 @@ mod tests {
13031303 portal: "" . to_string( ) ,
13041304 statement: "s0" . to_string( ) ,
13051305 parameter_formats: vec![ Format :: Text ] ,
1306- parameter_values: vec![ Some ( vec![ 51 , 46 , 49 , 52 ] ) ] , // "3.14 "
1306+ parameter_values: vec![ Some ( vec![ 50 , 54 , 46 , 49 , 49 ] ) ] , // "26.11 "
13071307 result_formats: vec![ ]
13081308 } ,
13091309 ) ;
13101310
13111311 assert_eq ! (
13121312 body. to_bind_values( & ParameterDescription :: new( vec![ PgTypeId :: FLOAT8 ] ) ) ?,
1313- vec![ BindValue :: Float64 ( 3.14 ) ]
1313+ vec![ BindValue :: Float64 ( 26.11 ) ]
13141314 ) ;
13151315 }
13161316 _ => panic ! ( "Wrong message, must be Bind" ) ,
@@ -1320,7 +1320,7 @@ mod tests {
13201320 let buffer = parse_hex_dump (
13211321 r#"
13221322 42 00 00 00 1e 00 73 30 00 00 01 00 01 00 01 00 B.....s0........
1323- 00 00 08 40 09 1e b8 51 eb 85 1f 00 00 00 00 ...@...Q.... ...
1323+ 00 00 08 40 3a 1c 28 f5 c2 8f 5c 00 00 00 00 ...@:.(....\ ...
13241324 "#
13251325 . to_string ( ) ,
13261326 ) ;
@@ -1332,7 +1332,7 @@ mod tests {
13321332 assert_eq ! ( body. parameter_formats, vec![ Format :: Binary ] ) ;
13331333 assert_eq ! (
13341334 body. to_bind_values( & ParameterDescription :: new( vec![ PgTypeId :: FLOAT8 ] ) ) ?,
1335- vec![ BindValue :: Float64 ( 3.14 ) ]
1335+ vec![ BindValue :: Float64 ( 26.11 ) ]
13361336 ) ;
13371337 }
13381338 _ => panic ! ( "Wrong message, must be Bind" ) ,
0 commit comments