MCPcopy Index your code
hub / github.com/dbcli/pgcli / test_escape_for_sql_statement_bytes

Function test_escape_for_sql_statement_bytes

tests/formatter/test_sqlformatter.py:9–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7
8
9def test_escape_for_sql_statement_bytes():
10 bts = b"837124ab3e8dc0f"
11 escaped_bytes = escape_for_sql_statement(bts)
12 assert escaped_bytes == "X'383337313234616233653864633066'"
13
14
15def test_escape_for_sql_statement_number():

Callers

nothing calls this directly

Calls 1

escape_for_sql_statementFunction · 0.90

Tested by

no test coverage detected