[DBAL-74] OracleSchemaManager - incorrectly detected the length of the string columns Created: 07/Dec/10 Updated: 12/Dec/10 Resolved: 12/Dec/10 |
|
| Status: | Resolved |
| Project: | Doctrine DBAL |
| Component/s: | None |
| Affects Version/s: | 2.0.0-RC1-RC3 |
| Fix Version/s: | 2.0-RC5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Miloslav "adrive" Kmet | Assignee: | Benjamin Eberlei |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When I create a VARCHAR2 column with the length specified in char units (VARCHAR2(10 CHAR)) instead of the default byte, the metadata stored in all_tab_columns -> data_length is not 10, but 40. It is better to use char_length instead of data_length. Char_length is the same wheter the size unit is in CHAR or BYTE. It is neccessary for me to use CHAR instead of the default BYTE, because I am using unicode charset. |
| Comments |
| Comment by Miloslav "adrive" Kmet [ 07/Dec/10 ] |
|
https://github.com/milokmet/dbal/commit/a5087e8e229bfd2cde947e1d387ebe2e2b122b85 |
| Comment by Benjamin Eberlei [ 07/Dec/10 ] |
|
Can I appoint you to Doctrine's Oracle specialist? Thank you very much, I will merge that as soon as i have time. |
| Comment by Benjamin Eberlei [ 12/Dec/10 ] |
|
Merged |