Skip to content

Commit ef3abbd

Browse files
committed
fixes wrong mapping of column's names when aliases are used
refs orientechnologies#7307
1 parent 73dfcfa commit ef3abbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

etl/src/main/java/com/orientechnologies/orient/etl/extractor/OETLJDBCExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void begin(ODatabaseDocument db) {
105105
columnTypes = new ArrayList<OType>(rsColumns);
106106

107107
for (int i = 1; i <= rsColumns; ++i) {
108-
final String colName = rs.getMetaData().getColumnName(i);
108+
final String colName = rs.getMetaData().getColumnLabel(i);
109109
columnNames.add(colName);
110110

111111
OType type = OType.ANY;

0 commit comments

Comments
 (0)