mirror of
https://github.com/postgres/postgres.git
synced 2025-12-10 14:22:35 +03:00
Fixed psql double quoting of SQL ids
Fixed libpq printing functions
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright 2000 by PostgreSQL Global Development Group
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.7 2000/01/29 16:58:48 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/psql/large_obj.c,v 1.8 2000/02/07 23:10:06 petere Exp $
|
||||
*/
|
||||
#include <c.h>
|
||||
#include "large_obj.h"
|
||||
@@ -113,7 +113,7 @@ do_lo_export(const char *loid_arg, const char *filename_arg)
|
||||
PQclear(res);
|
||||
}
|
||||
|
||||
status = lo_export(pset.db, atol(loid_arg), (char *) filename_arg);
|
||||
status = lo_export(pset.db, atol(loid_arg), filename_arg);
|
||||
if (status != 1)
|
||||
{ /* of course this status is documented
|
||||
* nowhere :( */
|
||||
@@ -182,7 +182,7 @@ do_lo_import(const char *filename_arg, const char *comment_arg)
|
||||
PQclear(res);
|
||||
}
|
||||
|
||||
loid = lo_import(pset.db, (char *) filename_arg);
|
||||
loid = lo_import(pset.db, filename_arg);
|
||||
if (loid == InvalidOid)
|
||||
{
|
||||
fputs(PQerrorMessage(pset.db), stderr);
|
||||
|
||||
Reference in New Issue
Block a user