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:255:
object lcon; PD("CancelRequest\n"); if(!(lcon=getsocket(1))) ERROR("Cancel connect failed\n"); lcon.write(({_c.plugint32(16),_c.plugint32(PG_PROTOCOL(1234,5678)), _c.plugint32(backendpid),cancelsecret})); lcon.close(); } }
+
//! Returns the set of currently active runtimeparameters for
+
//! the open session.
+
//!
+
//! This function is PostgreSQL-specific, and thus it is not available
+
//! through the generic SQL-interface.
+
mapping(string:string) getruntimeparameters() {
+
return runtimeparameter+([]);
+
}
+
//! Returns the old cachedepth, sets the new cachedepth for prepared //! statements automatic caching. //! //! This function is PostgreSQL-specific, and thus it is not available //! through the generic SQL-interface. int setcachedepth(void|int newdepth) { int olddepth=cachedepth; if(!zero_type(newdepth) && newdepth>=0) cachedepth=newdepth; return olddepth;