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

Commit76924b5

Browse files
author
Michael Meskes
committed
Fixed two small bugs.
1 parenta499725 commit76924b5

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

‎src/interfaces/ecpg/preproc/pgc.l

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
*
1313
*
1414
* IDENTIFICATION
15-
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.114 2003/05/30 08:39:01 meskes Exp $
15+
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.115 2003/06/16 16:58:10 meskes Exp $
1616
*
1717
*-------------------------------------------------------------------------
1818
*/
@@ -618,7 +618,7 @@ cppline{space}*#(.*\\{space})+.*
618618
char* endptr;
619619

620620
errno =0;
621-
yylval.ival =strtol((char *)yytext,&endptr,16);
621+
yylval.ival =strtoul((char *)yytext,&endptr,16);
622622
if (*endptr !='\0' || errno == ERANGE)
623623
{
624624
errno =0;

‎src/interfaces/ecpg/preproc/preproc.y

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.231 2003/06/13 10:50:57 meskes Exp $*/
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.232 2003/06/16 16:58:11 meskes Exp $*/
22

33
/* Copyright comment*/
44
%{
@@ -630,15 +630,15 @@ stmt: AlterDatabaseSetStmt{ output_statement($1, 0, connection); }
630630
|ECPGDeallocate
631631
{
632632
if (connection)
633-
mmerror(PARSE_ERROR, ET_ERROR,"no at option for connect statement.\n");
634-
635-
fputc('{', yyout);
636-
fputs($1, yyout);
633+
mmerror(PARSE_ERROR, ET_ERROR,"no at option for deallocate statement.\n");
634+
fprintf(yyout,"{ ECPGdeallocate(__LINE__,\"%s\");", $1);
637635
whenever_action(2);
638636
free($1);
639637
}
640638
|ECPGDeallocateDescr
641639
{
640+
if (connection)
641+
mmerror(PARSE_ERROR, ET_ERROR,"no at option for deallocate statement.\n");
642642
fprintf(yyout,"ECPGdeallocate_desc(__LINE__, %s);",$1);
643643
whenever_action(0);
644644
free($1);
@@ -4294,9 +4294,9 @@ ECPGCursorStmt: DECLARE name cursor_options CURSOR opt_hold FOR ident
42944294
* prepared statement
42954295
*/
42964296
ECPGDeallocate:DEALLOCATEPREPAREident
4297-
{$$ =cat_str(3, make_str("ECPGdeallocate(__LINE__,\""),$3, make_str("\");")); }
4297+
{$$ =$3; }
42984298
|DEALLOCATEident
4299-
{$$ =cat_str(2, make_str("ECPGdeallocate(__LINE__,\""),$2, make_str("\");")); }
4299+
{$$ =$2; }
43004300
;
43014301

43024302
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp