Commit 135724ec authored by Bruce Momjian's avatar Bruce Momjian

Fix "variable not used" warnings when USE_WIDE_UPPER_LOWER is not

defined.
parent ff81aa3e
...@@ -243,7 +243,9 @@ char * ...@@ -243,7 +243,9 @@ char *
lowerstr_with_len(const char *str, int len) lowerstr_with_len(const char *str, int len)
{ {
char *out; char *out;
#ifdef USE_WIDE_UPPER_LOWER
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/ Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
#endif
if (len == 0) if (len == 0)
return pstrdup(""); return pstrdup("");
......
...@@ -287,7 +287,6 @@ static TParser * ...@@ -287,7 +287,6 @@ static TParser *
TParserInit(char *str, int len) TParserInit(char *str, int len)
{ {
TParser *prs = (TParser *) palloc0(sizeof(TParser)); TParser *prs = (TParser *) palloc0(sizeof(TParser));
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
prs->charmaxlen = pg_database_encoding_max_length(); prs->charmaxlen = pg_database_encoding_max_length();
prs->str = str; prs->str = str;
...@@ -300,6 +299,8 @@ TParserInit(char *str, int len) ...@@ -300,6 +299,8 @@ TParserInit(char *str, int len)
*/ */
if (prs->charmaxlen > 1) if (prs->charmaxlen > 1)
{ {
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
prs->usewide = true; prs->usewide = true;
if ( lc_ctype_is_c(collation) ) if ( lc_ctype_is_c(collation) )
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment