Closed fukasawah closed 4 years ago
@fukasawah Thank you for reporting the issue!
As you wrote, the way to sort column names is incorrect. I'll correct it before long.
@fukasawah Thank you for reporting the issue!
As you wrote, the way to sort column names is incorrect. I'll correct it before long.
I've created the PR #191 .
Thanks! I tried that PR and it worked in my environment!!
I'm seeing this problem in postgresql and oracle.
Full config, log and test data here. >> reports.zip
I think, this code has problem if 2 incremental_columns and same column name length.
https://github.com/embulk/embulk-input-jdbc/blob/v0.10.1/embulk-input-jdbc/src/main/java/org/embulk/input/jdbc/JdbcInputConnection.java#L374-L379
For the same column name, I think it will just overwrite the value. (https://wandbox.org/permlink/wDmiPkNCwQJUkVWc)
Then I believe that one of the placeholders is not replaced and the next query is generated, resulting in an issue
Exception log.
On the basis of a different length column name, it passed. (see: reports.zip/config-ok.yml)