* Allow string fields to be used as primary key

git-svn-id: trunk@12991 -
This commit is contained in:
blikblum 2009-03-31 20:23:13 +00:00
parent 49f2270221
commit 7f6b246136

View File

@ -1492,7 +1492,7 @@ begin
begin
TempItem := PDataRecord(FDeletedItems.List^[iItems]);
SQLTemp := SQLTemp + (TemplateStr +
String(TempItem^.Row[FPrimaryKeyNo]) + ';');
FGetSqlStr[FPrimaryKeyNo](TempItem^.Row[FPrimaryKeyNo]) + ';');
FreeItem(TempItem);
Inc(StatementsCounter);
//ApplyUpdates each 400 statements
@ -1526,9 +1526,9 @@ begin
SQLLine := SQLLine + (FieldDefs[iFields].Name + ' = ' +
FGetSqlStr[iFields](PDataRecord(FUpdatedItems[iItems])^.Row[iFields]) +
WhereKeyNameEqual +
String(PDataRecord(FUpdatedItems[iItems])^.Row[FPrimaryKeyNo]) + ';');
FGetSqlStr[FPrimaryKeyNo](PDataRecord(FUpdatedItems[iItems])^.Row[FPrimaryKeyNo]) + ';');
SQLTemp := SQLTemp + SQLLine;
inc(StatementsCounter);
Inc(StatementsCounter);
//ApplyUpdates each 400 statements
if StatementsCounter = 400 then
begin