Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 2 of 2 total |
Embedded nulls in parameters to server functions |
Tue, Jun 13 2006 11:55 PM | Permanent Link |
Oliver Bock | As I understand it, Delphi strings are 8-bit clean and can contain null
characters. However when I pass a string containing a null character as a parameter to a remote server function it gets truncated at the other end. I can work around this by using a Blob instead, but it's inconvenient. Is this by design? Oliver |
Wed, Jun 14 2006 1:04 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Oliver,
<< As I understand it, Delphi strings are 8-bit clean and can contain null characters. However when I pass a string containing a null character as a parameter to a remote server function it gets truncated at the other end. I can work around this by using a Blob instead, but it's inconvenient. Is this by design? >> It's accidentally by design. The nature of strings in DBISAM are that they are null-terminated at the engine level, hence the translation back and forth from Delphi strings results in truncation. ElevateDB doesn't have this issue because it uses Delphi strings and widestrings and not null-terminated strings. However, I would also recommend against passing around NULL characters in strings in general. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Tuesday, September 17, 2024 at 04:19 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |