File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ extension HalfVector: @retroactive PostgresDecodable {
2727 format: PostgresFormat ,
2828 context: PostgresDecodingContext < JSONDecoder >
2929 ) throws {
30- guard type. isUserDefined else {
30+ guard type == HalfVector . psqlType , type . isUserDefined else {
3131 throw PostgresDecodingError . Code. typeMismatch
3232 }
3333
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ extension SparseVector: @retroactive PostgresDecodable {
3131 format: PostgresFormat ,
3232 context: PostgresDecodingContext < JSONDecoder >
3333 ) throws {
34- guard type. isUserDefined else {
34+ guard type == SparseVector . psqlType , type . isUserDefined else {
3535 throw PostgresDecodingError . Code. typeMismatch
3636 }
3737
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ extension Vector: @retroactive PostgresDecodable {
2727 format: PostgresFormat ,
2828 context: PostgresDecodingContext < JSONDecoder >
2929 ) throws {
30- guard type. isUserDefined else {
30+ guard type == Vector . psqlType , type . isUserDefined else {
3131 throw PostgresDecodingError . Code. typeMismatch
3232 }
3333
You can’t perform that action at this time.
0 commit comments