|
2 | 2 | * Routines for handling of 'SET var TO',
|
3 | 3 | * 'SHOW var' and 'RESET var' statements.
|
4 | 4 | *
|
5 |
| - * $Id: variable.c,v 1.16 1998/10/14 05:09:58 momjian Exp $ |
| 5 | + * $Id: variable.c,v 1.17 1998/10/26 00:59:22 tgl Exp $ |
6 | 6 | *
|
7 | 7 | */
|
8 | 8 |
|
@@ -307,7 +307,7 @@ parse_cost_heap(const char *value)
|
307 | 307 | return TRUE;
|
308 | 308 | }
|
309 | 309 |
|
310 |
| -bool |
| 310 | +static bool |
311 | 311 | show_cost_heap()
|
312 | 312 | {
|
313 | 313 |
|
@@ -344,7 +344,7 @@ parse_cost_index(const char *value)
|
344 | 344 | return TRUE;
|
345 | 345 | }
|
346 | 346 |
|
347 |
| -bool |
| 347 | +static bool |
348 | 348 | show_cost_index()
|
349 | 349 | {
|
350 | 350 |
|
@@ -464,7 +464,7 @@ show_date()
|
464 | 464 | return TRUE;
|
465 | 465 | }
|
466 | 466 |
|
467 |
| -bool |
| 467 | +static bool |
468 | 468 | reset_date()
|
469 | 469 | {
|
470 | 470 | DateStyle = USE_POSTGRES_DATES;
|
@@ -550,7 +550,7 @@ show_timezone()
|
550 | 550 | * in a core dump (under Linux anyway).
|
551 | 551 | * - thomas 1998-01-26
|
552 | 552 | */
|
553 |
| -bool |
| 553 | +static bool |
554 | 554 | reset_timezone()
|
555 | 555 | {
|
556 | 556 | /* no time zone has been set in this session? */
|
@@ -598,7 +598,8 @@ parse_query_limit(const char *value)
|
598 | 598 | reset_query_limit();
|
599 | 599 | return(TRUE);
|
600 | 600 | }
|
601 |
| - limit = pg_atoi(value, sizeof(int32), '\0'); |
| 601 | + /* why is pg_atoi's arg not declared "const char *" ? */ |
| 602 | + limit = pg_atoi((char *) value, sizeof(int32), '\0'); |
602 | 603 | if (limit <= -1) {
|
603 | 604 | elog(ERROR, "Bad value for # of query limit (%s)", value);
|
604 | 605 | }
|
@@ -766,7 +767,7 @@ show_ksqo()
|
766 | 767 | return TRUE;
|
767 | 768 | }
|
768 | 769 |
|
769 |
| -bool |
| 770 | +static bool |
770 | 771 | reset_ksqo()
|
771 | 772 | {
|
772 | 773 | _use_keyset_query_optimizer = false;
|
|
0 commit comments