ezsystems/ezoracle — pull request #18 by yannickroger (2013-10-24 09:34:03+00:00)
Title: Fix EZP-21585: ORA-12899 when creating content in japanese

Link: https://jira.ez.no/browse/EZP-21585

### Description
ezoracle's field sizes are set in bytes instead and not char (like mysql) and is not able to automatically trim strings (and that's a good thing because it might break some unicode chars at the end of strings).

This PR provides trimming and counting functions for ezoracle not to break with long unicode strings.

This code will be executed only if used along with the related ezpublish-legacy patch: https://github.com/ezsystems/ezpublish-legacy/pull/811

The goal of this pull request is not to make ezoracle behave the same way mysql does, it is to stop it from breaking. We will need to document the fact the ezoracle counts the size of string length using bytes.

### Tests
Manual tests