Changeset 9001


Ignore:
Timestamp:
07/16/08 20:38:09 (16 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r9000 r9001  
    1818
    1919                                                 -*-*- END OF LINE -*-*-
     20
     21 2008/07/16 Thomas Bretz
     22
     23   * msql/MSQLMagic.[h,cc]:
     24     - the wehere clause can now be omitted in Update
     25
     26
    2027
    2128 2008/07/14 Thomas Bretz
  • trunk/MagicSoft/Mars/msql/MSQLMagic.cc

    r8996 r9001  
    269269    query += " SET ";
    270270    query += vars;
    271     query += " WHERE ";
    272     query += where;
     271
     272    if (!TString(where).IsNull())
     273    {
     274        query += " WHERE ";
     275        query += where;
     276    }
    273277
    274278    // Check for dummy mode
  • trunk/MagicSoft/Mars/msql/MSQLMagic.h

    r8996 r9001  
    4747
    4848    Int_t Insert(const char *table, const char *vars, const char *where=0);
    49     Int_t Update(const char *table, const char *vars, const char *where);
     49    Int_t Update(const char *table, const char *vars, const char *where=0);
    5050    Int_t Delete(const char *table, const char *where);
    5151    Int_t InsertUpdate(const char *table, const char *col, const char *val, const char *vars);
Note: See TracChangeset for help on using the changeset viewer.