Skip to content

Commit

Permalink
Merge pull request #19 from jelmer/sqlx-0.8
Browse files Browse the repository at this point in the history
Bump sqlx to 0.8
  • Loading branch information
jelmer authored Sep 5, 2024
2 parents 8e34021 + 79e89e6 commit e6b4cad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ version = ">=0.22"
optional = true

[dependencies.sqlx]
version = "0.7"
version = "0.8"
optional = true
default-features = false
features = [ "postgres",]
Expand All @@ -35,7 +35,7 @@ version = "1"
optional = true

[dev-dependencies.sqlx]
version = "0.7"
version = "0.8"
default-features = false
features = [ "runtime-async-std-native-tls",]

Expand Down
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,10 @@ impl sqlx::Type<Postgres> for Version {

#[cfg(feature = "sqlx")]
impl sqlx::Encode<'_, Postgres> for Version {
fn encode_by_ref(&self, buf: &mut sqlx::postgres::PgArgumentBuffer) -> sqlx::encode::IsNull {
fn encode_by_ref(
&self,
buf: &mut sqlx::postgres::PgArgumentBuffer,
) -> Result<sqlx::encode::IsNull, Box<dyn std::error::Error + Send + Sync>> {
sqlx::Encode::<Postgres>::encode_by_ref(&self.to_string().as_str(), buf)
}
}
Expand Down

0 comments on commit e6b4cad

Please sign in to comment.