Skip to content

Commit 99ac9ad

Browse files
committed
fix tests
1 parent 6cc54fa commit 99ac9ad

File tree

1 file changed

+4
-5
lines changed
  • src/main/java/org/zalando/typemapper/postgres

1 file changed

+4
-5
lines changed

src/main/java/org/zalando/typemapper/postgres/PgRow.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
package org.zalando.typemapper.postgres;
22

3+
import org.postgresql.util.PGobject;
4+
35
import java.sql.Connection;
46
import java.sql.SQLException;
5-
67
import java.util.Arrays;
78
import java.util.Collection;
89

9-
import org.postgresql.util.PGobject;
10-
1110
public final class PgRow extends PGobject {
1211

1312
private static final long serialVersionUID = -2855096142894174113L;
@@ -57,12 +56,12 @@ public PgRow(final PgTypeHelper.PgTypeDataHolder typeDataHolder, final Connectio
5756
}
5857

5958
public static PgRow ROW(final Object... array) throws SQLException {
60-
return new PgRow(null, array == null ? null : Arrays.asList(array));
59+
return new PgRow("unknownType", array == null ? null : Arrays.asList(array));
6160
}
6261

6362
@SuppressWarnings("unchecked")
6463
public static PgRow ROW(final Collection<?> collection) throws SQLException {
65-
return new PgRow(null, (Collection<Object>) collection);
64+
return new PgRow("unknownType", (Collection<Object>) collection);
6665
}
6766

6867
@Override

0 commit comments

Comments
 (0)