Changeset 148
- Timestamp:
- 05/30/08 16:48:59 (7 months ago)
- Files:
-
- branches/debea_1_2/wxdba/wxdba/sqlistream.cpp (modified) (1 diff)
- branches/debea_1_2/wxdba/wxdba/sqlistream.h (modified) (1 diff)
- branches/debea_1_2/wxdba/wxdba/wxutils.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/debea_1_2/wxdba/wxdba/sqlistream.cpp
r40 r148 66 66 67 67 bool 68 SQLIStream::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 76 bool 68 77 SQLIStream::UpdateVars() { 69 78 try { branches/debea_1_2/wxdba/wxdba/sqlistream.h
r20 r148 25 25 void OpenFromQuery(dba::Storeable& pClass,const wxString& pQuery, const wxString& pMainTable = wxEmptyString); 26 26 bool GetNext(dba::Storeable* pObject); 27 bool Get(dba::Storeable* pObject, const wxString& pRootTable = wxEmptyString); 27 28 bool UpdateVars(); 28 29 DbResult* SendQuery(const wxString& pQuery) const; branches/debea_1_2/wxdba/wxdba/wxutils.cpp
r42 r148 115 115 Tools::SetDateTime(dba::Storeable* pObj,wxDateTime& pDest, const wxDateTime& pSrc) { 116 116 if (pDest.IsValid() && pSrc.IsValid()) { 117 if (pDest != pSrc) 117 if (pDest != pSrc) { 118 118 pDest = pSrc; 119 119 pObj->setChanged(); 120 } 120 121 } else if (!pDest.IsValid() && !pSrc.IsValid()) { 121 122 //no change
