File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,16 @@ impl Arguments for MySqlArguments {
5757 }
5858
5959 fn merge ( & mut self , arguments : Self ) {
60- panic ! ( "function not implemented" ) ;
60+ self . values . extend ( arguments. values ) ;
61+ self . types . extend ( arguments. types ) ;
62+
63+ for i in 0 ..arguments. null_bitmap . length {
64+ let byte_index = i / 8 ;
65+ let bit_offset = i % 8 ;
66+ let is_null = ( arguments. null_bitmap . bytes [ byte_index] & ( 1 << bit_offset) ) != 0 ;
67+
68+ self . null_bitmap . push ( if is_null { IsNull :: Yes } else { IsNull :: No } ) ;
69+ }
6170 }
6271}
6372
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ impl Arguments for SqliteArguments {
6868 }
6969
7070 fn merge ( & mut self , arguments : Self ) {
71- panic ! ( "function not implemented" ) ;
71+ self . values . 0 . extend ( arguments . values . 0 ) ;
7272 }
7373}
7474
You can’t perform that action at this time.
0 commit comments