Subject | Re: [firebird-support] how to use the x notation (ex ID=x'049094') inside parameter ? |
---|---|
Author | Mark Rotteveel |
Post date | 2012-03-31T10:51:51Z |
On 30-3-2012 9:49, nathanelrick wrote:
to set the bytes in the parameter, however depending on your connection
characterset and database character set this might cause transliteration
errors if you use invalid byte combinations for the character set,
unless the field is CHARACTER SET OCTETS.
Mark
--
Mark Rotteveel
> Hello,The x'...' is a literal escape. If you use parametrized queries you need
>
> how to use the x notation (ex ID=x'049094') inside parameter ?
>
> When i do
>
> insert into ... (Field1) Values (?);
> with the parameter x'049094' i receive an error
> probably i can write any char i want (from #0 to #255) inside parameter and i don't need the x notation ?
to set the bytes in the parameter, however depending on your connection
characterset and database character set this might cause transliteration
errors if you use invalid byte combinations for the character set,
unless the field is CHARACTER SET OCTETS.
Mark
--
Mark Rotteveel