Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8b5b3e0

Browse files
committed
pg_dump barfs on negative values for index column numbers --- like, say,
an index on a table's OID column. Mea maxima culpa ... but how'd we getthrough beta with no one noticing this?
1 parent4763cdd commit8b5b3e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/bin/pg_dump/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.41 2000/04/12 17:16:14 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/common.c,v 1.42 2000/05/19 23:00:00 tgl Exp $
1212
*
1313
* Modifications - 6/12/96 - dave@bensoft.com - version 1.13.dhb.2
1414
*
@@ -190,7 +190,7 @@ parseNumericArray(const char *str, char **array, int arraysize)
190190
}
191191
else
192192
{
193-
if (!isdigit(s)||j >=sizeof(temp)-1)
193+
if (!(isdigit(s)||s=='-')||j >=sizeof(temp)-1)
194194
{
195195
fprintf(stderr,"parseNumericArray: bogus number\n");
196196
exit(2);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp