Subject | pass string that contains ascii (0) |
---|---|
Author | Nick Upson |
Post date | 2007-08-07T14:12:52Z |
I'm using firebird 1.5.4 on fedora core 5
from C, using EXEC SQL INSERT (rather than the isc_ calls) I am trying
to get a string of the form below into the database. I've tried
inserting into char & varchar datatypes, character set none, octets.
In all cases the string is terminated at the first ascii(0) character
which must not happen.
I know it can be done via the isc_ calls but I'm trying to write this
without going to that level as all the other code just uses EXEC SQL.
msg[0] = 0x64;
msg[0] = 0x00;
msg[0] = 0x01;
msg[0] = 0x01;
msg[0] = 0x64;
msg[0] = 0x00;
from C, using EXEC SQL INSERT (rather than the isc_ calls) I am trying
to get a string of the form below into the database. I've tried
inserting into char & varchar datatypes, character set none, octets.
In all cases the string is terminated at the first ascii(0) character
which must not happen.
I know it can be done via the isc_ calls but I'm trying to write this
without going to that level as all the other code just uses EXEC SQL.
msg[0] = 0x64;
msg[0] = 0x00;
msg[0] = 0x01;
msg[0] = 0x01;
msg[0] = 0x64;
msg[0] = 0x00;