pike.git / lib / modules / Sql.pmod / postgres.pike

version» Context lines:

pike.git/lib/modules/Sql.pmod/postgres.pike:1:   /*    * This is part of the Postgres module for Pike.    *    */      #pike __REAL_VERSION__      // Cannot dump this since the #if constant(...) check below may depend   // on the presence of system libs at runtime. - constant dont_dump_program = 1; + optional constant dont_dump_program = 1;      #if constant(Postgres.postgres)      //! This is an interface to the Postgres (Postgres95, PostgreSQL) database   //! server. This module may or may not be available on your Pike,   //! depending on whether or not the appropriate include and library files could   //! be found at compile-time. Note that you @b{do not@} need to have a   //! Postgres server running on your host to use this module: you can   //! connect to the database over a TCP/IP socket.   //!
pike.git/lib/modules/Sql.pmod/postgres.pike:425:    }    if(search(q,name)<0)    continue; // Omit unused references    }    from[rep]=name;    string rval;    if(multisetp(value)) {    rval=sizeof(value) ? indices(value)[0] : "";    }    else { -  if(zero_type(value)) +  if(undefinedp(value))    paramValues[pi++]=UNDEFINED;    else {    if(stringp(value) && String.width(value)>8)    value=string_to_utf8(value);    paramValues[pi++]=(string)value;    }    rval="$"+(string)pi;    }    to[rep++]=rval;    }
pike.git/lib/modules/Sql.pmod/postgres.pike:465:   /*    * If libpq wasn't available at compile time, the pgsql-module can provide    * near the same functionality as the postgres module.    */      //! Maps SQL-urls for   //! @tt{postgres://[user[:password]@@][hostname][:port][/database]@}   //! onto   //! @tt{pgsql://[user[:password]@@][hostname][:port][/database]@}   //! - //! The reason this happens, is because Pike was compiled without libpq + //! This only happens if Pike was compiled without libpq   //! support, therefore Pike falls back to the faster, smaller memory   //! footprint, more advanced and native PostgreSQL driver called @[Sql.pgsql].   //!   //! @seealso   //! @[Sql.pgsql], @[Sql.Sql]   inherit Sql.pgsql;   #endif /* constant(Postgres.postgres) */