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

Commitb05edda

Browse files
committed
Fix pg_dump, and libpq changes.
1 parentdfc1a6a commitb05edda

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

‎src/bin/pg_dump/pg_dump.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*
2323
* IDENTIFICATION
24-
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.54 1997/12/0121:00:57 momjian Exp $
24+
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.55 1997/12/0122:02:32 momjian Exp $
2525
*
2626
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
2727
*
@@ -2264,7 +2264,9 @@ dumpTables(FILE *fout, TableInfo *tblinfo, int numTables,
22642264
tblinfo[i].check_expr[k]);
22652265
}
22662266
}
2267-
2267+
strcat(q,";\n");
2268+
fputs(q,fout);
2269+
22682270
if (acls)
22692271
fprintf(fout,
22702272
"UPDATE pg_class SET relacl='%s' where relname='%s';\n",

‎src/interfaces/libpq/fe-connect.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.48 1997/12/0121:01:12 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.49 1997/12/0122:02:46 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -430,7 +430,7 @@ PQsetdb(const char *pghost, const char *pgport, const char *pgoptions, const cha
430430
*(conn->dbName+strlen(conn->dbName)-1)='\0';
431431
}
432432
else
433-
for (i=strlen(conn->dbName[i]);i >=0;i--)
433+
for (i=strlen(conn->dbName);i >=0;i--)
434434
if (isupper(conn->dbName[i]))
435435
conn->dbName[i]=tolower(conn->dbName[i]);
436436
}

‎src/interfaces/libpq/fe-exec.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.41 1997/12/0121:01:18 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.42 1997/12/0122:02:49 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1697,7 +1697,7 @@ PQfnumber(PGresult *res, const char *field_name)
16971697
*(field_case+strlen(field_case)-1)='\0';
16981698
}
16991699
else
1700-
for (i=strlen(field_case[i]);i >=0;i--)
1700+
for (i=strlen(field_case);i >=0;i--)
17011701
if (isupper(field_case[i]))
17021702
field_case[i]=tolower(field_case[i]);
17031703

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp