Changeset 258 for Network/CoolWeb
- Timestamp:
- Jul 26, 2011, 1:05:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Network/CoolWeb/Persistence/USqlDatabase.pas
r250 r258 312 312 StringReplace(Value, '"', '\"', [rfReplaceAll]); 313 313 if Value = 'NOW()' then DbValues := DbValues + ',' + Value 314 else DbValues := DbValues + ', ' + Data.Keys[I] + '=' + '"' + Value + '"';314 else DbValues := DbValues + ',`' + Data.Keys[I] + '` =' + '"' + Value + '"'; 315 315 end; 316 316 System.Delete(DbValues, 1, 1); … … 318 318 DbResult := TDbRows.Create; 319 319 if Schema <> '' then Schema := '`' + Schema + '`.'; 320 Query(DbResult, 'UPDATE ' + Schema + '`' + ATable + '` SET (' + DbValues + ')WHERE ' + Condition);320 Query(DbResult, 'UPDATE ' + Schema + '`' + ATable + '` SET ' + DbValues + ' WHERE ' + Condition); 321 321 finally 322 322 DbResult.Free;
Note:
See TracChangeset
for help on using the changeset viewer.