Unidac (Interbase) - where :PARAM='' fail

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Petriukx
Posts: 12
Joined: Tue 06 Jun 2006 11:17

Unidac (Interbase) - where :PARAM='' fail

Post by Petriukx » Thu 12 Feb 2015 11:14

Hello again

I have problems with Unidac, Interbase provider when i try to open query on any interbase/firebird database with simple SQL:


select * from RDB$DATABASE
WHERE :DATA = ''


Error: Dynamic SQL Error
SQL error code = -303
arithmetic exception, numeric overflow, or string truncation
string right truncation

All bad things here is from :DATA='' SQL part.
How to solve this problem as soon as posible?

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

Re: Unidac (Interbase) - where :PARAM='' fail

Post by ViktorV » Fri 13 Feb 2015 09:55

Try to set the DescribeParams option to True:

Code: Select all

  UniQuery.SpecificOptions.Values['DescribeParams'] := 'True';

Petriukx
Posts: 12
Joined: Tue 06 Jun 2006 11:17

Re: Unidac (Interbase) - where :PARAM='' fail

Post by Petriukx » Fri 13 Feb 2015 11:36

Thanks it worked well.

But can you explain a little bit more what this option do and how it effects other situations. Should i set it by default to all project querys or only in few - where problem persists?..

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

Re: Unidac (Interbase) - where :PARAM='' fail

Post by ViktorV » Fri 13 Feb 2015 12:48

You can find the description of this option in our documentation: http://www.devart.com/ibdac/docs/devart ... params.htm. If you have any specific issues after reading the article, please ask them - and we will answer you.

Post Reply