mirror of
https://github.com/postgres/postgres.git
synced 2025-07-26 01:22:12 +03:00
Reverse sense of comparison in psql socket test, per Tom Lane.
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2000 by PostgreSQL Global Development Group
|
* Copyright 2000 by PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.20 2001/08/24 16:59:10 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/prompt.c,v 1.21 2001/08/24 19:59:54 momjian Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
#include "prompt.h"
|
#include "prompt.h"
|
||||||
@ -129,7 +129,7 @@ get_prompt(promptStatus_t status)
|
|||||||
if (*p == 'm')
|
if (*p == 'm')
|
||||||
buf[strcspn(buf, ".")] = '\0';
|
buf[strcspn(buf, ".")] = '\0';
|
||||||
}
|
}
|
||||||
#ifndef HAVE_UNIX_SOCKETS
|
#ifdef HAVE_UNIX_SOCKETS
|
||||||
/* UNIX socket */
|
/* UNIX socket */
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user