Skip to Content.
Sympa Menu

freetds - RE: [freetds] RE: output parameters and "unknown marker"

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "ZIGLIO, Frediano, VF-IT" <Frediano.Ziglio AT vodafone.com>
  • To: "FreeTDS Development Group" <freetds AT lists.ibiblio.org>
  • Subject: RE: [freetds] RE: output parameters and "unknown marker"
  • Date: Fri, 7 Jan 2005 14:20:01 +0100

>
> Josh, Freddy,
>
> The following change to src/dblib/rpc.c
> seems to fix the problem with NULL output parameters...
>
> in function param_info-alloc():
>
> tdsdump_log(TDS_DBG_INFO1, "parm_info_alloc(): parameter null-ness =
> %d\n", param_is_null);
>
> - if (param_is_null) {
> + if (param_is_null || (p->status & DBRPCRETURN)) {
>
> Would this be OK do you think freddy ?
> Josh, could you test it out ?
>
> Bill
>

If param is input/output and not null you pass also a null input
parameter, perhaps patch should be

- if (param_is_null) {
- temp_datalen = 0;
- temp_value = NULL;
+ if (param_is_null || (p->status & DBRPCRETURN)) {
+ if (param_is_null) {
+ temp_datalen = 0;
+ temp_value = NULL;
+ }

There should be a function that return nullable type from not-nullable.

freddy77




Archive powered by MHonArc 2.6.24.

Top of Page