Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: DBI Placeholders and DB2 Integers

by mje (Deacon)
on Apr 11, 2012 at 08:06 UTC ( #964469=note: print w/ replies, xml ) Need Help??


in reply to DBI Placeholders and DB2 Integers

As moritz has said, setting DBI_TRACE=15=x.log, running your script and looking at x.log might give you a clue.

Annoyingly you cannot see the Changes file for DBD::DB2 on search.cpan.org unless you browse the sources. http://cpansearch.perl.org/src/IBMTORDB2/DBD-DB2-1.84/Changes doesn't seem to suggest any relevant bugs were fixed between 1.78 and 1.84.

I can happily insert numbers into an integer column using bound parameters with DBD::ODBC and the db2 driver.

Out of interest, exactly what is in ($enc_comp_off, $enc_comp_len, $enc_doc_off, $enc_doc_len) - you didn't show us.


Comment on Re: DBI Placeholders and DB2 Integers
Re^2: DBI Placeholders and DB2 Integers
by moritz (Cardinal) on Apr 11, 2012 at 08:38 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://964469]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (15)
As of 2014-08-28 15:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (263 votes), past polls