We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ceb1be commit 75da6f5Copy full SHA for 75da6f5
src/driver/transaction.rs
@@ -123,12 +123,11 @@ impl RustTransaction {
123
if let Some(read_var) = self.read_variant {
124
querystring.push_str(format!(" {}", &read_var.to_str_option()).as_str());
125
}
126
-
127
- if self.deferable.is_some() {
128
- querystring.push_str(" DEFERRABLE");
129
- } else {
130
- querystring.push_str(" NOT DEFERRABLE");
131
- }
+ querystring.push_str(match self.deferable {
+ Some(true) => " DEFERRABLE",
+ Some(false) => " NOT DEFERRABLE",
+ None => "",
+ });
132
133
let db_client_arc = self.db_client.clone();
134
let db_client_guard = db_client_arc.read().await;
0 commit comments