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

Commit39ab3c1

Browse files
committed
Message format tuning
1 parent006b9e7 commit39ab3c1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

‎src/interfaces/ecpg/preproc/ecpg.trailer

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.4 2009/01/23 12:43:32 petere Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/ecpg.trailer,v 1.5 2009/01/26 10:19:44 petere Exp $ */
22

33
statements: /*EMPTY*/
44
| statements statement
@@ -22,7 +22,7 @@ statement: ecpgstart at stmt ';' { connection = NULL; }
2222
CreateAsStmt: CREATE OptTemp TABLE create_as_target AS {FoundInto = 0;} SelectStmt opt_with_data
2323
{
2424
if (FoundInto == 1)
25-
mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO\n");
25+
mmerror(PARSE_ERROR, ET_ERROR, "CREATE TABLE AS cannot specify INTO");
2626

2727
$$ = cat_str(6, make_str("create"), $2, make_str("table"), $4, make_str("as"), $7);
2828
}
@@ -294,7 +294,7 @@ ECPGCursorStmt: DECLARE name cursor_options CURSOR opt_hold FOR prepared_name
294294
{
295295
if (strcmp($2, ptr->name) == 0)
296296
/* re-definition is a bug */
297-
mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\" already defined", $2);
297+
mmerror(PARSE_ERROR, ET_ERROR, "cursor \"%s\"isalready defined", $2);
298298
}
299299

300300
this = (struct cursor *) mm_alloc(sizeof(struct cursor));
@@ -497,7 +497,7 @@ var_type:simple_type
497497
}
498498
else
499499
{
500-
mmerror(PARSE_ERROR, ET_ERROR, "only numeric/decimal have precision/scale argument");
500+
mmerror(PARSE_ERROR, ET_ERROR, "onlydata typesnumeric anddecimal have precision/scale argument");
501501
$$.type_enum = ECPGt_numeric;
502502
$$.type_str = make_str("numeric");
503503
}
@@ -678,7 +678,7 @@ struct_union_type_with_symbol: s_struct_union_symbol
678678
{
679679
if (strcmp(su_type.type_str, ptr->name) == 0)
680680
/* re-definition is a bug */
681-
mmerror(PARSE_ERROR, ET_ERROR, "type \"%s\" already defined", su_type.type_str);
681+
mmerror(PARSE_ERROR, ET_ERROR, "type \"%s\"isalready defined", su_type.type_str);
682682
}
683683

684684
this = (struct typedefs *) mm_alloc(sizeof(struct typedefs));
@@ -836,7 +836,7 @@ variable: opt_pointer ECPGColLabel opt_array_bounds opt_bit_field opt_initialize
836836
sprintf(dim, "[%s]", dimension);
837837
/* cannot check for atoi <= 0 because a defined constant will yield 0 here as well */
838838
if (atoi(length) < 0 || strcmp(length, "0") == 0)
839-
mmerror(PARSE_ERROR, ET_ERROR, "pointer to varchar are not implemented");
839+
mmerror(PARSE_ERROR, ET_ERROR, "pointers to varchar are not implemented");
840840

841841
/* make sure varchar struct name is unique by adding linenumer of its definition */
842842
vcn = (char *) mm_alloc(strlen($2) + sizeof(int) * CHAR_BIT * 10 / 3);

‎src/interfaces/ecpg/preproc/variable.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/variable.c,v 1.46 2009/01/23 12:43:32 petere Exp $ */
1+
/* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/variable.c,v 1.47 2009/01/26 10:19:44 petere Exp $ */
22

33
#include"postgres_fe.h"
44

@@ -226,7 +226,7 @@ find_variable(char *name)
226226
*next='\0';
227227
p=find_simple(name);
228228
if (p==NULL)
229-
mmerror(PARSE_ERROR,ET_FATAL,"variable%s is not declared",name);
229+
mmerror(PARSE_ERROR,ET_FATAL,"variable\"%s\" is not declared",name);
230230

231231
*next=c;
232232
switch (p->type->u.element->type)
@@ -248,7 +248,7 @@ find_variable(char *name)
248248
p=find_simple(name);
249249

250250
if (p==NULL)
251-
mmerror(PARSE_ERROR,ET_FATAL,"variable%s is not declared",name);
251+
mmerror(PARSE_ERROR,ET_FATAL,"variable\"%s\" is not declared",name);
252252

253253
return (p);
254254
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp