Changeset 3917 for trunk/tools/database/db.cpp
- Timestamp:
- Aug 2, 2000, 4:18:05 AM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/database/db.cpp
r3899 r3917 1 /* $Id: db.cpp,v 1.1 7 2000-07-29 14:12:47bird Exp $ *1 /* $Id: db.cpp,v 1.18 2000-08-02 02:18:04 bird Exp $ * 2 2 * 3 3 * DB - contains all database routines. … … 941 941 else 942 942 pszQuery += sprintf(pszQuery, ", file = -1"); 943 944 /* Line */ 945 if (pFnDesc->lLine >= 0) 946 pszQuery += sprintf(pszQuery, ", line = %ld", pFnDesc->lLine); 947 else 948 pszQuery += sprintf(pszQuery, ", line = -1"); 943 949 944 950 /* return type */ … … 1166 1172 * @param lSeqNbr Sequence number (in dll). If 0 the use next available number. 1167 1173 * @param lSeqNbrFile Sequence number in file. 1174 * @param lLine Line number (1 - based!). 1168 1175 */ 1169 1176 BOOL _System dbAddDesignNote(signed long lDll, … … 1172 1179 const char *pszText, 1173 1180 signed long lSeqNbr, 1174 signed long lSeqNbrFile) 1181 signed long lSeqNbrFile, 1182 signed long lLine) 1175 1183 { 1176 1184 char szQuery[0x10200]; … … 1209 1217 * Create update query. 1210 1218 */ 1211 sprintf(&szQuery[0], "INSERT INTO designnote(dll, file, seqnbrfile, seqnbr, title, note) "1212 "VALUES (%ld, %ld, %ld, %ld, ",1213 lDll, lFile, lSeqNbrFile, lSeqNbr );1219 sprintf(&szQuery[0], "INSERT INTO designnote(dll, file, seqnbrfile, seqnbr, line, title, note) " 1220 "VALUES (%ld, %ld, %ld, %ld, %ld, ", 1221 lDll, lFile, lSeqNbrFile, lSeqNbr, lLine); 1214 1222 if (pszTitle != NULL && *pszTitle != '\0') 1215 1223 sqlstrcat(&szQuery[0], NULL, pszTitle);
Note:
See TracChangeset
for help on using the changeset viewer.