mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Remove gcc warnings. The Postgres world isn't really safe
for 'const' qualifiers yet ...
This commit is contained in:
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.83 2000/02/18 09:29:31 inoue Exp $
|
* $Header: /cvsroot/pgsql/src/backend/tcop/utility.c,v 1.84 2000/02/19 02:29:07 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -856,7 +856,7 @@ ProcessUtility(Node *parsetree,
|
|||||||
switch (stmt->reindexType)
|
switch (stmt->reindexType)
|
||||||
{
|
{
|
||||||
case INDEX:
|
case INDEX:
|
||||||
relname = stmt->name;
|
relname = (char*) stmt->name;
|
||||||
if (IsSystemRelationName(relname))
|
if (IsSystemRelationName(relname))
|
||||||
{
|
{
|
||||||
if (!allowSystemTableMods && IsSystemRelationName(relname))
|
if (!allowSystemTableMods && IsSystemRelationName(relname))
|
||||||
@ -873,7 +873,7 @@ ProcessUtility(Node *parsetree,
|
|||||||
ReindexIndex(relname, stmt->force);
|
ReindexIndex(relname, stmt->force);
|
||||||
break;
|
break;
|
||||||
case TABLE:
|
case TABLE:
|
||||||
relname = stmt->name;
|
relname = (char*) stmt->name;
|
||||||
if (IsSystemRelationName(relname))
|
if (IsSystemRelationName(relname))
|
||||||
{
|
{
|
||||||
if (!allowSystemTableMods && IsSystemRelationName(relname))
|
if (!allowSystemTableMods && IsSystemRelationName(relname))
|
||||||
@ -890,7 +890,7 @@ ProcessUtility(Node *parsetree,
|
|||||||
ReindexTable(relname, stmt->force);
|
ReindexTable(relname, stmt->force);
|
||||||
break;
|
break;
|
||||||
case DATABASE:
|
case DATABASE:
|
||||||
relname = stmt->name;
|
relname = (char*) stmt->name;
|
||||||
if (!allowSystemTableMods)
|
if (!allowSystemTableMods)
|
||||||
elog(ERROR, "-O option is needed");
|
elog(ERROR, "-O option is needed");
|
||||||
if (!IsIgnoringSystemIndexes())
|
if (!IsIgnoringSystemIndexes())
|
||||||
|
Reference in New Issue
Block a user