Skip to content

Commit fe5811f

Browse files
committed
Small doc change for /query handler addLimit
Signed-off-by: Carlos Martín <[email protected]>
1 parent 7dc93b3 commit fe5811f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/handler/query.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ func unmarshallUAST(data interface{}) ([]*uast.Node, error) {
183183
return nodes, nil
184184
}
185185

186-
// addLimit adds LIMIT to the query, performing basic tests to skip it
187-
// for DESCRIBE TABLE, SHOW TABLES, and avoid '; limit'
186+
// addLimit adds LIMIT to the query if it's a SELECT, avoiding '; limit'
188187
func addLimit(query string, limit int) string {
189188
if limit <= 0 {
190189
return query

0 commit comments

Comments
 (0)