- H2DB and Derby roundtrip any string
- PostgreSQL rejects the invalid string early
- DB2 and Oracle fail the same way as segment store (they persist the replacement character) (see OAK-5506)
- MySQL and SQLServer fail the same way as DB2 and Oracle, but here it's the RDBDocumentStore's fault, because the ID column is binary, and we transform to byte sequences ourselves
- Mongo claims it saved the document, but upon lookup, returns something with a different ID
Note that due to how RDB reads work, the returned document has the ID that was requested, not what the DB actually contains.