From: Marko Kreen Date: Thu, 15 Mar 2007 14:48:10 +0000 (+0000) Subject: allow SELECT in place of SHOW X-Git-Tag: pgbouncer_1_0_1~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0c00d079689eedd9f19ab2904821e0d9a768204d;p=pgbouncer allow SELECT in place of SHOW --- diff --git a/src/admin.c b/src/admin.c index c08e21b..2a8da8a 100644 --- a/src/admin.c +++ b/src/admin.c @@ -30,14 +30,14 @@ #define MAX_GROUPS 10 /* group numbers */ -#define SHOW_ARG 1 +#define SHOW_ARG 2 #define SET_KEY 1 #define SET_VAL 2 #define SINGLECMD 1 /* SHOW */ static const char cmd_show_rx[] = -"^" WS0 "show" WS1 WORD "?" WS0 ";" WS0 "$"; +"^" WS0 "(show|select)" WS1 WORD "?" WS0 ";" WS0 "$"; /* SET with simple value */ static const char cmd_set_word_rx[] =