Roxen.git / server / modules / tags / sqltag.pike

version» Context lines:

Roxen.git/server/modules/tags/sqltag.pike:1:   /* -  * $Id: sqltag.pike,v 1.33 1999/04/11 13:25:03 mast Exp $ +  * $Id: sqltag.pike,v 1.34 1999/11/23 20:12:40 peter Exp $    *    * A module for Roxen Challenger, which gives the tags    * <SQLQUERY> and <SQLOUTPUT>.    *    * Henrik Grubbström 1997-01-12    */    - constant cvs_version="$Id: sqltag.pike,v 1.33 1999/04/11 13:25:03 mast Exp $"; + constant cvs_version="$Id: sqltag.pike,v 1.34 1999/11/23 20:12:40 peter Exp $";   constant thread_safe=1;   #include <module.h>      /* Compatibility with old versions of the sqltag module. */   // #define SQL_TAG_COMPAT      inherit "module";   inherit "roxenlib";      import Array;
Roxen.git/server/modules/tags/sqltag.pike:155:    contents = "<false>";    }    } else if (error = catch(result = con->query(args->query))) {    if (!args->quiet) {    if (args->log_error && QUERY(log_error)) {    report_error(sprintf("SQLTAG: Query %O failed:\n"    "%s\n",    args->query, describe_backtrace(error)));    }    contents = ("<h3>Query \"" + html_encode_string(args->query) -  + "\" failed: " + html_encode_string(con->error()) +  + "\" failed: " + html_encode_string(con->error() || "")    + "</h1>\n<false>");    } else {    contents = "<false>";    }    } else if (result && sizeof(result))    {    contents = do_output_tag( args, result, contents, request_id )    + "<true>";    } else {    contents = "<false>";