Changeset 4513 for trunk/MagicSoft/Mars/macros/sql
- Timestamp:
- 08/05/04 15:03:07 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/macros/sql/readrbk.C
r4443 r4513 51 51 TSQLRow *row; 52 52 53 TList rows;53 Bool_t rc = kFALSE; 54 54 while (row=res->Next()) 55 55 { 56 56 if ((*row)[0]) 57 return kTRUE; 57 { 58 rc = kTRUE; 59 break; 60 } 58 61 } 59 62 60 return kFALSE; 63 delete res; 64 65 return rc; 61 66 } 62 67 … … 146 151 query += "\");"; 147 152 148 if (!serv->Query(query)) 153 TSQLResult *res = serv->Query(query); 154 if (!res) 149 155 cout << "ERROR: " << query << endl << endl; 150 156 else 157 { 158 delete res; 151 159 num++; 160 } 152 161 153 162 entry = "";
Note:
See TracChangeset
for help on using the changeset viewer.