Skip to content

Commit eef2e5d

Browse files
committed
transaction deferable
1 parent 2fbfe53 commit eef2e5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/driver/transaction.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ impl RustTransaction {
125125
}
126126

127127
if self.deferable.is_some() {
128-
querystring.push_str("SET CONSTRAINTS ALL DEFERRED");
128+
querystring.push_str("DEFERABLE");
129+
} else {
130+
querystring.push_str("NOT DEFERABLE");
129131
}
130132

131133
let db_client_arc = self.db_client.clone();

0 commit comments

Comments
 (0)