Skip to content

Commit

Permalink
fix: fix ut case
Browse files Browse the repository at this point in the history
  • Loading branch information
VarusHsu committed Feb 18, 2024
1 parent 89a04c2 commit 5b9c119
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion database.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,8 @@ func (d database) Query(sqlString string) (Cursor, error) {
func (d database) QueryContext(ctx context.Context, sqlString string) (Cursor, error) {
isRetry := false
for {
rows, err := d.queryContextOnce(ctx, sqlString, isRetry)
sqlStringWithCallerInfo := getCallerInfo(d, isRetry) + sqlString
rows, err := d.queryContextOnce(ctx, sqlStringWithCallerInfo, isRetry)
if err != nil {
isRetry = d.retryPolicy != nil && d.retryPolicy(err)
if isRetry {
Expand Down

0 comments on commit 5b9c119

Please sign in to comment.