Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
92259946
Commit
92259946
authored
Aug 28, 2004
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix high-bit comparison compiler warning in pg_dump.
Philip Warner
parent
5395aed9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/bin/pg_dump/pg_backup_db.c
src/bin/pg_dump/pg_backup_db.c
+8
-8
No files found.
src/bin/pg_dump/pg_backup_db.c
View file @
92259946
...
@@ -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.5
5 2004/08/20 20:00:34
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_db.c,v 1.5
6 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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment