mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-30 21:51:19 +02:00
Fix pg_dump, and libpq changes.
This commit is contained in:
parent
dfc1a6a848
commit
b05eddaaab
@ -21,7 +21,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.54 1997/12/01 21:00:57 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_dump.c,v 1.55 1997/12/01 22:02:32 momjian Exp $
|
||||||
*
|
*
|
||||||
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
|
* Modifications - 6/10/96 - dave@bensoft.com - version 1.13.dhb
|
||||||
*
|
*
|
||||||
@ -2264,7 +2264,9 @@ dumpTables(FILE *fout, TableInfo *tblinfo, int numTables,
|
|||||||
tblinfo[i].check_expr[k]);
|
tblinfo[i].check_expr[k]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
strcat(q, ";\n");
|
||||||
|
fputs(q, fout);
|
||||||
|
|
||||||
if (acls)
|
if (acls)
|
||||||
fprintf(fout,
|
fprintf(fout,
|
||||||
"UPDATE pg_class SET relacl='%s' where relname='%s';\n",
|
"UPDATE pg_class SET relacl='%s' where relname='%s';\n",
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.48 1997/12/01 21:01:12 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.49 1997/12/01 22:02:46 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -430,7 +430,7 @@ PQsetdb(const char *pghost, const char *pgport, const char *pgoptions, const cha
|
|||||||
*(conn->dbName + strlen(conn->dbName) - 1) = '\0';
|
*(conn->dbName + strlen(conn->dbName) - 1) = '\0';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (i = strlen(conn->dbName[i]); i >= 0; i--)
|
for (i = strlen(conn->dbName); i >= 0; i--)
|
||||||
if (isupper(conn->dbName[i]))
|
if (isupper(conn->dbName[i]))
|
||||||
conn->dbName[i] = tolower(conn->dbName[i]);
|
conn->dbName[i] = tolower(conn->dbName[i]);
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.41 1997/12/01 21:01:18 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.42 1997/12/01 22:02:49 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1697,7 +1697,7 @@ PQfnumber(PGresult *res, const char *field_name)
|
|||||||
*(field_case + strlen(field_case) - 1) = '\0';
|
*(field_case + strlen(field_case) - 1) = '\0';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
for (i = strlen(field_case[i]); i >= 0; i--)
|
for (i = strlen(field_case); i >= 0; i--)
|
||||||
if (isupper(field_case[i]))
|
if (isupper(field_case[i]))
|
||||||
field_case[i] = tolower(field_case[i]);
|
field_case[i] = tolower(field_case[i]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user