|
3 | 3 | *
|
4 | 4 | * Copyright (c) 2000-2004, PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $PostgreSQL: pgsql/src/bin/psql/variables.c,v 1.18 2004/08/29 04:13:03 momjian Exp $ |
| 6 | + * $PostgreSQL: pgsql/src/bin/psql/variables.c,v 1.19 2004/10/15 05:02:31 momjian Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"common.h"
|
@@ -51,12 +51,12 @@ GetVariableBool(VariableSpace space, const char *name)
|
51 | 51 | val=GetVariable(space,name);
|
52 | 52 | if (val==NULL)
|
53 | 53 | return false;/* not set -> assume "off" */
|
54 |
| -if (strcmp(val,"off")==0) |
55 |
| -return false; |
| 54 | +if (strcasecmp(val,"off")==0) |
| 55 | +return false;/* accept "off" or "OFF" as true */ |
56 | 56 |
|
57 | 57 | /*
|
58 |
| - * for backwards compatibility, anything except "off"is taken as |
59 |
| - * "true" |
| 58 | + * for backwards compatibility, anything except "off"or "OFF" is |
| 59 | + *taken as"true" |
60 | 60 | */
|
61 | 61 | return true;
|
62 | 62 | }
|
|