Changeset 148

Show
Ignore:
Timestamp:
05/30/08 16:48:59 (7 months ago)
Author:
zork
Message:

ported fixes to #26,#27 from trunk

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/debea_1_2/wxdba/wxdba/sqlistream.cpp

    r40 r148  
    6666 
    6767bool  
     68SQLIStream::Get(dba::Storeable* pObject, const wxString& pRootTable) { 
     69  try { 
     70    return dba::SQLIStream::get(pObject, pRootTable.empty() ? (const char*)NULL : Tools::ConvertToDbStr(pRootTable, getConversionSpecs().mDbCharset).c_str()); 
     71  } catch (const dba::Exception& pEx) { 
     72    Exception::Rethrow(pEx); 
     73  }; 
     74}; 
     75 
     76bool  
    6877SQLIStream::UpdateVars() { 
    6978  try { 
  • branches/debea_1_2/wxdba/wxdba/sqlistream.h

    r20 r148  
    2525    void OpenFromQuery(dba::Storeable& pClass,const wxString& pQuery, const wxString& pMainTable = wxEmptyString); 
    2626    bool GetNext(dba::Storeable* pObject); 
     27    bool Get(dba::Storeable* pObject, const wxString& pRootTable = wxEmptyString); 
    2728    bool UpdateVars(); 
    2829    DbResult* SendQuery(const wxString& pQuery) const; 
  • branches/debea_1_2/wxdba/wxdba/wxutils.cpp

    r42 r148  
    115115Tools::SetDateTime(dba::Storeable* pObj,wxDateTime& pDest, const wxDateTime& pSrc) { 
    116116  if (pDest.IsValid() && pSrc.IsValid()) { 
    117     if (pDest != pSrc) 
     117    if (pDest != pSrc) { 
    118118      pDest = pSrc; 
    119119      pObj->setChanged(); 
     120    } 
    120121  } else if (!pDest.IsValid() && !pSrc.IsValid()) { 
    121122    //no change