mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Fix for copy to stdout for cash.
This commit is contained in:
		@@ -9,7 +9,7 @@
 | 
				
			|||||||
 * workings can be found in the book "Software Solutions in C" by
 | 
					 * workings can be found in the book "Software Solutions in C" by
 | 
				
			||||||
 * Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
 | 
					 * Dale Schumacher, Academic Press, ISBN: 0-12-632360-7.
 | 
				
			||||||
 *
 | 
					 *
 | 
				
			||||||
 * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.12 1997/09/08 21:48:13 momjian Exp $
 | 
					 * $Header: /cvsroot/pgsql/src/backend/utils/adt/cash.c,v 1.13 1997/09/13 04:39:08 momjian Exp $
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stdio.h>
 | 
					#include <stdio.h>
 | 
				
			||||||
@@ -165,8 +165,9 @@ cash_in(const char *str)
 | 
				
			|||||||
 *	positive-valued amounts. - tgl 97/04/14
 | 
					 *	positive-valued amounts. - tgl 97/04/14
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
const char *
 | 
					const char *
 | 
				
			||||||
cash_out(Cash *value)
 | 
					cash_out(Cash *in_value)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						Cash		value = *in_value;
 | 
				
			||||||
	char	   *result;
 | 
						char	   *result;
 | 
				
			||||||
	char		buf[CASH_BUFSZ];
 | 
						char		buf[CASH_BUFSZ];
 | 
				
			||||||
	int			minus = 0;
 | 
						int			minus = 0;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user