BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sybase 11.9.2 Text vs. String

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Benedikt Geltenpoth
Guest





PostPosted: Thu Jul 01, 2004 3:39 pm    Post subject: Sybase 11.9.2 Text vs. String Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.