Fix error messages for the lack of multi-byte support.
Since --with-mb has been removed from configure, previous messages were not appropriate.
This commit is contained in:
parent
cfe717714c
commit
2605ceb704
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.133 2000/01/22 14:20:46 petere Exp $
|
* $Header: /cvsroot/pgsql/src/backend/parser/gram.y,v 2.134 2000/01/23 08:16:37 ishii Exp $
|
||||||
*
|
*
|
||||||
* HISTORY
|
* HISTORY
|
||||||
* AUTHOR DATE MAJOR EVENT
|
* AUTHOR DATE MAJOR EVENT
|
||||||
@ -50,6 +50,7 @@
|
|||||||
#include "utils/numeric.h"
|
#include "utils/numeric.h"
|
||||||
|
|
||||||
#ifdef MULTIBYTE
|
#ifdef MULTIBYTE
|
||||||
|
#include "miscadmin.h"
|
||||||
#include "mb/pg_wchar.h"
|
#include "mb/pg_wchar.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -2668,7 +2669,7 @@ createdb_opt_encoding:
|
|||||||
elog(ERROR, "%s is not a valid encoding name.", $3);
|
elog(ERROR, "%s is not a valid encoding name.", $3);
|
||||||
$$ = i;
|
$$ = i;
|
||||||
#else
|
#else
|
||||||
elog(ERROR, "WITH ENCODING is not supported.");
|
elog(ERROR, "Multi-byte support is not enabled");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
| ENCODING '=' Iconst
|
| ENCODING '=' Iconst
|
||||||
@ -2678,7 +2679,7 @@ createdb_opt_encoding:
|
|||||||
elog(ERROR, "%d is not a valid encoding code.", $3);
|
elog(ERROR, "%d is not a valid encoding code.", $3);
|
||||||
$$ = $3;
|
$$ = $3;
|
||||||
#else
|
#else
|
||||||
elog(ERROR, "WITH ENCODING is not supported.");
|
elog(ERROR, "Multi-byte support is not enabled");
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
| ENCODING '=' DEFAULT
|
| ENCODING '=' DEFAULT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user