Article View: borland.public.delphi.database
Article #68TSQLStoredProc : EListError 'List index out of bounds(0)'
From: Cam
Date: Wed, 07 May 2003 13:38
Date: Wed, 07 May 2003 13:38
33 lines
2191 bytes
2191 bytes
I am using Delphi 7 on Windows 2000, connecting to DB2 v8.0 running on a Linux backend. Whenever I try to activate ANY TSQLStoredProc that requires parameters I receive an EListError 'List Index out of bounds (0)'. Regardless of how many parameters there are (as long as there's at least one) and their type (i, o, i/o) this same thing happens. I've noticed that there are other people who have posted messages so far using other databases that produced the same problem, with no luck as to a solution. Also, I attempted to run a TSQLStoredProc that required Params on SQL Server 7.0 running on Windows 2000 Server backend and it produced the same result. I have traced into the dbExpress source and found the following problem: The following procedure call I believe is supposed to populate the Params from their persistent state set in the environment. FILE: SqlExpr.pas in Delphi7\source\vcl LINE:4011.. SetProcedureParams(Self.FSQLConnection, FSQLCommand, Params, ProcParams) This calls SetProcedureParams obviously which contains as follows FILE: SqlExpr.pas in Delphi7\source\vcl LINE:1053.. ArgDesc := (PSPParamDesc(ProcParams.Items[I]))^ The ProcParams list is empty!!!! Thus producing an invalid index error. Any solutions would be greatly appreciated, I am going to forward this to Borland as well and see what they come up with.
Technical Details
Message-ID:
<4b2fce.0305070538.7b8da611@posting.google.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 115d96,2f5d3022151b09b,start X-Google-Attributes: gid115d96,public X-Google-ArrivalTime: 2003-05-07 06:38:48 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!postnews1.google.com!not-for-mail From: mcgregoc@hotmail.com (Cam) Newsgroups: borland.public.delphi.database Subject: TSQLStoredProc : EListError 'List index out of bounds(0)' Date: 7 May 2003 06:38:47 -0700 Organization: http://groups.google.com/ Lines: 33 Message-ID: <4b2fce.0305070538.7b8da611@posting.google.com> NNTP-Posting-Host: 209.183.24.32 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1052314727 10022 127.0.0.1 (7 May 2003 13:38:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 7 May 2003 13:38:47 GMT