Skip to content

Commit

Permalink
bugfix pgvector cant store null
Browse files Browse the repository at this point in the history
  • Loading branch information
faberf committed Sep 23, 2024
1 parent 95e3077 commit da6775b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ internal fun Type.toSql(): Int = when (this) {
is Type.FloatVector -> JDBCType.ARRAY
is Type.IntVector -> JDBCType.ARRAY
is Type.LongVector -> JDBCType.ARRAY
}.ordinal
}.vendorTypeNumber

/**
* Converts a [Distance] to a pgVector distance operator.
Expand Down

0 comments on commit da6775b

Please sign in to comment.