提交 92259946 编写于 作者: B Bruce Momjian

Fix high-bit comparison compiler warning in pg_dump.

Philip Warner
上级 5395aed9
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* Implements the basic DB functions used by the archiver. * Implements the basic DB functions used by the archiver.
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.55 2004/08/20 20:00:34 momjian Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.56 2004/08/28 22:52:50 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -37,8 +37,8 @@ static void notice_processor(void *arg, const char *message); ...@@ -37,8 +37,8 @@ static void notice_processor(void *arg, const char *message);
static char *_sendSQLLine(ArchiveHandle *AH, char *qry, char *eos); static char *_sendSQLLine(ArchiveHandle *AH, char *qry, char *eos);
static char *_sendCopyLine(ArchiveHandle *AH, char *qry, char *eos); static char *_sendCopyLine(ArchiveHandle *AH, char *qry, char *eos);
static int _isIdentChar(char c); static int _isIdentChar(unsigned char c);
static int _isDQChar(char c, int atStart); static int _isDQChar(unsigned char c, int atStart);
#define DB_MAX_ERR_STMT 128 #define DB_MAX_ERR_STMT 128
...@@ -864,14 +864,14 @@ CommitTransactionXref(ArchiveHandle *AH) ...@@ -864,14 +864,14 @@ CommitTransactionXref(ArchiveHandle *AH)
destroyPQExpBuffer(qry); destroyPQExpBuffer(qry);
} }
static int _isIdentChar(char c) static int _isIdentChar(unsigned char c)
{ {
if ( (c >= 'a' && c <= 'z') if ( (c >= 'a' && c <= 'z')
|| (c >= 'A' && c <= 'Z') || (c >= 'A' && c <= 'Z')
|| (c >= '0' && c <= '9') || (c >= '0' && c <= '9')
|| (c == '_') || (c == '_')
|| (c == '$') || (c == '$')
|| (c >= '\200' && c <= '\377') || (c >= (unsigned char)'\200') /* no need to check <= \377 */
) )
{ {
return 1; return 1;
...@@ -882,13 +882,13 @@ static int _isIdentChar(char c) ...@@ -882,13 +882,13 @@ static int _isIdentChar(char c)
} }
} }
static int _isDQChar(char c, int atStart) static int _isDQChar(unsigned char c, int atStart)
{ {
if ( (c >= 'a' && c <= 'z') if ( (c >= 'a' && c <= 'z')
|| (c >= 'A' && c <= 'Z') || (c >= 'A' && c <= 'Z')
|| (c == '_') || (c == '_')
|| (atStart == 0 && c >= '0' && c <= '9') || (atStart == 0 && c >= '0' && c <= '9')
|| (c >= '\200' && c <= '\377') || (c >= (unsigned char)'\200') /* no need to check <= \377 */
) )
{ {
return 1; return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册