Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^3: dbi odbc return string getting truncated

by talexb (Canon)
on Aug 08, 2019 at 14:41 UTC ( #11104182=note: print w/replies, xml ) Need Help??


in reply to Re^2: dbi odbc return string getting truncated
in thread dbi odbc return string getting truncated

    - is there any tracing available for DBI?

Yes! There is tracing built in to DBI. It's right there in the documentation.

Alex / talexb / Toronto

Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

  • Comment on Re^3: dbi odbc return string getting truncated

Replies are listed 'Best First'.
Re^4: dbi odbc return string getting truncated
by perlnewbiedewbie (Initiate) on Aug 09, 2019 at 10:16 UTC
    Tracing gives me that:
    <- fetchrow_arrayref= ( [ 'S...T...A.........' ] ) [1 items] row1 at + test.perl line 36 STA
    Which is strange, because when I execute it on PostgreSQL it gives:
    <- fetchrow_arrayref= ( [ 'STARTEND' ] ) [1 items] row1 at pgtest.pe +rl line 36 STARTEND
    Is it a Unicode problem?

      cast(<whatever> as string) is not valid postgres.

      You probably want to cast( ... as text).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (5)
As of 2021-10-25 05:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (89 votes). Check out past polls.

    Notices?