Greetings all,
Disclaimer: The following is a best guess. I am by no means a Sybase guru.
My first question would be, are you sure the datatype should be varchar(1000)?
That seems to ring a bell in my memory about varchar size limit being <=255 or something like that.
Perhaps Sybase is converting it internally into something like a TEXT field or Blob since you mentioned that a direct query gives you the results you are looking for? I am wondering if Sybase is labeling the column as a varchar when Perl is trying to use it? possibly leading to the clipping you are seeing.
Not really an answer I know but one thing to possibly try is changing the datatype of that column to a Text/Blob and read the
docs about
LongReadLen to figure out how to fetch it out.
-InjunJoel
"I do not feel obliged to believe that the same God who endowed us with sense, reason and intellect has intended us to forego their use." -Galileo