parent
12cc5f5ea7
commit
c49dc8e31a
|
|
@ -66,8 +66,8 @@ public final class DependenciesHelpers {
|
|||
.collect(Collectors.toList()).toArray(new File[0]);
|
||||
Arrays.stream(libs)
|
||||
.forEach(lib -> System.err.printf(
|
||||
"Found dependency '%s'...%n",
|
||||
lib.getName()));
|
||||
"Found dependency '%s'...%n",
|
||||
lib.getName()));
|
||||
|
||||
return libs;
|
||||
}
|
||||
|
|
@ -102,6 +102,7 @@ public final class DependenciesHelpers {
|
|||
* {@code ccm-core} module.
|
||||
*
|
||||
* @return The dependencies of the {@code ccm-core} module.
|
||||
*
|
||||
* @see #getDependenciesFromModule(java.lang.String)
|
||||
* @see #getDependenciesFromPom(java.lang.String)
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ package org.libreccm.testutils.dbunit;
|
|||
|
||||
import org.dbunit.dataset.datatype.AbstractDataType;
|
||||
import org.dbunit.dataset.datatype.TypeCastException;
|
||||
import org.postgresql.util.PGobject;
|
||||
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
|
|
@ -54,15 +53,11 @@ public class PgSqlJsonbType extends AbstractDataType {
|
|||
final int column,
|
||||
final PreparedStatement statement
|
||||
) throws SQLException, TypeCastException {
|
||||
final PGobject jsonObj = new PGobject();
|
||||
jsonObj.setType("jsonb");
|
||||
if (value == null) {
|
||||
jsonObj.setValue(null);
|
||||
statement.setObject(column, null, Types.OTHER);
|
||||
} else {
|
||||
jsonObj.setValue(value.toString());
|
||||
statement.setObject(column, value.toString(), Types.OTHER);
|
||||
}
|
||||
|
||||
statement.setObject(column, jsonObj);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue