We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentb2be41a commit1a7be5cCopy full SHA for 1a7be5c
src/bin/psql/print.c
@@ -3,7 +3,7 @@
3
*
4
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
5
6
- * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.80 2006/02/1000:39:04 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.81 2006/02/1015:48:05 momjian Exp $
7
*/
8
#include"postgres_fe.h"
9
#include"common.h"
@@ -451,6 +451,7 @@ print_aligned_text(const char *title, const char *const * headers,
451
* format_space contains maximum space required to store formatted string
452
* so we prepare the formatting structures
453
454
+if (col_count>0)
455
{
456
intheights_total=0;
457
structlineptr*lineptr;
@@ -470,6 +471,8 @@ print_aligned_text(const char *title, const char *const * headers,
470
471
col_lineptrs[i]->ptr=format_buf[i];
472
}
473
474
+else
475
+lineptr_list=NULL;
476
477
/* print title */
478
if (title&& !opt_tuples_only)