sqlmap/plugins/dbms/derby/syntax.py

19 lines
447 B
Python
Raw Normal View History

2020-01-20 17:33:45 +03:00
#!/usr/bin/env python
"""
2022-01-03 13:30:34 +03:00
Copyright (c) 2006-2022 sqlmap developers (https://sqlmap.org/)
2020-01-20 17:33:45 +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-01-20 17:33:45 +03:00
True
"""
return expression