Community
Participate
Working Groups
Cloned from: 350137: [DB] [PostgreSQL] Exception when persisting EChar attribute with default '\u0000' value https://bugs.eclipse.org/bugs/show_bug.cgi?id=350137 Build Identifier: 20110218-0911 It seems that if the default value on an EChar attribute is not set, or if it is set to '\u0000' that CDO cannot persist the object due to an "invalid byte sequence for encoding 'UTF8': 0x00" error. This may be specific to only a PostgreSQL datastore, but I am unable to test with other datastore implementations at this time. Details of this bug have been discussed in the forums: http://www.eclipse.org/forums/index.php/t/215023/ Reproducible: Always Steps to Reproduce: 1. Configure PostgreSQL as the CDO datastore 2. Generate an ECore model with an object consisting of an EChar attribute. Do not set its default attribute. 3. Instantiate the object with the EChar attribute, but do not change the EChar attribute's value. 4. Commit the object via CDO.
Stefan, when you apply the patch fro bug 350137 (4.1) please do not forget to decrease the plugin version from 4.0.100 to 4.0.1 !
Moving all open bug reports to 4.1 because the release is very near and it's hghly unlikely that there will be spare time to address 4.0 problems. Please make sure that your patches can be applied against the master branch and that your problem is not already fixed there!!!
Moving all open issues to 4.2. Open bugs can be ported to 4.1 maintenance after they've been fixed in master.
4.2 is very near. No maintenance for 4.1 anymore. Please follow bug 350137.