-chris
--
*********************************************************************************************************
www.PowerToTheBuilder.com
- Take control of your GUI with a free PB user control library
- Get updates from my blog - blog.PowerToTheBuilder.com
- Get support from - forum.PowerToTheBuilder.com
*********************************************************************************************************
www.Werysoft.com
- Full featured database development tool for ASE, SQL Server, SQL
Anywhere and Oracle
Get productive today!
*********************************************************************************************************
Would you mind trying this?
string s_strg, s_strg2
long i
s_strg = ""
for i = 1 to 33767
if(i <= 32767)then
s_strg += "1"
else
s_strg += "2"
end if
next
UPDATEBLOB mytable
SET clue = :s_strg
WHERE appid = 1
USING SQLCA;
COMMIT;
SELECT clue
INTO :s_strg2
FROM mytable
WHERE appid = 1
USING SQLCA;
mytable is a table with 2 columns(created in Sybase Central)
column 1 is an integer called "appid" with 1 existing row
where appid = 1. The second column is either a long
nvarchar or a long varchar (I've tried both).
In the debugger if you break after the last line and copy
the values of s_strg into a text editor that counts bytes (I
use Ultra Edit) it will show exactly 33767 bytes (32767
bytes of "1" and 1000 bytes of "2"). Then copy the contents
of s_strg2 into the text editor (s_strg2 is the variable
that is filled when retireved from the database) and it is
truncated to exactly 32767 bytes of "1". This seems like a
very straight forward test that clearly shows that the long
varchar or long nvarchar will only go to 32767. What am I
missing?
--
*********************************************************************************************************
One more piece of information I'd like to pass on to those
who might read this in the future.
If you are using a long varchar column in a datawindow, when
you add the column to the datawindow is shows correctly in
the "Data Source" painter as being a long varchar in the
database; however the datawindow treats it as a char(32767)
behind the sceens. In order to get it to work you have to
export the datawindow, manually change the data type from
what it assigned as a char(32767) to char(100000) or
whatever you want, and then import it back into your pbl.