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:1:
/* * This is the PostgreSQL direct network module for Pike. */ //! This is an interface to the PostgreSQL database //! server. This module is independent of any external libraries. //! Note that you @b{do not@} need to have a
-
//! PostgreSQL server running on
your
host to use this module: you can
-
//! connect to the database over a TCP/IP socket.
+
//! PostgreSQL server running on
@b{your@}
host to use this module: you can
+
//! connect to the database over a TCP/IP socket
on a different host
.
//! //! This module replaces the functionality of the older @[Sql.postgres] //! and @[Postgres.postgres] modules. //! //! This module supports the following features: //! @ul //! @item //! PostgreSQL network protocol version 3, authentication methods //! currently supported are: cleartext and MD5 (recommended). //! @item
pike.git/lib/modules/Sql.pmod/pgsql.pike:1189:
case PROTOCOLERROR: msg=sprintf("Protocol error with database %s",host_info()); break; case NOERROR: continue; // Normal production loop } ERROR(a2nls(lastmessage+=({msg}))); } }; // We only get here if there is an error if(err==MAGICTERMINATE) { // Announce connection termination to server
+
catch {
object cs = ci->start(); CHAIN(cs)->add("X\0\0\0\4"); cs->sendcmd(SENDOUT);
-
+
};
terminating=1; err=0; } else if(stringp(err)) { .pgsql_util.sql_result or; if(!objectp(or=portal)) or=this; if(!or._delayederror) or._delayederror=err; #ifdef PG_DEBUGMORE showportalstack("THROWN");