mirror of https://github.com/Icinga/icinga2.git
782669f13b
IdoPgsqlConnection::Escape() internally uses PQescapeStringConn() and its
documentation states the following:
Furthermore, PQescapeStringConn does not generate the single quotes that must
surround PostgreSQL string literals; they should be provided in the SQL
command that the result is inserted into.
So it's intended to use the result in 'string' literals, not in E'string'
literals as Icinga did. This results in problems as the behavior of
PQescapeStringConn() depends on how the current connection will interpret
regular single quoted literals, namely on the value of the
standard_conforming_strings variable.
The E'string' literals were initially introduced in
|
||
---|---|---|
.. | ||
schema | ||
CMakeLists.txt | ||
idopgsqlconnection.cpp | ||
idopgsqlconnection.hpp | ||
idopgsqlconnection.ti |