VirtualQuery + Batch
Posted: Sat 11 Dec 2021 07:05
Hi,
Is it possible to use batch with virutualTable. I've made the test below :
var
I: Integer;
begin
//---- Sql : Insert
VQ.Sql.Text := 'INSERT INTO P_EXPORT_DATA (USER_ID) VALUES (:USER_ID)';
VQ.Params[0].DataType := ftInteger;
//---- Par bloc de MAX_BATCH
VQ.Params.ValueCount := MAX_BATCH;
for I := 1 to 100 do
VQ.Params[0].AsInteger := I;
VQ.Execute(100,0);
end;
P_EXPORT_DATA VirtualTable with only on field Integer
VQ VirutalQuery
Line in bold throw exception :
Le projet MSat4.exe a déclenché la classe d'exeception EAssertionFailed avec le Message 'Muse be overrided (D:\projectsClone1\Delphi\Dac\Common\source\dbaccess.pas, ligne 3953)
The rest of code seems to works.
The same code with real table and UniQuery Works
I Use delphi XE 8 et Unidac 9.1.1. Projects are on drive D: but directory I've no directory called ProjectsClone1.
Regards.
Is it possible to use batch with virutualTable. I've made the test below :
var
I: Integer;
begin
//---- Sql : Insert
VQ.Sql.Text := 'INSERT INTO P_EXPORT_DATA (USER_ID) VALUES (:USER_ID)';
VQ.Params[0].DataType := ftInteger;
//---- Par bloc de MAX_BATCH
VQ.Params.ValueCount := MAX_BATCH;
for I := 1 to 100 do
VQ.Params[0].AsInteger := I;
VQ.Execute(100,0);
end;
P_EXPORT_DATA VirtualTable with only on field Integer
VQ VirutalQuery
Line in bold throw exception :
Le projet MSat4.exe a déclenché la classe d'exeception EAssertionFailed avec le Message 'Muse be overrided (D:\projectsClone1\Delphi\Dac\Common\source\dbaccess.pas, ligne 3953)
The rest of code seems to works.
The same code with real table and UniQuery Works
I Use delphi XE 8 et Unidac 9.1.1. Projects are on drive D: but directory I've no directory called ProjectsClone1.
Regards.