| 553 | } |
| 554 | |
| 555 | String IdoPgsqlConnection::Escape(const String& s) |
| 556 | { |
| 557 | AssertOnWorkQueue(); |
| 558 | |
| 559 | String utf8s = Utility::ValidateUTF8(s); |
| 560 | |
| 561 | size_t length = utf8s.GetLength(); |
| 562 | auto *to = new char[utf8s.GetLength() * 2 + 1]; |
| 563 | |
| 564 | m_Pgsql->escapeStringConn(m_Connection, to, utf8s.CStr(), length, nullptr); |
| 565 | |
| 566 | String result = String(to); |
| 567 | |
| 568 | delete [] to; |
| 569 | |
| 570 | return result; |
| 571 | } |
| 572 | |
| 573 | Dictionary::Ptr IdoPgsqlConnection::FetchRow(const IdoPgsqlResult& result, int row) |
| 574 | { |
nothing calls this directly
no test coverage detected