Skip to content

Commit

Permalink
tests workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
absorbb committed Jul 17, 2024
1 parent 30e81f5 commit bccd231
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions bulkerlib/implementations/sql/clickhouse.go
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ func (ch *ClickHouse) OpenTx(ctx context.Context) (*TxSQLAdapter, error) {
return nil, fmt.Errorf("failed to open connection: %v", err)
}
db = NewConWithDB(sessionDb, c, sessionId)
time.Sleep(1 * time.Second)
} else {
var err error
db, err = ch.dataSource.Conn(ctx)
Expand Down
1 change: 1 addition & 0 deletions bulkerlib/implementations/sql/tx_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ type ConWithDB struct {
}

func NewConWithDB(db *sql.DB, con *sql.Conn, sessionId string) *ConWithDB {
fmt.Println("OPEN", sessionId)
return &ConWithDB{db: db, con: con, sessionId: sessionId}
}

Expand Down

0 comments on commit bccd231

Please sign in to comment.