mirror of
https://github.com/postgres/postgres.git
synced 2025-04-29 13:56:47 +03:00
Fix "variable not used" warnings when USE_WIDE_UPPER_LOWER is not
defined.
This commit is contained in:
parent
ff81aa3eda
commit
135724ec35
@ -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 *
|
|||||||
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)
|
|||||||
*/
|
*/
|
||||||
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) )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user