![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
We upgraded from 10.00.FC8 to 11.50.FC6. We had a replicate built on the following table: CREATE TABLE "informix".my_history ( mydate VARCHAR(20,0), user CHAR(20), program CHAR(20), recordtype CHAR(20), data CHAR(255), mykey CHAR(20) ) WITH CRCOLS IN dbs1 EXTENT SIZE 1580 NEXT SIZE 156 LOCK MODE ROW; REVOKE ALL ON "informix".my_history FROM public; CREATE UNIQUE INDEX "informix".uix_my_history ON "informix".my_history ( mydate ASC, user ASC, program ASC, recordtype ASC, data ASC, mykey ASC ) USING btree IN dbs1; ALTER TABLE my_history ADD CONSTRAINT PRIMARY KEY ( mydate, user, program, recordtype, data, mykey ) CONSTRAINT pk_history; We had to rebuild the replicate and now it fails. The command which we used was: cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select * from my_history" "my_db@grp229:informix.my_history" "select * from my_history" Verification of my_db@grp200:informix.my_history started Verification of my_db@grp200:informix.my_history is successful Verification of my_db@grp229:informix.my_history started Verification of my_db@grp229:informix.my_history is successful command failed -- unsupported SQL syntax (join, etc..) (40) We figured the "USER" column was causing the problem so we explicitly defined it with the table name prepended. Still didn't work. cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history" "my_db@grp229:informix.my_history" "select my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history" Verification of my_db@grp200:informix.my_history started Verification of my_db@grp200:informix.my_history is successful Verification of my_db@grp229:informix.my_history started Verification of my_db@grp229:informix.my_history is successful command failed -- unsupported SQL syntax (join, etc..) (40) Suggestions? _______________________________________________ Informix-list mailing list Informix-list (AT) iiug (DOT) org http://www.iiug.org/mailman/listinfo/informix-list |
#3
| |||
| |||
|
|
We upgraded from 10.00.FC8 to 11.50.FC6. We had a replicate built on the following table: CREATE TABLE "informix".my_history ( * * * * mydate VARCHAR(20,0), * * * * user CHAR(20), * * * * program CHAR(20), * * * * recordtype CHAR(20), * * * * data CHAR(255), * * * * mykey CHAR(20) ) WITH CRCOLS *IN dbs1 *EXTENT SIZE 1580 NEXT SIZE 156 LOCK MODE ROW; REVOKE ALL ON "informix".my_history FROM public; CREATE UNIQUE INDEX "informix".uix_my_history ON "informix".my_history ( * * * * mydate ASC, * * * * user ASC, * * * * program ASC, * * * * recordtype ASC, * * * * data ASC, * * * * mykey ASC ) USING btree IN dbs1; ALTER TABLE my_history ADD CONSTRAINT PRIMARY KEY ( * * * * mydate, * * * * user, * * * * program, * * * * recordtype, * * * * data, * * * * mykey ) CONSTRAINT pk_history; We had to rebuild the replicate and now it fails. The command which we used was: cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select * from my_history"* "my_db@grp229:informix.my_history" "select* * from my_history" Verification of my_db@grp200:informix.my_history started Verification of my_db@grp200:informix.my_history is successful Verification of my_db@grp229:informix.my_history started Verification of my_db@grp229:informix.my_history is successful command failed -- unsupported SQL syntax (join, etc..) *(40) We figured the "USER" column was causing the problem so we explicitly defined it with the table name prepended. Still didn't work. cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history"* "my_db@grp229:informix.my_history" "select* my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history" Verification of my_db@grp200:informix.my_history started Verification of my_db@grp200:informix.my_history is successful Verification of my_db@grp229:informix.my_history started Verification of my_db@grp229:informix.my_history is successful command failed -- unsupported SQL syntax (join, etc..) *(40) Suggestions? |
#4
| |||
| |||
|
|
On Nov 30, 10:08*am, "Link, David A" <DAL... (AT) west (DOT) com> wrote: We upgraded from 10.00.FC8 to 11.50.FC6. We had a replicate built on the following table: CREATE TABLE "informix".my_history ( * * * * mydate VARCHAR(20,0), * * * * user CHAR(20), * * * * program CHAR(20), * * * * recordtype CHAR(20), * * * * data CHAR(255), * * * * mykey CHAR(20) ) WITH CRCOLS *IN dbs1 *EXTENT SIZE 1580 NEXT SIZE 156 LOCK MODE ROW; REVOKE ALL ON "informix".my_history FROM public; CREATE UNIQUE INDEX "informix".uix_my_history ON "informix".my_history ( * * * * mydate ASC, * * * * user ASC, * * * * program ASC, * * * * recordtype ASC, * * * * data ASC, * * * * mykey ASC ) USING btree IN dbs1; ALTER TABLE my_history ADD CONSTRAINT PRIMARY KEY ( * * * * mydate, * * * * user, * * * * program, * * * * recordtype, * * * * data, * * * * mykey ) CONSTRAINT pk_history; We had to rebuild the replicate and now it fails. The command which we used was: cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select * from my_history"* "my_db@grp229:informix.my_history" "select* * from my_history" Verification of my_db@grp200:informix.my_history started Verification of my_db@grp200:informix.my_history is successful Verification of my_db@grp229:informix.my_history started Verification of my_db@grp229:informix.my_history is successful command failed -- unsupported SQL syntax (join, etc..) *(40) We figured the "USER" column was causing the problem so we explicitly defined it with the table name prepended. Still didn't work. cdr define replicate -c grp200 -M grp200 -u -R --conflict=timestamp --scope=row my_db_my_history "my_db@grp200:informix.my_history" "select my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey from my_history"* "my_db@grp229:informix.my_history" "select* my_history.mydate, my_history.user, my_history.program, my_history.recordtype, my_history.data, my_history.mykey frommy_history" Verification of my_db@grp200:informix.my_history started Verification of my_db@grp200:informix.my_history is successful Verification of my_db@grp229:informix.my_history started Verification of my_db@grp229:informix.my_history is successful command failed -- unsupported SQL syntax (join, etc..) *(40) Suggestions? Making my life difficult, eh??? ;-) Looks like you ran into a bug. *Yes 'user' is the culprit - in conjunction with a mastered replicate. *If you can afford to remove the -M option then it should work. *Otherwise, we'll have to rename the column. (ugg...) I opened a bug (219876) on this and do have a hacky patch working, but before I can finalize the patch, I'll need to make sure that it doesn't cause a regression with other ER functionality. M.P. |
#5
| |||
| |||
|
|
Hello! Why donīt you try to run it using OAT? Itīs easier, faster, and you donīt worry about command lines. Since youīre on 11.50 you already can do it. I suggest you to try it, certainly itīs better than using some huge command lines (old versions) ok? Best regards! |
![]() |
| Thread Tools | |
| Display Modes | |
| |