Menu

#32 Parse errors with queries containing multibyte UTF8 characters

v1.0_(example)
closed
None
1
2015-04-20
2015-04-19
Anonymous
No

Calling OCI_Prepare with a query with multibyte characters like select 'ç' from dual. As far as I can tell, this is because OCIPrepareStatement2 expects the length in bytes instead of (utf8)characters.

If I for instance modify OCI_StringGetOracleString to return strlen(src), the query does work.

instantclient: 11.2.0.3
built for 64bit
NLS_LANG=.UTF8

Discussion

  • Vincent Rogier

    Vincent Rogier - 2015-04-19

    Hi,

    I've just committed a fix for that issue in the git repository.
    Will be part of upcoming v4.1.0 release next week.

    Thanks for reporting :)

    vincent

     

    Last edit: Vincent Rogier 2015-04-19
  • Vincent Rogier

    Vincent Rogier - 2015-04-19
    • status: open --> accepted
    • assigned_to: Vincent Rogier
     
  • Vincent Rogier

    Vincent Rogier - 2015-04-19

    Fix by git commit 9be5fee5

     

    Last edit: Vincent Rogier 2015-04-19
  • Vincent Rogier

    Vincent Rogier - 2015-04-19
    • status: accepted --> closed
     
  • Anonymous

    Anonymous - 2015-04-20

    It sure works. And thanks for the quick response.

    • Donald
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.