Skip to content

Commit 595a00d

Browse files
committed
Renamed addBitType to registerType
1 parent 86af42d commit 595a00d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/pgvector/PGbit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ public boolean[] toArray() {
149149
* @param conn connection
150150
* @throws SQLException exception
151151
*/
152-
public static void addBitType(Connection conn) throws SQLException {
152+
public static void registerType(Connection conn) throws SQLException {
153153
conn.unwrap(PGConnection.class).addDataType("bit", PGbit.class);
154154
}
155155
}

src/test/java/com/pgvector/JDBCJavaTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ void bitExample(boolean readBinary) throws SQLException {
138138
setupStmt.executeUpdate("CREATE EXTENSION IF NOT EXISTS vector");
139139
setupStmt.executeUpdate("DROP TABLE IF EXISTS jdbc_items");
140140

141-
PGbit.addBitType(conn);
141+
PGbit.registerType(conn);
142142

143143
Statement createStmt = conn.createStatement();
144144
createStmt.executeUpdate("CREATE TABLE jdbc_items (id bigserial PRIMARY KEY, embedding bit(9))");

0 commit comments

Comments
 (0)