parent
12cc5f5ea7
commit
c49dc8e31a
|
|
@ -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