Allow explain select / explain query plan select

Closes #201
This commit is contained in:
Simon Willison 2018-04-11 15:39:43 -07:00
commit cca8bf36fe
No known key found for this signature in database
GPG key ID: 17E2DEA2588B7F52

View file

@ -119,6 +119,8 @@ class InvalidSql(Exception):
allowed_sql_res = [
re.compile(r'^select\b'),
re.compile(r'^explain select\b'),
re.compile(r'^explain query plan select\b'),
re.compile(r'^with\b'),
]
disallawed_sql_res = [