Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^4: dbi odbc return string getting truncated

by perlnewbiedewbie (Initiate)
on Aug 09, 2019 at 10:16 UTC ( #11104218=note: print w/replies, xml ) Need Help??


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

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?

Replies are listed 'Best First'.
Re^5: dbi odbc return string getting truncated
by erix (Parson) on Aug 09, 2019 at 10:51 UTC

    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
Node Status?
node history
Node Type: note [id://11104218]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2021-02-25 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?