Fix for psql control-d and .psqlrc that I broke. Fix for \dT with
descriptions enabled.
This commit is contained in:
parent
db12a63ef1
commit
e61e4d460c
@ -158,7 +158,7 @@ describeTypes(const char *name, PsqlSettings *pset)
|
||||
descbuf[0] = '\0';
|
||||
strcat(descbuf, "SELECT typname AS \"Type\"");
|
||||
if (GetVariableBool(pset->vars, "description"))
|
||||
strcat(descbuf, ", obj_description(p.oid) as \"Description\"");
|
||||
strcat(descbuf, ", obj_description(oid) as \"Description\"");
|
||||
strcat(descbuf, "\nFROM pg_type\n"
|
||||
"WHERE typrelid = 0 AND typname !~ '^_.*'\n");
|
||||
|
||||
|
@ -136,9 +136,10 @@ MainLoop(PsqlSettings *pset, FILE *source)
|
||||
if (line == NULL)
|
||||
{
|
||||
if (GetVariableBool(pset->vars, "echo") && !GetVariableBool(pset->vars, "quiet"))
|
||||
puts("EOF\n");
|
||||
else
|
||||
puts(""); /* put out newline */
|
||||
puts("EOF");
|
||||
else if (pset->cur_cmd_interactive)
|
||||
puts(""); /* just newline */
|
||||
|
||||
eof = true;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user