Add UPDATE to list of restricted keywords in read-only mode (#697)
This commit is contained in:
parent
10c90bcd01
commit
f810c0227b
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// List of keywords that are not allowed in read-only mode
|
// List of keywords that are not allowed in read-only mode
|
||||||
reRestrictedKeywords = regexp.MustCompile(`(?mi)\s?(CREATE|INSERT|DROP|DELETE|TRUNCATE|GRANT|OPEN|IMPORT|COPY)\s`)
|
reRestrictedKeywords = regexp.MustCompile(`(?mi)\s?(CREATE|INSERT|UPDATE|DROP|DELETE|TRUNCATE|GRANT|OPEN|IMPORT|COPY)\s`)
|
||||||
|
|
||||||
// Comment regular expressions
|
// Comment regular expressions
|
||||||
reSlashComment = regexp.MustCompile(`(?m)/\*.+\*/`)
|
reSlashComment = regexp.MustCompile(`(?m)/\*.+\*/`)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user