Skip to content

Commit f3568ca

Browse files
Protect against non-string queries
1 parent f4cc904 commit f3568ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/submitplan.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ func changingItemQueriesFromPlan(ctx context.Context, fileName string, lf log.Fi
259259
newQuery := sdp.Query{
260260
Type: mapData.Type,
261261
Method: mapData.Method,
262-
Query: query.(string),
262+
Query: fmt.Sprintf("%v", query),
263263
Scope: scope,
264264
RecursionBehaviour: &sdp.Query_RecursionBehaviour{},
265265
UUID: u[:],

0 commit comments

Comments
 (0)