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

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:204: Inside #if constant(SSL.sslfile)
   { return std::read(len,not_all);    }       inline int write(string|array(string) data)    { return std::write(data);    }       void create(Stdio.File stream, SSL.Context ctx)    { rawstream=stream;    std::create(stream,ctx,1,1); +  std::set_blocking(); +  if (!std::connect()) { +  error("Secure connection failed.\n"); +  }    pg::create();    }   }   #endif      //! The result object returned by @[Sql.pgsql()->big_query()], except for   //! the noted differences it behaves the same as @[Sql.sql_result].   //!   //! @seealso   //! @[Sql.sql_result], @[Sql.pgsql], @[Sql.Sql], @[Sql.pgsql()->big_query()]