Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » SQL changes
SQL changes [message #11510] Sun, 16 September 2007 10:59
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
- Sql::Begin and SqlSession::Begin now perform ClearErrors (there was inherent problem if before Sql there were some ignored errors; in that case OkCommit failed to commit the transaction because of these errors that happened outside transaction block).

- new method

void Sql::Get(Fields fo);

so that if you want to get record structure, you can still use parameter-less Fetch, good if you just want to load some table into memory:

Array<S_MYTABLE> m;
Sql sql
sql * Select(S_MYTABLE()).From(MYTABLE);
while(sql.Fetch()) {
   sql.Get(m.Add());
}


(actually, the remaining problem in this case is creation of S_MYTABLE() temporary in select, but that is IMO just minor issue).

Mirek
Previous Topic: Minor fixes
Next Topic: fixed QuickTabs scrollbar behaviour..
Goto Forum:
  


Current Time: Fri Mar 29 09:00:59 CET 2024

Total time taken to generate the page: 0.01644 seconds