Subject | Re: RES: RES: RES: [firebird-support] Null and parameters |
---|---|
Author | pi3k14 |
Post date | 2006-01-09T10:16:48Z |
--- In firebird-support@yahoogroups.com, FabrÃcio Fadel Kammer
<ffkammer@c...> wrote:
/* declared as varchar, not cstring ! */
DECLARE EXTERNAL FUNCTION ib_strlen
varchar(32765) CHARACTER SET WIN1252
RETURNS INTEGER BY VALUE
ENTRY_POINT 'IB_UDF_strlen' MODULE_NAME 'ib_udf';
SELECT C.NOME FROM CUSTOMERS AS C WHERE ib_strlen( :pCode ) = 0 OR C.
CODIGO = :pCode;
it seems like this does some runtime type checking and does the right
ting,
hth
<ffkammer@c...> wrote:
>the
> OK Alam,
>
> But the problem is the follow: I'm working in a module that export
> registers from the database to ascii files. This module works inOracle
> today. This solution is for optional parameters where the user canfill
> or not it.file,
> The SQL that will recover the registers from the database is in a
> than I open this file on my module, get the sql instruction andrecover
> the parameters than I show a grid with preformated fields to theuser
> fill the parameters.the
> Then the stored procedures is not the ideal solution because I've
> leave free the tables that I'll use in the sql instruction.and
> Some customers mine have the necessity to export data to predefined
> layouts that are used to do the integration with another softwares
> with this module I'll be able to create the ascii file layoutswithout
> modify my software.the
>
> Because this I need to create a form to have optional parameters on
> query... but the parameter must have on the query, because my systemthe
> don't know how query it will have to run... I can have any query on
> text file.Here is one strange ting you might try, it have helped in our cases:
>
> Did you understand my question?
>
> Regards
>
> FabrÃcio F. Kammer
>
/* declared as varchar, not cstring ! */
DECLARE EXTERNAL FUNCTION ib_strlen
varchar(32765) CHARACTER SET WIN1252
RETURNS INTEGER BY VALUE
ENTRY_POINT 'IB_UDF_strlen' MODULE_NAME 'ib_udf';
SELECT C.NOME FROM CUSTOMERS AS C WHERE ib_strlen( :pCode ) = 0 OR C.
CODIGO = :pCode;
it seems like this does some runtime type checking and does the right
ting,
hth