Skip to content

Commit e7f97e1

Browse files
committed
Additional Logging
Investigation need for utPLSQL/utPLSQL-cli#146
1 parent 0df0ee5 commit e7f97e1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

src/main/java/org/utplsql/api/FileMapper.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
import oracle.jdbc.OracleConnection;
55
import oracle.jdbc.OracleTypes;
6+
import org.slf4j.Logger;
7+
import org.slf4j.LoggerFactory;
68

79
import java.sql.*;
810
import java.util.ArrayList;
@@ -11,6 +13,8 @@
1113

1214
public final class FileMapper {
1315

16+
private static final Logger logger = LoggerFactory.getLogger(FileMapper.class);
17+
1418
private FileMapper() {
1519
}
1620

@@ -47,8 +51,14 @@ public static Array buildFileMappingArray(
4751
callableStatement.setString(++paramIdx, mapperOptions.getObjectOwner());
4852
}
4953

54+
logger.debug("Building fileMappingArray");
55+
Object[] filePathsArray = mapperOptions.getFilePaths().toArray();
56+
for ( Object elem : filePathsArray ) {
57+
logger.debug("Path: " + elem);
58+
}
59+
5060
callableStatement.setArray(
51-
++paramIdx, oraConn.createOracleArray(CustomTypes.UT_VARCHAR2_LIST, mapperOptions.getFilePaths().toArray()));
61+
++paramIdx, oraConn.createOracleArray(CustomTypes.UT_VARCHAR2_LIST, filePathsArray));
5262

5363
if (mapperOptions.getTypeMappings() == null) {
5464
callableStatement.setNull(++paramIdx, Types.ARRAY, CustomTypes.UT_KEY_VALUE_PAIRS);

0 commit comments

Comments
 (0)