Branch: Tag:

2000-03-25

2000-03-25 03:05:02 by Martin Nilsson <mani@lysator.liu.se>

Fix empty result error bug.

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

5:   //   // Henrik Grubbström 1997-01-12    - constant cvs_version="$Id: sqltag.pike,v 1.50 2000/03/25 02:28:11 nilsson Exp $"; + constant cvs_version="$Id: sqltag.pike,v 1.51 2000/03/25 03:05:02 nilsson Exp $";   constant thread_safe=1;   #include <module.h>   
141:    if (args["do-once"])    return do_output_tag( args, ({([])}), contents, id )+ "<true>";    -  if(args->quiet) { +     id->misc->defines[" _ok"] = 0; -  return ""; +    } -  RXML.run_error("No SQL return values."); - } +       class TagSqlplugin {    inherit RXML.Tag;
172:    else    RXML.parse_error("No insert_id present.");    -  return "<true />"; +  id->misc->defines[" _ok"] = 1;   }      string tag_sqltable(string tag, mapping args, RequestID id)
215:    ret=make_container("table", args-(["host":"", "database":"", "user":"", "password":"",    "query":"", "nullvalue":""]), ret);    -  return ret+"<true>"; +  id->misc->defines[" _ok"] = 1; +  return ret;    }    -  RXML.run_error("No SQL return values."); +  id->misc->defines[" _ok"] = 0;   }