Don't use multi-line string literals.
This commit is contained in:
parent
9e7243063c
commit
9a61532a6a
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* Copyright 2000 by PostgreSQL Global Development Group
|
* Copyright 2000 by PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.31 2001/05/09 17:57:42 momjian Exp $
|
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.32 2001/05/27 21:50:50 petere Exp $
|
||||||
*/
|
*/
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
#include "describe.h"
|
#include "describe.h"
|
||||||
@ -925,14 +925,14 @@ describeUsers (const char *name)
|
|||||||
headers[cols] = NULL;
|
headers[cols] = NULL;
|
||||||
|
|
||||||
strcpy(buf,
|
strcpy(buf,
|
||||||
"SELECT u.usename AS \"User Name\"\n
|
"SELECT u.usename AS \"User Name\",\n"
|
||||||
, u.usesysid AS \"User ID\"\n
|
" u.usesysid AS \"User ID\",\n"
|
||||||
, u.usesuper AS \"Super User\"\n
|
" u.usesuper AS \"Super User\",\n"
|
||||||
, u.usecreatedb AS \"Create DB\"\n
|
" u.usecreatedb AS \"Create DB\"\n"
|
||||||
FROM pg_user u\n");
|
"FROM pg_user u\n");
|
||||||
if (name)
|
if (name)
|
||||||
{
|
{
|
||||||
strcat(buf, " WHERE u.usename ~ '^");
|
strcat(buf, "WHERE u.usename ~ '^");
|
||||||
strncat(buf, name, REGEXP_CUTOFF);
|
strncat(buf, name, REGEXP_CUTOFF);
|
||||||
strcat(buf, "'\n");
|
strcat(buf, "'\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user