Thread: sequence.c compile failure
Compile failure when --enable-multibyte. -- marko Index: src/backend/commands/sequence.c =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/commands/sequence.c,v retrieving revision 1.58 diff -u -c -r1.58 sequence.c *** src/backend/commands/sequence.c 2001/06/06 22:03:48 1.58 --- src/backend/commands/sequence.c 2001/06/11 08:29:59 *************** *** 569,575 **** #ifdef MULTIBYTE int len; ! len = pg_mbcliplen(seqname, i, NAMEDATALEN-1); seqname[len] = '\0'; #else seqname[NAMEDATALEN-1] = '\0'; --- 569,575 ---- #ifdef MULTIBYTE int len; ! len = pg_mbcliplen(seqname, rawlen, NAMEDATALEN-1); seqname[len] = '\0'; #else seqname[NAMEDATALEN-1] = '\0';
Your patch has been added to the PostgreSQL unapplied patches list at: http://candle.pha.pa.us/cgi-bin/pgpatches I will try to apply it within the next 48 hours. > > Compile failure when --enable-multibyte. > > -- > marko > > > Index: src/backend/commands/sequence.c > =================================================================== > RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/commands/sequence.c,v > retrieving revision 1.58 > diff -u -c -r1.58 sequence.c > *** src/backend/commands/sequence.c 2001/06/06 22:03:48 1.58 > --- src/backend/commands/sequence.c 2001/06/11 08:29:59 > *************** > *** 569,575 **** > #ifdef MULTIBYTE > int len; > > ! len = pg_mbcliplen(seqname, i, NAMEDATALEN-1); > seqname[len] = '\0'; > #else > seqname[NAMEDATALEN-1] = '\0'; > --- 569,575 ---- > #ifdef MULTIBYTE > int len; > > ! len = pg_mbcliplen(seqname, rawlen, NAMEDATALEN-1); > seqname[len] = '\0'; > #else > seqname[NAMEDATALEN-1] = '\0'; > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
Patch applied. Thanks. > > Compile failure when --enable-multibyte. > > -- > marko > > > Index: src/backend/commands/sequence.c > =================================================================== > RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/commands/sequence.c,v > retrieving revision 1.58 > diff -u -c -r1.58 sequence.c > *** src/backend/commands/sequence.c 2001/06/06 22:03:48 1.58 > --- src/backend/commands/sequence.c 2001/06/11 08:29:59 > *************** > *** 569,575 **** > #ifdef MULTIBYTE > int len; > > ! len = pg_mbcliplen(seqname, i, NAMEDATALEN-1); > seqname[len] = '\0'; > #else > seqname[NAMEDATALEN-1] = '\0'; > --- 569,575 ---- > #ifdef MULTIBYTE > int len; > > ! len = pg_mbcliplen(seqname, rawlen, NAMEDATALEN-1); > seqname[len] = '\0'; > #else > seqname[NAMEDATALEN-1] = '\0'; > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/users-lounge/docs/faq.html > -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026