Branch: Tag:

1999-11-23

1999-11-23 20:12:40 by Peter Bortas <zino@lysator.liu.se>

Fix for problem with con->error() == 0.

Rev: server/modules/tags/sqltag.pike:1.34

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>.
7:    * 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>   
162:    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>";