http://qs321.pair.com?node_id=11104182


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

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).