Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: print ctx timeout duration (#14400)

p0ny1f6b87586f8d
diff --git a/backend/api/v1/sql_service.go b/backend/api/v1/sql_service.go
index f0efc4d823..1fcfca6a54 100644
--- a/backend/api/v1/sql_service.go
+++ b/backend/api/v1/sql_service.go
@@ -527,7 +527,7 @@ func executeWithTimeout(ctx context.Context, driver db.Driver, conn *sql.Conn, s
select {
case <-ctx.Done():
// canceled or timed out
- return nil, time.Since(start), errors.Errorf("timeout reached: %v", timeout)
+ return nil, time.Since(start), errors.Errorf("timeout reached: %v", ctxTimeout)
default:
// So the select will not block
}