]> granicus.if.org Git - postgresql/commitdiff
Fix compile error in ecpg when enable-multibyte is on. This is due to
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 26 Sep 2000 05:42:15 +0000 (05:42 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 26 Sep 2000 05:42:15 +0000 (05:42 +0000)
illegal call to pg_mbclipen() that is for backend only.  However I
have not remove the entire part of the problem, rather mark it with
#ifdef MULTIBYTE_NOTUSED since we should come back with a long range
solution someday.

src/interfaces/ecpg/preproc/pgc.l

index 4993d2ded7b435d86ca7f11cf52d79d799949272..2eca5b02ac22c60e8389579b00625f9a5d6d01de 100644 (file)
@@ -12,7 +12,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.62 2000/09/21 11:56:07 meskes Exp $
+ *       $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.63 2000/09/26 05:42:15 ishii Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -385,7 +385,7 @@ cppline                     {space}*#(.*\\{line_end})*.*
                                        BEGIN(state_before);
                                        if (strlen(literalbuf) >= NAMEDATALEN)
                                                {
-#ifdef MULTIBYTE
+#ifdef MULTIBYTE_NOTUSED
                                                 int len;
 
                                                len = pg_mbcliplen(literalbuf,strlen(literalbuf),NAMEDATALEN-1);
@@ -547,7 +547,7 @@ cppline                     {space}*#(.*\\{line_end})*.*
 
                                        if (i >= NAMEDATALEN)
                                        {
-#ifdef MULTIBYTE
+#ifdef MULTIBYTE_NOTUSED
                                                 int len;
 
                                                len = pg_mbcliplen(lower_text,strlen(lower_text),NAMEDATALEN-1);