Skip to content

Commit

Permalink
fixes wrong mapping of column's names when aliases are used
Browse files Browse the repository at this point in the history
refs #7307
  • Loading branch information
robfrank committed Apr 6, 2017
1 parent 3d92411 commit 7318a0f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ public class OJDBCExtractor extends OAbstractExtractor {
protected String userPassword;
protected String query;
protected String queryCount;

protected String driverClass;
protected Connection conn;
protected Statement stm;
Expand Down Expand Up @@ -109,7 +108,7 @@ public void begin() {
columnTypes = new ArrayList<OType>(rsColumns);

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

OType type = OType.ANY;
Expand Down

0 comments on commit 7318a0f

Please sign in to comment.