slony1-bugs at lists.slony.info slony1-bugs at lists.slony.info
Mon Dec 15 01:38:40 PST 2008
http://www.slony.info/bugzilla/show_bug.cgi?id=67


Adam Buraczewski <aburacze at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Attachment #24|slony1_funcs.c.diff.gz      |slony1_funcs.c.diff
           filename|                            |




--- Comment #1 from Adam Buraczewski <aburacze at gmail.com>  2008-12-15 01:38:39 ---
(From update of attachment 24)
*** slony1_funcs.c.orig 2008-09-24 21:54:09.000000000 +0200
--- slony1_funcs.c      2008-12-12 10:56:10.000000000 +0100
***************
*** 649,658 ****
--- 649,661 ----
                        {
                                if (tupdesc->attrs[i]->attisdropped)
                                        continue;

                                attkind_idx++;
+                               if (!attkind[attkind_idx])
+                                       elog(ERROR, "Slony-I: no key columns
found in logTrigger() attkind parameter");
+ 
                                if (attkind[attkind_idx] == 'k')
                                        break;
                        }
                        col_ident = (char *)
slon_quote_identifier(SPI_fname(tupdesc, i + 1));
                        col_value = slon_quote_literal(SPI_getvalue(old_row,
tupdesc, i + 1));
***************
*** 692,701 ****
--- 695,706 ----
                         */
                        if (tupdesc->attrs[i]->attisdropped)
                                continue;

                        attkind_idx++;
+                       if (!attkind[attkind_idx])
+                               break;
                        if (attkind[attkind_idx] != 'k')
                                continue;
                        col_ident = (char *)
slon_quote_identifier(SPI_fname(tupdesc, i + 1));
                        col_value = slon_quote_literal(SPI_getvalue(old_row,
tupdesc, i + 1));
                        if (col_value == NULL)
***************
*** 759,768 ****
--- 764,775 ----
                {
                        if (tupdesc->attrs[i]->attisdropped)
                                continue;

                        attkind_idx++;
+                       if (!attkind[attkind_idx])
+                               break;
                        if (attkind[attkind_idx] != 'k')
                                continue;
                        col_ident = (char *)
slon_quote_identifier(SPI_fname(tupdesc, i + 1));
                        col_value = slon_quote_literal(SPI_getvalue(old_row,
tupdesc, i + 1));
                        if (col_value == NULL)


-- 
Configure bugmail: http://www.slony.info/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.


More information about the Slony1-bugs mailing list