1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-24 00:23:06 +03:00

Removed multibyte stuff since client does not know about encoding in the backendFixed quoting bug reported by Sascha Demetrio (sd@b-comp.de).

This commit is contained in:
Michael Meskes
2000-10-29 09:44:58 +00:00
parent 4f82ab4c97
commit dfb12a9850
3 changed files with 18 additions and 18 deletions

View File

@@ -11,10 +11,6 @@
#include "extern.h"
#ifdef MULTIBYTE
#include "mb/pg_wchar.h"
#endif
/*
* Variables containing simple states.
*/
@@ -838,11 +834,7 @@ VariableSetStmt: SET ColId TO var_value
}
| SET NAMES opt_encoding
{
#ifdef MULTIBYTE
$$ = cat2_str(make_str("set names"), $3);
#else
mmerror(ET_ERROR, "SET NAMES is not supported.");
#endif
}
;
@@ -2252,16 +2244,10 @@ createdb_opt_location: LOCATION '=' StringConst { $$ = cat2_str(make_str("locat
createdb_opt_encoding: ENCODING '=' PosIntStringConst
{
#ifndef MULTIBYTE
mmerror(ET_ERROR, "Multi-byte support is not enabled.");
#endif
$$ = cat2_str(make_str("encoding ="), $3);
}
| ENCODING '=' DEFAULT
{
#ifndef MULTIBYTE
mmerror(ET_ERROR, "Multi-byte support is not enabled.");
#endif
$$ = make_str("encoding = default");
}
| /*EMPTY*/ { $$ = NULL; }