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