mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Fix ODBC warnings about missing parens and pg_ismb not used (added
#ifdef NOT_USED).
This commit is contained in:
parent
b2c89fa7af
commit
eb1ee9e63f
@ -59,6 +59,7 @@ pg_CS CS_Table[] =
|
|||||||
{ "OTHER", OTHER }
|
{ "OTHER", OTHER }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef NOT_USED
|
||||||
static int
|
static int
|
||||||
pg_ismb(int characterset_code)
|
pg_ismb(int characterset_code)
|
||||||
{
|
{
|
||||||
@ -70,6 +71,7 @@ pg_ismb(int characterset_code)
|
|||||||
}
|
}
|
||||||
return (MB_CHARACTERSET[i]);
|
return (MB_CHARACTERSET[i]);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
pg_CS_code(const unsigned char *characterset_string)
|
pg_CS_code(const unsigned char *characterset_string)
|
||||||
@ -227,8 +229,8 @@ pg_CS_stat(int stat,unsigned int character,int characterset_code)
|
|||||||
else if (stat == 4 &&
|
else if (stat == 4 &&
|
||||||
character > 0xa0)
|
character > 0xa0)
|
||||||
stat = 3;
|
stat = 3;
|
||||||
else if (stat == 3 ||
|
else if ((stat == 3 ||
|
||||||
stat < 2 &&
|
stat < 2) &&
|
||||||
character > 0xa0)
|
character > 0xa0)
|
||||||
stat = 2;
|
stat = 2;
|
||||||
else if (stat == 2)
|
else if (stat == 2)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user