freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
RE: [freetds] RE: output parameters and "unknown marker"
- 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
-
[freetds] RE: output parameters and "unknown marker",
Alin Sinpalean, 01/07/2005
- <Possible follow-up(s)>
- RE: [freetds] RE: output parameters and "unknown marker", Thompson, Bill D (London), 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Thompson, Bill D (London), 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", ZIGLIO, Frediano, VF-IT, 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Thompson, Bill D (London), 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Thompson, Bill D (London), 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Thompson, Bill D (London), 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Paparo, Joshua, 01/07/2005
- [freetds] RE: output parameters and "unknown marker", Alin Sinpalean, 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", ZIGLIO, Frediano, VF-IT, 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", ZIGLIO, Frediano, VF-IT, 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Thompson, Bill D (London), 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", ZIGLIO, Frediano, VF-IT, 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Thompson, Bill D (London), 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Lowden, James K, 01/07/2005
- RE: [freetds] RE: output parameters and "unknown marker", Thompson, Bill D (London), 01/10/2005
Archive powered by MHonArc 2.6.24.