8
8
*
9
9
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
10
10
*
11
- * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.238 2010/02/26 02:01:18 momjian Exp $
11
+ * $PostgreSQL: pgsql/src/bin/psql/describe.c,v 1.239 2010/03/01 20:55:45 heikki Exp $
12
12
*/
13
13
#include "postgres_fe.h"
14
14
@@ -1349,10 +1349,10 @@ describeOneTableDetails(const char *schemaname,
1349
1349
for (i = 0 ; i < numrows ; i ++ )
1350
1350
{
1351
1351
/* Column */
1352
- printTableAddCell (& cont , PQgetvalue (res , i , 0 ), false);
1352
+ printTableAddCell (& cont , PQgetvalue (res , i , 0 ), false, false );
1353
1353
1354
1354
/* Type */
1355
- printTableAddCell (& cont , PQgetvalue (res , i , 1 ), false);
1355
+ printTableAddCell (& cont , PQgetvalue (res , i , 1 ), false, false );
1356
1356
1357
1357
/* Modifiers: not null and default */
1358
1358
if (show_modifiers )
@@ -1373,16 +1373,16 @@ describeOneTableDetails(const char *schemaname,
1373
1373
}
1374
1374
1375
1375
modifiers [i ] = pg_strdup (tmpbuf .data );
1376
- printTableAddCell (& cont , modifiers [i ], false);
1376
+ printTableAddCell (& cont , modifiers [i ], false, false );
1377
1377
}
1378
1378
1379
1379
/* Value: for sequences only */
1380
1380
if (tableinfo .relkind == 'S' )
1381
- printTableAddCell (& cont , seq_values [i ], false);
1381
+ printTableAddCell (& cont , seq_values [i ], false, false );
1382
1382
1383
1383
/* Expression for index column */
1384
1384
if (tableinfo .relkind == 'i' )
1385
- printTableAddCell (& cont , PQgetvalue (res , i , 5 ), false);
1385
+ printTableAddCell (& cont , PQgetvalue (res , i , 5 ), false, false );
1386
1386
1387
1387
/* Storage and Description */
1388
1388
if (verbose )
@@ -1396,8 +1396,9 @@ describeOneTableDetails(const char *schemaname,
1396
1396
(storage [0 ] == 'x' ? "extended" :
1397
1397
(storage [0 ] == 'e' ? "external" :
1398
1398
"???" )))),
1399
- false);
1400
- printTableAddCell (& cont , PQgetvalue (res , i , firstvcol + 1 ), false);
1399
+ false, false);
1400
+ printTableAddCell (& cont , PQgetvalue (res , i , firstvcol + 1 ),
1401
+ false, false);
1401
1402
}
1402
1403
}
1403
1404
@@ -2243,7 +2244,7 @@ describeRoles(const char *pattern, bool verbose)
2243
2244
2244
2245
for (i = 0 ; i < nrows ; i ++ )
2245
2246
{
2246
- printTableAddCell (& cont , PQgetvalue (res , i , 0 ), false);
2247
+ printTableAddCell (& cont , PQgetvalue (res , i , 0 ), false, false );
2247
2248
2248
2249
resetPQExpBuffer (& buf );
2249
2250
if (strcmp (PQgetvalue (res , i , 1 ), "t" ) == 0 )
@@ -2278,12 +2279,12 @@ describeRoles(const char *pattern, bool verbose)
2278
2279
2279
2280
attr [i ] = pg_strdup (buf .data );
2280
2281
2281
- printTableAddCell (& cont , attr [i ], false);
2282
+ printTableAddCell (& cont , attr [i ], false, false );
2282
2283
2283
- printTableAddCell (& cont , PQgetvalue (res , i , 7 ), false);
2284
+ printTableAddCell (& cont , PQgetvalue (res , i , 7 ), false, false );
2284
2285
2285
2286
if (verbose && pset .sversion >= 80200 )
2286
- printTableAddCell (& cont , PQgetvalue (res , i , 8 ), false);
2287
+ printTableAddCell (& cont , PQgetvalue (res , i , 8 ), false, false );
2287
2288
}
2288
2289
termPQExpBuffer (& buf );
2289
2290
0 commit comments