Skip Menu |

This queue is for tickets about the DBD-Sybase CPAN distribution.

Report information
The Basics
Id: 20445
Status: new
Priority: 0/
Queue: DBD-Sybase

People
Owner: Nobody in particular
Requestors: nick.cabatoff [...] morganstanley.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.07
Fixed in: (no value)



Subject: syb_nsql_nostatus attribute doesn't work
When calling stored procedures using syb_nsql(), the result status of the stored procedure should only be included in the results when syb_nsql_nostatus is false. However, the result status is included regardless of the attribute's setting. Stepping through the nsql code, it looks like the problem is that you set my $nostatus = $dbh->FETCH('syb_nsql_nostatus'); but never use it; instead, you say if ( $DBD::Sybase::syb_nsql_nostatus && $sth->{syb_result_type} == &CS_STATUS_RESULT ) { When I stepped through the code, $DBD::Sybase::syb_nsql_nostatus was undef regardless of the setting of the syb_nsql_nostatus attribute. In other words, the above if statement should be written if ( $nostatus && $sth->{syb_result_type} == &CS_STATUS_RESULT ) {