Skip to content

getObject method in JDBC should return an Object #2741

@HTHou

Description

@HTHou

Describe the bug
Currently when using getObject interface in JDBC ResultSet, it will return a String result, which doesn't match the JDBC standard.

See

public Object getObject(int columnIndex) throws SQLException {
try {
return getObject(ioTDBRpcDataSet.findColumnNameByIndex(columnIndex));
} catch (StatementExecutionException e) {
throw new SQLException(e.getMessage());
}
}
@Override
public Object getObject(String columnName) throws SQLException {
return getValueByName(columnName);
}

protected String getValueByName(String columnName) throws SQLException {
try {
return ioTDBRpcDataSet.getValueByName(columnName);
} catch (StatementExecutionException e) {
throw new SQLException(e.getMessage());
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions