Diff for /parser3/src/classes/void.C between versions 1.37 and 1.38

version 1.37, 2007/02/03 18:08:38 version 1.38, 2007/04/23 10:30:10
Line 74  public: Line 74  public:
         bool add_column(SQL_Error& /*error*/, const char* /*str*/, size_t /*length*/) { /* ignore */ return false; }          bool add_column(SQL_Error& /*error*/, const char* /*str*/, size_t /*length*/) { /* ignore */ return false; }
         bool before_rows(SQL_Error& error) {          bool before_rows(SQL_Error& error) {
                 // there are some result rows, which is wrong                  // there are some result rows, which is wrong
                 error=SQL_Error("parser.runtime",                  error=SQL_Error(PARSER_RUNTIME,
                         /*statement_string,*/                          /*statement_string,*/
                         "must return nothing");                          "must return nothing");
                 return true;                  return true;
Line 102  static void _sql(Request& r, MethodParam Line 102  static void _sql(Request& r, MethodParam
                                         bind=vbind->get_hash();                                          bind=vbind->get_hash();
                                 }                                  }
                                 if(valid_options!=options->count())                                  if(valid_options!=options->count())
                                         throw Exception("parser.runtime",                                          throw Exception(PARSER_RUNTIME,
                                                 0,                                                  0,
                                                 "called with invalid option");                                                  "called with invalid option");
                         } else                          } else
                                 throw Exception("parser.runtime",                                  throw Exception(PARSER_RUNTIME,
                                         0,                                          0,
                                         "options must be hash");                                          "options must be hash");
         }          }
Line 135  static void _sql(Request& r, MethodParam Line 135  static void _sql(Request& r, MethodParam
 static void _left_right(Request& r, MethodParams& params) {  static void _left_right(Request& r, MethodParams& params) {
         ssize_t sn=params.as_int(0, "n must be int", r);          ssize_t sn=params.as_int(0, "n must be int", r);
         if(sn<0)          if(sn<0)
                 throw Exception("parser.runtime",                  throw Exception(PARSER_RUNTIME,
                         0,                           0, 
                         "n(%d) must be >=0", sn);                          "n(%d) must be >=0", sn);
   
Line 145  static void _left_right(Request& r, Meth Line 145  static void _left_right(Request& r, Meth
 static void _mid(Request& r, MethodParams& params) {  static void _mid(Request& r, MethodParams& params) {
         ssize_t sbegin=params.as_int(0, "p must be int", r);          ssize_t sbegin=params.as_int(0, "p must be int", r);
         if(sbegin<0)          if(sbegin<0)
                 throw Exception("parser.runtime",                  throw Exception(PARSER_RUNTIME,
                         0,                           0, 
                         "p(%d) must be >=0", sbegin);                          "p(%d) must be >=0", sbegin);
   
         if(params.count()>1) {          if(params.count()>1) {
                 ssize_t sn=params.as_int(1, "n must be int", r);                  ssize_t sn=params.as_int(1, "n must be int", r);
                 if(sn<0)                  if(sn<0)
                         throw Exception("parser.runtime",                          throw Exception(PARSER_RUNTIME,
                                 0,                                   0, 
                                 "n(%d) must be >=0", sn);                                  "n(%d) must be >=0", sn);
         }          }

Removed from v.1.37  
changed lines
  Added in v.1.38


E-mail: