Skip to content

Commit

Permalink
Postgres: fix SQL type of string array
Browse files Browse the repository at this point in the history
Co-Authored-By: Anthony Dodd <[email protected]>
  • Loading branch information
abonander and thedodd authored Feb 21, 2020
1 parent f762013 commit 3ac81ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlx-core/src/postgres/types/str.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ impl HasSqlType<str> for Postgres {

impl HasSqlType<[&'_ str]> for Postgres {
fn type_info() -> PgTypeInfo {
PgTypeInfo::new(TypeId::ARRAY_TEXT, "TEXT")
PgTypeInfo::new(TypeId::ARRAY_TEXT, "TEXT[]")
}
}

Expand Down

0 comments on commit 3ac81ab

Please sign in to comment.