virtual void Field(const char *name, Ref f) { if(i) { clist += ", "; qlist += ", "; } clist += name; qlist += "? "; sql->SetParam(i++, f); }
virtual void Field(const char *name, Ref f) { if(!f.IsNull()) { if(clist.GetCount()) { clist += ", "; qlist += ", "; } clist << name; qlist << "? "; sql->SetParam(i++, f); } }
virtual void Field(const char *name, Ref f) { if(clist.GetCount()) { clist += ", "; qlist += ", "; } if(i) { clist += name; qlist += "? "; sql->SetParam(i - 1, f); } i++; }
virtual void Field(const char *name, Ref f) { if(i == 0) { key = name; keyval = f; } else { if(i > 1) list += ", "; list << name << " = ?"; sql->SetParam(i - 1, f); } i++; }