logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
String max length?

 
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support
View previous topic :: View next topic  
Author Message
Morpheus



Joined: 18 Oct 2006
Posts: 39

PostPosted: Sun May 20, 2007 21:29    Post subject: String max length? Reply with quote

Does nwnx4 impose any maximum length restrictions on strings retrieved from the database?

Going to do some tests now, but wanted to fire off a quick question about it.

Morph


Last edited by Morpheus on Sun May 20, 2007 21:59; edited 1 time in total
Back to top
View user's profile Send private message
Morpheus



Joined: 18 Oct 2006
Posts: 39

PostPosted: Sun May 20, 2007 21:45    Post subject: Reply with quote

Yeah, in 1.07 it seems to truncate text coming back from the db. The datatype is 'text' and issuing the SQL in mysql client returns the entire string.

I guess its cap'd at 255 or something?

Morph
Back to top
View user's profile Send private message
Papillon
x-man


Joined: 28 Dec 2004
Posts: 1060
Location: Germany

PostPosted: Sun May 20, 2007 22:32    Post subject: Reply with quote

There are two functions GetData and GetDataText. The former retrieves exactly strlen(sSmalColSpacer) (=128) at max, the latter retrieves 8*strlen(sSmalColSpacer) at max (from the top of my head). If you need more, then either enlarge the SmallCollSpacer constant, or enlarge the for-loop in GetDataText.

In 1.08, there wil be a 65K limit per column, which is set at compile time (i.e. it can be set abitrarly large if the need arises).
_________________
Papillon
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Morpheus



Joined: 18 Oct 2006
Posts: 39

PostPosted: Sun May 20, 2007 23:20    Post subject: Reply with quote

Ahh, ok. I wasn't aware of the latter function. Sounds like its what I need.

thanks Papillon!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Technical support All times are GMT + 2 Hours
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, 2005 phpBB Group