DescribeParams = true raises Data type not supported error

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

DescribeParams = true raises Data type not supported error

Post by upscene » Wed 07 Oct 2015 12:42

Hi,

I have Options.DescribeParams set to True on a TIBCQuery. When I prepare a query like this:

Code: Select all

select *
from rdb$database
where :p is null
I get "Data type is not supported". I fully understand that this works fine if I set DescribeParams to False, but in my application, I try to display the data type for parameters before users enter values.

Now, wouldn't it be better if the data type for this parameter simply stayed "ftUnknown" instead of raising the error? The user then could select a data type or keep the item Null.

With regards,

Martijn Tonies
Upscene Productions

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: DescribeParams = true raises Data type not supported error

Post by ViktorV » Thu 08 Oct 2015 10:45

If you want IBDAC not to generate the "Data type is not supported" error when DescribeParams is enabled, please post this suggestion at our user voice forum: https://devart.uservoice.com/forums/104 ... e-firebird If the suggestion gets a lot of votes, we will consider the possibility to implement it.

upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

Re: DescribeParams = true raises Data type not supported error

Post by upscene » Thu 08 Oct 2015 12:37

Would it be hard to implement?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: DescribeParams = true raises Data type not supported error

Post by ViktorV » Fri 09 Oct 2015 14:32

The "Data type is not supported" error generated when DescribeParams is enabled - is the standard behavior of our components, which is used by many our users. If your suggestion at https://devart.uservoice.com gets enough votes, we will consider the possibility to implement it.

upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

Re: DescribeParams = true raises Data type not supported error

Post by upscene » Fri 09 Oct 2015 15:17

I doubt it would be very high on the list.

This could be made backwards compatible easily with either an additional option or .Prepare parameter.

Currently, the exception message ignores the ability for users/developers to fetch parameter types where possible and set those themselves when needed.

Is the exception raised when the DBMS returns "unknown"?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: DescribeParams = true raises Data type not supported error

Post by ViktorV » Mon 12 Oct 2015 10:54

Please clarify, what do you mean by "the DBMS returns "unknown"?

upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

Re: DescribeParams = true raises Data type not supported error

Post by upscene » Thu 22 Oct 2015 17:56

"unknown" for the parameter data type when trying to figure it out?

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: DescribeParams = true raises Data type not supported error

Post by ViktorV » Tue 27 Oct 2015 12:55

We will investigate the possibility to implement this functionality in one of the next versions of IBDAC.

upscene
Posts: 306
Joined: Thu 19 Oct 2006 08:13

Re: DescribeParams = true raises Data type not supported error

Post by upscene » Wed 28 Oct 2015 08:06

Thank you, for interactive applications, detecting parameter data types where possible and let the user decide what data type the "unknown"s are, is very helpful.

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: DescribeParams = true raises Data type not supported error

Post by ViktorV » Fri 06 Nov 2015 14:20

If you have any questions during using our products, please don't hesitate to contact us - and we will try to help you solve them.

Post Reply