Home » Developing U++ » U++ TheIDE and Library: Releases and ChangeLogs » SQL changes
SQL changes [message #11510] |
Sun, 16 September 2007 10:59 |
|
mirek
Messages: 14038 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
|
|
|
Goto Forum:
Current Time: Fri Sep 20 03:51:07 CEST 2024
Total time taken to generate the page: 0.02930 seconds
|