Skip site navigation (1) Skip section navigation (2)

Re: sequence.c compile failure

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Marko Kreen <marko(at)l-t(dot)ee>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: sequence.c compile failure
Date: 2001-06-13 21:06:59
Message-ID: 200106132106.f5DL6xm27855@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
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(at)candle(dot)pha(dot)pa(dot)us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

pgsql-patches by date

Next:From: Peter EisentrautDate: 2001-06-13 21:14:38
Subject: Re: Re: [PATCHES] Fw: Isn't pg_statistic a security hole - Solution Proposal
Previous:From: Bruce MomjianDate: 2001-06-13 21:04:32
Subject: Re: [HACKERS] Patch to warn about oid/xid wraparound

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group