Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 2605ceb

Browse files
committed
Fix error messages for the lack of multi-byte support.
Since --with-mb has been removed from configure, previous messages were not appropriate.
1 parent cfe7177 commit 2605ceb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/backend/parser/gram.y

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.133 2000/01/22 14:20:46 petere Exp $
13+
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.134 2000/01/23 08:16:37 ishii Exp $
1414
*
1515
* HISTORY
1616
* AUTHOR DATE MAJOR EVENT
@@ -50,6 +50,7 @@
5050
#include "utils/numeric.h"
5151

5252
#ifdef MULTIBYTE
53+
#include "miscadmin.h"
5354
#include "mb/pg_wchar.h"
5455
#endif
5556

@@ -2668,7 +2669,7 @@ createdb_opt_encoding:
26682669
elog(ERROR, "%s is not a valid encoding name.", $3);
26692670
$$ = i;
26702671
#else
2671-
elog(ERROR, "WITH ENCODING is not supported.");
2672+
elog(ERROR, "Multi-byte support is not enabled");
26722673
#endif
26732674
}
26742675
| ENCODING '=' Iconst
@@ -2678,7 +2679,7 @@ createdb_opt_encoding:
26782679
elog(ERROR, "%d is not a valid encoding code.", $3);
26792680
$$ = $3;
26802681
#else
2681-
elog(ERROR, "WITH ENCODING is not supported.");
2682+
elog(ERROR, "Multi-byte support is not enabled");
26822683
#endif
26832684
}
26842685
| ENCODING '=' DEFAULT

0 commit comments

Comments
 (0)