sqlmap/plugins/dbms/cratedb/syntax.py

19 lines
447 B
Python
Raw Normal View History

2020-02-02 16:51:24 +03:00
#!/usr/bin/env python
"""
2021-09-08 22:01:41 +03:00
Copyright (c) 2006-2021 sqlmap developers (https://sqlmap.org/)
2020-02-02 16:51:24 +03:00
See the file 'LICENSE' for copying permission
"""
from plugins.generic.syntax import Syntax as GenericSyntax
class Syntax(GenericSyntax):
@staticmethod
def escape(expression, quote=True):
"""
2021-05-27 13:29:40 +03:00
>>> Syntax.escape("SELECT 'abcdefgh' FROM foobar") == "SELECT 'abcdefgh' FROM foobar"
2020-02-02 16:51:24 +03:00
True
"""
return expression