Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit001b1ad

Browse files
author
Michael Meskes
committed
FATAL errors are meant to stop ecpg immediately, e.g. because the syntax is
corrupted. This error, however, does is not a compilation problem but a runtimeone, so we can keep compiling but still have to declare ERROR.
1 parent93001df commit001b1ad

File tree

1 file changed

+3
-3
lines changed
  • src/interfaces/ecpg/preproc

1 file changed

+3
-3
lines changed

‎src/interfaces/ecpg/preproc/type.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/type.c,v 1.90 2010/04/01 10:30:53 meskes Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/type.c,v 1.91 2010/04/02 10:27:45 meskes Exp $ */
22

33
#include"postgres_fe.h"
44

@@ -258,7 +258,7 @@ ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * type, const int bra
258258
(var->type->type_name&& !type->type_name)||
259259
(!var->type->type_name&&type->type_name)||
260260
(var->type->type_name&&type->type_name&&strcmp(var->type->type_name,type->type_name)))
261-
mmerror(PARSE_ERROR,ET_FATAL,"variable (%s) is hidden by a local variable of a different type",name);
261+
mmerror(PARSE_ERROR,ET_ERROR,"variable (%s) is hidden by a local variable of a different type",name);
262262
elseif (var->brace_level!=brace_level)
263263
mmerror(PARSE_ERROR,ET_WARNING,"variable (%s) is hidden by a local variable",name);
264264

@@ -272,7 +272,7 @@ ECPGdump_a_type(FILE *o, const char *name, struct ECPGtype * type, const int bra
272272
(var->type->type_name&& !ind_type->type_name)||
273273
(!var->type->type_name&&ind_type->type_name)||
274274
(var->type->type_name&&ind_type->type_name&&strcmp(var->type->type_name,ind_type->type_name)))
275-
mmerror(PARSE_ERROR,ET_FATAL,"indicator variable (%s) is hidden by a local variable of a different type",ind_name);
275+
mmerror(PARSE_ERROR,ET_ERROR,"indicator variable (%s) is hidden by a local variable of a different type",ind_name);
276276
elseif (var->brace_level!=ind_brace_level)
277277
mmerror(PARSE_ERROR,ET_WARNING,"indicator variable (%s) is hidden by a local variable",ind_name);
278278
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp