mirror of
https://github.com/postgres/postgres.git
synced 2025-06-23 14:01:44 +03:00
large object fix
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.26 1998/06/16 05:50:55 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.27 1998/06/16 06:53:27 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -821,7 +821,7 @@ Pg_lo_read(ClientData cData, Tcl_Interp *interp, int argc, char* argv[])
|
|||||||
sprintf(interp->result,"%d",nbytes);
|
sprintf(interp->result,"%d",nbytes);
|
||||||
return TCL_OK;
|
return TCL_OK;
|
||||||
}
|
}
|
||||||
buf = ckalloc(sizeof(len+1));
|
buf = ckalloc(len+1);
|
||||||
|
|
||||||
nbytes = lo_read(conn,fd,buf,len);
|
nbytes = lo_read(conn,fd,buf,len);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user