@@ -13,7 +13,7 @@ use crate::mysql::protocol::statement::{
13
13
use crate :: mysql:: protocol:: text:: { ColumnDefinition , ColumnFlags , Query , TextRow } ;
14
14
use crate :: mysql:: statement:: { MySqlStatement , MySqlStatementMetadata } ;
15
15
use crate :: mysql:: {
16
- MySql , MySqlArguments , MySqlColumn , MySqlConnection , MySqlDone , MySqlRow , MySqlTypeInfo ,
16
+ MySql , MySqlArguments , MySqlColumn , MySqlConnection , MySqlOutcome , MySqlRow , MySqlTypeInfo ,
17
17
MySqlValueFormat ,
18
18
} ;
19
19
use crate :: HashMap ;
@@ -88,7 +88,7 @@ impl MySqlConnection {
88
88
sql : & ' q str ,
89
89
arguments : Option < MySqlArguments > ,
90
90
persistent : bool ,
91
- ) -> Result < impl Stream < Item = Result < Either < MySqlDone , MySqlRow > , Error > > + ' e , Error > {
91
+ ) -> Result < impl Stream < Item = Result < Either < MySqlOutcome , MySqlRow > , Error > > + ' e , Error > {
92
92
let mut logger = QueryLogger :: new ( sql, self . log_settings . clone ( ) ) ;
93
93
94
94
self . stream . wait_until_ready ( ) . await ?;
@@ -133,7 +133,7 @@ impl MySqlConnection {
133
133
// this indicates either a successful query with no rows at all or a failed query
134
134
let ok = packet. ok( ) ?;
135
135
136
- let done = MySqlDone {
136
+ let done = MySqlOutcome {
137
137
rows_affected: ok. affected_rows,
138
138
last_insert_id: ok. last_insert_id,
139
139
} ;
@@ -171,7 +171,7 @@ impl MySqlConnection {
171
171
if packet[ 0 ] == 0xfe && packet. len( ) < 9 {
172
172
let eof = packet. eof( self . stream. capabilities) ?;
173
173
174
- r#yield!( Either :: Left ( MySqlDone {
174
+ r#yield!( Either :: Left ( MySqlOutcome {
175
175
rows_affected: 0 ,
176
176
last_insert_id: 0 ,
177
177
} ) ) ;
@@ -213,7 +213,7 @@ impl<'c> Executor<'c> for &'c mut MySqlConnection {
213
213
fn fetch_many < ' e , ' q : ' e , E : ' q > (
214
214
self ,
215
215
mut query : E ,
216
- ) -> BoxStream < ' e , Result < Either < MySqlDone , MySqlRow > , Error > >
216
+ ) -> BoxStream < ' e , Result < Either < MySqlOutcome , MySqlRow > , Error > >
217
217
where
218
218
' c : ' e ,
219
219
E : Execute < ' q , Self :: Database > ,
0 commit comments