| Message: 96933 |
 |
BY: Kubo Takehiro (kubo) DATE: 2011-08-27 08:25 SUBJECT: RE: char(1) causes 'negative string size' error This issue is fixed by ruby-oci8 2.1, which will be release in a few weeks or months.
You need to set the following code just after "require 'oci8'."
OCI8.properties[:length_semantics] = :char
If it is :char, the length of Oracle strings is counted by characters. If :byte, it is by bytes.
The default setting is :byte because :char doesn't work well on Oracle 9i though it works fine on Oracle 10g.
| |