We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dc93b3 commit fe5811fCopy full SHA for fe5811f
server/handler/query.go
@@ -183,8 +183,7 @@ func unmarshallUAST(data interface{}) ([]*uast.Node, error) {
183
return nodes, nil
184
}
185
186
-// addLimit adds LIMIT to the query, performing basic tests to skip it
187
-// for DESCRIBE TABLE, SHOW TABLES, and avoid '; limit'
+// addLimit adds LIMIT to the query if it's a SELECT, avoiding '; limit'
188
func addLimit(query string, limit int) string {
189
if limit <= 0 {
190
return query
0 commit comments