Changeset 380 for tools/dbc_export/DBCExport.pas
- Timestamp:
- Mar 11, 2010, 7:21:43 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tools/dbc_export/DBCExport.pas
r370 r380 81 81 if HasOption('q', 'sql_query') then begin 82 82 SQLquery := GetOptionValue('q', 'sql_query'); 83 SQLquery := StringReplace(SQLquery, '\ ', ' ', [rfReplaceAll]); 84 SQLquery := StringReplace(SQLquery, '\`', '`', [rfReplaceAll]); 85 WriteLn(SQLquery); 83 86 end; 84 87 end; … … 197 200 for X := 1 to Length(ColumnTypeDefinition) do begin 198 201 if ColumnTypeDefinition[X] = 's' then begin 199 Text := DBRows.Data[IndexRowData - 1].Values[' text' + IntToStr(I)];202 Text := DBRows.Data[IndexRowData - 1].Values['Text' + IntToStr(I)]; 200 203 SetString(Y, X - 1, Text); 201 204 I := I + 1; … … 219 222 Count := DBRows.Count; 220 223 for I := 1 to Count do begin 221 Entry := StrToInt(DBRows.Data[ i - 1].Values['entry']);224 Entry := StrToInt(DBRows.Data[I - 1].Values['Entry']); 222 225 223 226 if (I = 127) then SetLength(IndexTable, Entry + 1); … … 238 241 try 239 242 for I := 0 to DBRows.Count - 1 do begin 240 if (StrToInt(DBRows.Data[i].Values[' entry']) = Entry) then begin243 if (StrToInt(DBRows.Data[i].Values['Entry']) = Entry) then begin 241 244 Result := I; 242 245 Exit;
Note:
See TracChangeset
for help on using the changeset viewer.