|
10 | 10 | * Copyright (c) 1994, Regents of the University of California
|
11 | 11 | *
|
12 | 12 | * IDENTIFICATION
|
13 |
| - * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.2 1999/05/30 15:17:57 tgl Exp $ |
| 13 | + * $Header: /cvsroot/pgsql/src/interfaces/libpq++/Attic/pgdatabase.cc,v 1.3 1999/06/05 18:05:17 tgl Exp $ |
14 | 14 | *
|
15 | 15 | *-------------------------------------------------------------------------
|
16 | 16 | */
|
17 | 17 |
|
18 | 18 | #include "pgdatabase.h"
|
19 | 19 |
|
20 | 20 |
|
21 |
| -void PgDatabase::DisplayTuples(FILE *out = 0, int fillAlign = 1, |
22 |
| - const char* fieldSep = "|",int printHeader = 1, int quiet = 0) |
| 21 | +void PgDatabase::DisplayTuples(FILE *out, int fillAlign, |
| 22 | + const char* fieldSep, int printHeader, |
| 23 | + int /* quiet */) |
23 | 24 | {
|
24 |
| -PQprintOpt po; |
| 25 | + PQprintOpt po; |
25 | 26 |
|
26 |
| - memset(&po,0,sizeof(po)); |
| 27 | + memset(&po,0,sizeof(po)); |
27 | 28 |
|
28 |
| - po.align = (pqbool)fillAlign; |
29 |
| - po.fieldSep = (char *)fieldSep; |
30 |
| - po.header = (pqbool)printHeader; |
31 |
| - |
32 |
| - PQprint(out,pgResult,&po); |
| 29 | + po.align = (pqbool)fillAlign; |
| 30 | + po.fieldSep = (char *)fieldSep; |
| 31 | + po.header = (pqbool)printHeader; |
33 | 32 |
|
| 33 | + PQprint(out,pgResult,&po); |
34 | 34 | }
|
35 | 35 |
|
36 | 36 |
|
37 | 37 |
|
38 | 38 |
|
39 |
| -void PgDatabase::PrintTuples(FILE *out = 0, int printAttName = 1, int terseOutput = 0, int width = 0) |
| 39 | +void PgDatabase::PrintTuples(FILE *out, int printAttName, int terseOutput, |
| 40 | + int width) |
40 | 41 | {
|
41 |
| -PQprintOpt po; |
| 42 | + PQprintOpt po; |
42 | 43 |
|
43 |
| - memset(&po,0,sizeof(po)); |
| 44 | + memset(&po,0,sizeof(po)); |
44 | 45 |
|
45 |
| - po.align = (pqbool)width; |
| 46 | + po.align = (pqbool)width; |
46 | 47 |
|
47 |
| - if(terseOutput) po.fieldSep = strdup("|"); |
48 |
| - else po.fieldSep = ""; |
| 48 | + if(terseOutput) po.fieldSep = strdup("|"); |
| 49 | + else po.fieldSep = ""; |
49 | 50 |
|
50 |
| - po.header = (pqbool)printAttName; |
51 |
| - |
52 |
| - PQprint(out,pgResult,&po); |
| 51 | + po.header = (pqbool)printAttName; |
53 | 52 |
|
| 53 | + PQprint(out,pgResult,&po); |
54 | 54 | }
|
55 | 55 |
|
56 | 56 |
|
|
0 commit comments