Skip to content

Commit

Permalink
fix pg/pg hstore qvalue compare, more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Mar 6, 2024
1 parent 8950be7 commit 252c4d4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions flow/e2e/test_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,13 @@ func EnvWaitForEqualTablesWithNames(

pgRows, err := GetPgRows(suite.Connector(), suite.Suffix(), srcTable, cols)
if err != nil {
t.Log(err)
return false
}

rows, err := suite.GetRows(dstTable, cols)
if err != nil {
t.Log(err)
return false
}

Expand Down
3 changes: 3 additions & 0 deletions flow/model/qvalue/qvalue.go
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,9 @@ func compareHstore(value1, value2 interface{}) bool {
}
return string(bytes) == str2
case string:
if v1 == str2 {
return true
}
parsedHStore1, err := hstore_util.ParseHstore(v1)
if err != nil {
panic(err)
Expand Down

0 comments on commit 252c4d4

Please sign in to comment.