Remove LOCK/SET from restricted keywords

This commit is contained in:
Dan Sosedoff 2019-02-20 20:29:28 -06:00
parent 5bb6378e94
commit b83f52707a

View File

@ -6,7 +6,7 @@ import (
) )
// List of keywords that are not allowed in read-only mode // List of keywords that are not allowed in read-only mode
var restrictedKeywords = regexp.MustCompile(`(?mi)\s?(CREATE|INSERT|DROP|DELETE|TRUNCATE|GRANT|OPEN|IMPORT|COPY|LOCK|SET)\s`) var restrictedKeywords = regexp.MustCompile(`(?mi)\s?(CREATE|INSERT|DROP|DELETE|TRUNCATE|GRANT|OPEN|IMPORT|COPY)\s`)
// Get short version from the string // Get short version from the string
// Example: 10.2.3.1 -> 10.2 // Example: 10.2.3.1 -> 10.2