Skip to content

Commit

Permalink
Merge pull request #137 from dullbananas/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
weiznich authored Feb 18, 2024
2 parents 017ebe2 + 65c6eb6 commit 1ef43d2
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/pg/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,10 @@ impl AsyncPgConnection {
async fn set_config_options(&mut self) -> QueryResult<()> {
use crate::run_query_dsl::RunQueryDsl;

diesel::sql_query("SET TIME ZONE 'UTC'")
.execute(self)
.await?;
diesel::sql_query("SET CLIENT_ENCODING TO 'UTF8'")
.execute(self)
.await?;
futures_util::try_join!(
diesel::sql_query("SET TIME ZONE 'UTC'").execute(self),
diesel::sql_query("SET CLIENT_ENCODING TO 'UTF8'").execute(self),
)?;
Ok(())
}

Expand Down

0 comments on commit 1ef43d2

Please sign in to comment.