Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

DBI::mysql - bind_param_inout failed: Output parameters not implemented

by andreas1234567 (Vicar)
on Jan 11, 2011 at 21:14 UTC ( [id://881765]=perlquestion: print w/replies, xml ) Need Help??

andreas1234567 has asked for the wisdom of the Perl Monks concerning the following question:

DBD::mysql does not support bind_param_inout as is documented in this 4 year old bug. I am trying to understand how hard it would be to implement (and I am not an XS Monk by any standard). Is it more difficult to implement for MySQL than e.g. DB2?
if( is_inout ) { phs->sv = value; /* Make a reference to the input variable */ SvREFCNT_inc( value ); /* Increment reference to variable */ if( SQL_PARAM_INPUT != phs->paramType ) imp_sth->bHasOutput = 1; if( SQL_PARAM_OUTPUT != phs->paramType ) imp_sth->bHasInput = 1; if( maxlen > 0 ) { maxlen++; /* Add one for potential null terminator */ /* Allocate new buffer only if current buffer isn't big enough */ if( maxlen > phs->bufferSize ) { if( 0 == phs->bufferSize ) /* new buffer */ Newc( 1, phs->buffer, maxlen, SQLCHAR, void* ); else Renewc( phs->buffer, maxlen, SQLCHAR, void* ); phs->bufferSize = maxlen; } } }
Update: I got feedback from Patrick saying he would look into the matter.
--
No matter how great and destructive your problems may seem now, remember, you've probably only seen the tip of them. [1]

Replies are listed 'Best First'.
Re: DBI::mysql - bind_param_inout failed: Output parameters not implemented
by mje (Curate) on Jan 12, 2011 at 11:10 UTC

    I'd doubt it is that complicated but if you don't know XS you might find it a challenge. On the other hand the fact it is not implemented suggests there might be more to it than it seems. You could always get help on the dbi-users mailing list (see dbi) or you could contact Patrick (if he is still maintaining it).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://881765]
Approved by Corion
Front-paged by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2024-04-18 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found