 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Benedikt Geltenpoth Guest
|
Posted: Thu Jul 01, 2004 3:39 pm Post subject: Sybase 11.9.2 Text vs. String |
|
|
Hi,
I'm using a Sybase11.9.2 Enterprise Server with BDE 5.2.0.2 and running into
problems when I try to insert or update a text field in the database. The
text is stored in a String and I'm assigning the content dynaically in a
standard TQuery parameter:
Query.sql.Clear;
Query.sql.Add(' INSERT INTO titles_comments
(title_id,comment_id,title_comment) ');
Query.sql.Add(' VALUES
('+IntToStr(NewTitleId)+','+IntToStr(Self.FItems[Index].CommentId)+',:Commen
tText)');
Query.params.ParamByName('CommentText').asstring:=FItems[Index].CommentText;
That works as long as the length of the String is smaller 256 chars, but I
write garbage if the string is longer.
Question:
Is that a general problem of the BDE?
Is there a workaround for that?
Any help is welcome,
TIA
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|