Hey brucey, i'm not sure if this is a problem with tdbstring, or just how sql deals with char(0)'s.
If I insert: concat(char(5),char(0),char(8),char(6),char(0))
into a text field, and try to retrieve it, the tdbstring value returns: 5 8 6 rather than: 5 0 8 6 0.
I have checked the length of the field and it does contain the 0 byte values, just isn't returning them though. I need to achieve this in order to write a range of streams into a mysql field. For now i'm just inserting each asc value, along with a splitter...but that could really slow things down in a more lively environment.
Is this a possible glitch or am I sql-retarded and missing something obvious here? I just don't understand how the field is holding the 0-characters, but not returning them.
Thanks
If I insert: concat(char(5),char(0),char(8),char(6),char(0))
into a text field, and try to retrieve it, the tdbstring value returns: 5 8 6 rather than: 5 0 8 6 0.
I have checked the length of the field and it does contain the 0 byte values, just isn't returning them though. I need to achieve this in order to write a range of streams into a mysql field. For now i'm just inserting each asc value, along with a splitter...but that could really slow things down in a more lively environment.
Is this a possible glitch or am I sql-retarded and missing something obvious here? I just don't understand how the field is holding the 0-characters, but not returning them.
Thanks