@@ -27,7 +27,7 @@ pub struct RustTransaction {
2727
2828 isolation_level : Option < IsolationLevel > ,
2929 read_variant : Option < ReadVariant > ,
30- deferable : Option < bool > ,
30+ deferrable : Option < bool > ,
3131 cursor_num : usize ,
3232}
3333
@@ -40,7 +40,7 @@ impl RustTransaction {
4040 rollback_savepoint : Arc < tokio:: sync:: RwLock < HashSet < String > > > ,
4141 isolation_level : Option < IsolationLevel > ,
4242 read_variant : Option < ReadVariant > ,
43- deferable : Option < bool > ,
43+ deferrable : Option < bool > ,
4444 cursor_num : usize ,
4545 ) -> Self {
4646 Self {
@@ -50,7 +50,7 @@ impl RustTransaction {
5050 rollback_savepoint,
5151 isolation_level,
5252 read_variant,
53- deferable ,
53+ deferrable ,
5454 cursor_num,
5555 }
5656 }
@@ -108,7 +108,7 @@ impl RustTransaction {
108108
109109 /// Start transaction
110110 /// Set up isolation level if specified
111- /// Set up deferable if specified
111+ /// Set up deferrable if specified
112112 ///
113113 /// # Errors
114114 /// May return Err Result if cannot execute querystring.
@@ -124,10 +124,10 @@ impl RustTransaction {
124124 querystring. push_str ( format ! ( " {}" , & read_var. to_str_option( ) ) . as_str ( ) ) ;
125125 }
126126
127- if self . deferable . is_some ( ) {
128- querystring. push_str ( "DEFERABLE " ) ;
127+ if self . deferrable . is_some ( ) {
128+ querystring. push_str ( " DEFERRABLE " ) ;
129129 } else {
130- querystring. push_str ( "NOT DEFERABLE " ) ;
130+ querystring. push_str ( " NOT DEFERRABLE " ) ;
131131 }
132132
133133 let db_client_arc = self . db_client . clone ( ) ;
0 commit comments