Informix - Problembeschreibung
| Problem IT07901 | Status: Geschlossen |
BSON_UPDATE() $SET OPERATOR NOT BEHAVING AS IT SHOULD | |
| Produkt: | |
INFORMIX SERVER / 5725A3900 / B70 - IDS 11.70 | |
| Problembeschreibung: | |
bson_update(<bson>, "{$set:<update_json_string>}") working in
most simplistic cases only:
- <update_json_string> can only contain a single key
- that key needs to exist already in <bson>
- its existing value, if complex, must have exactly same
structure as new one
For instance you would have this bson: {a : 1, b : 2}
You can say {$set : {a : 10}} or {$set : {b : 20}}
but {$set : {a : 10, b : 20}} would run into
9659: The server does not support the specified UPDATE
operation on JSON documents.
Same for {$set : {c : 30}} where key 'c' had not existed
before.
You also could say {$set : {b : { b1 : 11, b2 : 12}}}, so
replace key b's value by a more complex one,
but then only e.g. {$set : {b : { b1 : 21, b2 : 22}}} would
work on this,
and not e.g. {$set : {b : { b1 : 21, b2 : 22, b3 :
33}}}
or {$set : {b : 22}}
These quite confusingly now would run into -201 SQL syntax error
- during execution of the command. | |
| Problem-Zusammenfassung: | |
**************************************************************** * USERS AFFECTED: * * All NoSQL users using bson_update($set) * **************************************************************** * PROBLEM DESCRIPTION: * * See Error Description * **************************************************************** * RECOMMENDATION: * * Update to IBM Informix Server 12.10.xC6 * **************************************************************** | |
| Local-Fix: | |
| Lösung | |
Problem Fixed In IBM Informix Server 12.10.xC6 | |
| Workaround | |
keiner bekannt / siehe Local-Fix | |
| Weitere Daten | |
Datum - Problem gemeldet : Datum - Problem geschlossen : Datum - der letzten Änderung: | 24.03.2015 30.12.2015 30.12.2015 |
| Problem behoben ab folgender Versionen (IBM BugInfos) | |
12.10.xC6 | |
| Problem behoben lt. FixList in der Version | |
| 12.10.xC5.W1 |
|
| 12.10.xC6 |
|