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:316:
//! through the generic SQL-interface. /*semi*/final void cancelquery() { PD("CancelRequest\n"); .pgsql_util.conxion lcon=getsocket(2); lcon->add_int32(16)->add_int32(PG_PROTOCOL(1234,5678)) ->add_int32(backendpid)->add(cancelsecret)->sendcmd(FLUSHSEND); destruct(lcon); // Destruct explicitly to avoid delayed close #ifdef PG_DEBUGMORE PD("Closetrace %O\n",backtrace()); #endif
-
if(c) {
-
.pgsql_util.conxsess plugbuffer;
-
if(!catch(plugbuffer=c->start(1))) {
-
foreach(qportals->peek_array();;int|.pgsql_util.sql_result portal)
-
if(objectp(portal))
-
portal->_closeportal(plugbuffer);
-
plugbuffer->sendcmd(SENDOUT);
+
}
-
}
-
}
+
//! Changes the connection charset. When set to @expr{"UTF8"@}, the query, //! parameters and results can be Pike-native wide strings. //! //! @param charset //! A PostgreSQL charset name. //! //! @seealso //! @[get_charset()], @[create()], //! @url{http://www.postgresql.org/search/?u=%2Fdocs%2Fcurrent%2F&q=character+sets@}