suche 36x36
  • Admin-Scout-small-Banner
           

    CURSOR Admin-Scout

    get the ultimate tool for Informix

    pfeil  
Latest versionsfixlist
14.10.xC10 FixList
12.10.xC16.X5 FixList
11.70.xC9.XB FixList
11.50.xC9.X2 FixList
11.10.xC3.W5 FixList
Have problems? - contact us.
Register for free anmeldung-x26
Contact form kontakt-x26

Informix - Problem description

Problem IT36450 Status: Closed

--JSONSPLNAME OF CDR REPL WITH CHAR / VCHAR COL REPLICATED CONTAINING
SINGLE / DOUBLE QUOTE JSON WONT BE CONSTRUCTED CORRECTLY.

product:
INFORMIX SERVER / 5725A3900 / E10 - 
Problem description:
On a replicate with char / vchar column which contains embedded
single / double quotes in it's data , JSON data will not be
constructed correctly and operation will fail ( ATS / RIS if
defined).

i.e.
CRATE DATABASE testcase WITH LOG;
CREATE TABLE t1 (c1 INT, c2 CHAR(20));
CREATE TABLE staging (data JSON);
CREATE PROCEDURE logjsoninfo(data JSON)
  INSERT INTO staging VALUES (data);
END PROCEDURE;

And replicate define as:

cdr define repl repl_t1 -C always -S row -M g_group1 -A -R
--jsonsplname=logjsoninfo "testcase@g_group1:informix.t1"
"SELECT * FROM t1" "testcase@g_loopback:informix.t1" "SELECT *
FROM t1"

cdr start repl_t1

INSERT INTO t1 VALUES (1, "This will go ok into staging table");
INSERT INTO t1 VALUES (2, "This will 'fail' no rows inserted");
--ATS / RIS generated.
Problem Summary:
****************************************************************
* USERS AFFECTED:                                              *
* Users of Informix Server prior to 14.10.xC7.                 *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Informix Server 14.10.xC7.                        *
****************************************************************
Local Fix:
Solution
Workaround
****************************************************************
* USERS AFFECTED:                                              *
* Users of Informix Server prior to 14.10.xC7.                 *
****************************************************************
* PROBLEM DESCRIPTION:                                         *
* See Error Description                                        *
****************************************************************
* RECOMMENDATION:                                              *
* Upgrade to Informix Server 14.10.xC7.                        *
****************************************************************
Comment
Fixed in Informix Server 14.10.xC7.
Timestamps
Date  - problem reported    :
Date  - problem closed      :
Date  - last modified       :
03.04.2021
01.11.2021
01.11.2021
Problem solved at the following versions (IBM BugInfos)
Problem solved according to the fixlist(s) of the following version(s)
Informix EditionsInformix Editions
Informix Editions
DocumentationDocumentation
Documentation
IBM NewsletterIBM Newsletter
IBM Newsletter
Current BugsCurrent Bugs
Current Bugs
Bug ResearchBug Research
Bug Research
Bug FixlistsBug Fixlists
Bug Fixlists
Release NotesRelease Notes
Release Notes
Machine NotesMachine Notes
Machine Notes
Release NewsRelease News
Release News
Product LifecycleProduct Lifecycle
Lifecycle
Media DownloadMedia Download
Media Download