row(index).column("ABC") and row().row().row().column("ABC") always referring to row 0 itself
- 主要言語
- Java
- スター
- 130
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi,
I am trying to read the value at ROW index 3 and column ABC, when i execute below code, getting below error message.
Source source = new Source("jdbc:sqlserver://localhost;database=KMSupportShipping_Office;encrypt=true;trustServerCertificate=true;integratedSecurity=True","","");
String Query1 = " select * from bu_customer where id='I15910'";
Table TABLE_BU_Customer = new Table(source, "bu_customer");
assertThat(TABLE_BU_Customer)
.row(3)
.column(7)
.value().isEqualTo("700");
Error:
java.lang.AssertionError: [Value at **index 0** of Column at index 7 (column name : AMOUNT) of bu_customer table]
Expecting:
<"100000.0000">
to be equal to:
<"700">
コントリビューションガイド
調査の方向性
ソースファイルもテストも指定されていません。提供されたクエリを使用して Table、row(3)、column(7) で問題を再現し、次に行の選択がどのように処理されるかを追跡して、要求された行が見つかったときに assertion がインデックス 0 ではなくインデックス 3 を報告することを確認してください。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- java, sql
- 領域
- databases
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100