Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Incident Reports » Incident Reports Reported for Version 1.04 » View Incident Report |
Serious |
Reported By: Joseph Reported On: 7/9/2007 For: Version 1.04 Build 4 |
const _qs = 'select * from testDetails where (Id=:id)' ; var _q : TEDBQuery ; _arr : array of Integer ; // will be initialized with a list of existing ids ..... begin .... initArray; .... _q := TEDBQuery.Create(nil) ; with _q do begin .... SQL.Add(_qs) ; Prepare ; // here my problems start for _i := 1 to StrToIntDef(edtStressCount.Text, 100) do begin _rand := Random(High(_arr)) ; ParamByName('id').AsInteger := _arr[_rand] ; Open ; // only the first iteration returns records. Needs checking log(Format('Result for testId=%u idx=%u id=%u : found %u records '+ '(param=%u', [_i, _rand, _arr[_rand], RecordCount, '+ ParamByName('Id').AsInteger])) ; Close ; end ; ...
This web page was last updated on Wednesday, March 20, 2024 at 07:22 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |