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
"""
2024-01-04 01:11:52 +03:00
Copyright (c) 2006-2024 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