File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public boolean[] toArray() {
149
149
* @param conn connection
150
150
* @throws SQLException exception
151
151
*/
152
- public static void addBitType (Connection conn ) throws SQLException {
152
+ public static void registerType (Connection conn ) throws SQLException {
153
153
conn .unwrap (PGConnection .class ).addDataType ("bit" , PGbit .class );
154
154
}
155
155
}
Original file line number Diff line number Diff line change @@ -138,7 +138,7 @@ void bitExample(boolean readBinary) throws SQLException {
138
138
setupStmt .executeUpdate ("CREATE EXTENSION IF NOT EXISTS vector" );
139
139
setupStmt .executeUpdate ("DROP TABLE IF EXISTS jdbc_items" );
140
140
141
- PGbit .addBitType (conn );
141
+ PGbit .registerType (conn );
142
142
143
143
Statement createStmt = conn .createStatement ();
144
144
createStmt .executeUpdate ("CREATE TABLE jdbc_items (id bigserial PRIMARY KEY, embedding bit(9))" );
You can’t perform that action at this time.
0 commit comments