Re: Oracle parameter problem with OraOLEDB driver
From: Michael Jacobs (iq193_at_earthlink.net)
Date: 03/28/04
- Previous message: Michael Jacobs: "Re: what is the right sql command to get day difference?"
- In reply to: Mick Board: "Oracle parameter problem with OraOLEDB driver"
- Next in thread: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Reply: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Reply: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 27 Mar 2004 19:05:14 -0500
Hi Mick,
As odd as this may sound, try ftBcd as the datatype for the Integer field.
HTH,
Michael
"Mick Board" <mick_board@yahoo.com> wrote in message
news:40641fbd@newsgroups.borland.com...
> Hi,
> I'm in the process of converting a Delphi application from BDE to ADO for
> both Oracle and SQL Server. At this stage I'm only working on the
> conversion for Oracle. I've run into a problem with using the OraOLEDB
> driver and parameter queries. I am using this driver rather than the
> Microsoft driver because of it's support for CLOBs.
>
> I have a query which contains parameters, one of which is an integer. My
> query has its datasource value set to a datasource as it is the detail
part
> of a master detail relationship. The integer parameter that I'm having
> problems with should be joined to a field of the same name (part of the
> select statement) in the master query (returning only records which
match).
> However, I'm receiving an obscure Oracle error message: "Project xyz
raised
> exception class EOleException with message 'Unspecified error'. Process
> stopped. Use Step or Run to continue".
>
> What I'm trying to do works fine in BDE. It also works fine (from what I
> can tell) with Microsoft's version of the drivers. From what I can tell
> this technique also seems to work ok with text data using this driver.
>
> The underlying data is a Number(38) field. I am trying to use an
ftInteger
> datatype, but have also tried the ftfloat and ftLargeint.
>
> I've tried some tests with a simple parameter query (without a datasource
> but integer parameters) and this also seems to cause problems, yet from
help
> from the newsgroups I could get around this one problem by specifying the
> parameter's type in code prior to opening the query. However, this trick
> doesn't seem to work where my query has a datasource.
>
> I am really struggling with this and would appreciate any help (someone
> somewhere must have experienced this before ... I hope).
>
> Thanks in advance,
>
> Mick.
> --
>
>
>
>
>
>
>
> ------------------------------------------------------
> InterNet Australis
> http://www.australis.com.au/
>
>
- Previous message: Michael Jacobs: "Re: what is the right sql command to get day difference?"
- In reply to: Mick Board: "Oracle parameter problem with OraOLEDB driver"
- Next in thread: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Reply: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Reply: Mick Board: "Re: Oracle parameter problem with OraOLEDB driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|