提交 135724ec 编写于 作者: B Bruce Momjian

Fix "variable not used" warnings when USE_WIDE_UPPER_LOWER is not

defined.
上级 ff81aa3e
......@@ -243,7 +243,9 @@ char *
lowerstr_with_len(const char *str, int len)
{
char *out;
#ifdef USE_WIDE_UPPER_LOWER
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
#endif
if (len == 0)
return pstrdup("");
......
......@@ -287,7 +287,6 @@ static TParser *
TParserInit(char *str, int len)
{
TParser *prs = (TParser *) palloc0(sizeof(TParser));
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
prs->charmaxlen = pg_database_encoding_max_length();
prs->str = str;
......@@ -300,6 +299,8 @@ TParserInit(char *str, int len)
*/
if (prs->charmaxlen > 1)
{
Oid collation = DEFAULT_COLLATION_OID; /*TODO*/
prs->usewide = true;
if ( lc_ctype_is_c(collation) )
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册