pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql.pike:206:
//! //! @note //! The string returned is not newline-terminated. //! //! @param clear //! To clear the error, set it to @expr{1@}. //! //! @seealso //! @[big_query()] /*semi*/final string error(void|int clear) {
-
throwdelayederror(
this
);
+
throwdelayederror(
proxy
);
return proxy.geterror(clear); } //! This function returns a string describing what host are we talking to, //! and how (TCP/IP or UNIX socket). //! //! @seealso //! @[server_info()] /*semi*/final string host_info() { return proxy.host_info();
pike.git/lib/modules/Sql.pmod/pgsql.pike:1023:
//! be viewed as a limited protection against SQL-injection attacks. //! To make it support multiple queries in one querystring, use the //! @ref{:_text@} option (not recommended). //! //! @seealso //! @[big_typed_query()], @[Sql.Connection], @[Sql.Result], //! @[query()], @[Sql.pgsql_util.Result] /*semi*/final variant .pgsql_util.Result big_query(string q, void|mapping(string|int:mixed) bindings, void|int _alltyped) {
-
throwdelayederror(
this
);
+
throwdelayederror(
proxy
);
string preparedname = ""; mapping(string:mixed) options = proxy.options; .pgsql_util.conxion c = proxy.c; int forcecache = -1, forcetext = options.text_query; int syncparse = zero_type(options.sync_parse) ? -1 : options.sync_parse; if (proxy.waitforauthready) waitauthready(); string cenc = proxy.runtimeparameter[CLIENT_ENCODING]; switch(cenc) {