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

Commit16b9b75

Browse files
author
Michael Meskes
committed
- Synced preproc.y with gram.y.
- Changed locale handling.
1 parent1b20315 commit16b9b75

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,5 +1096,10 @@ Wed Sep 19 15:57:49 CEST 2001
10961096
- Synced pgc.l with scan.l.
10971097
- Synced keyword.c.
10981098
- Include the remaining patches by Christof Petig <christof.petig@wtal.de>.
1099+
1100+
Tue Sep 25 20:10:03 CEST 2001
1101+
1102+
- Synced preproc.y with gram.y.
1103+
- Changed locale handling.
10991104
- Set ecpg version to 2.9.0.
11001105
- Set library version to 3.3.0.

‎src/interfaces/ecpg/lib/execute.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.23 2001/09/19 14:09:32 meskes Exp $ */
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.24 2001/09/25 18:37:17 meskes Exp $ */
22

33
/*
44
* The aim is to get a simpler inteface to the database routines.
@@ -1007,11 +1007,11 @@ ECPGdo(int lineno, const char *connection_name, char *query,...)
10071007
structstatement*stmt;
10081008
structconnection*con=get_connection(connection_name);
10091009
boolstatus= true;
1010-
char*locale=setlocale(LC_NUMERIC,NULL);
1010+
char*locale;
10111011

10121012
/* Make sure we do NOT honor the locale for numeric input/output */
1013-
/* since the database wantsteh standard decimal point */
1014-
setlocale(LC_NUMERIC,"C");
1013+
/* since the database wantsthe standard decimal point */
1014+
locale=setlocale(LC_NUMERIC,"C");
10151015

10161016
if (!ecpg_init(con,connection_name,lineno))
10171017
{

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2333,6 +2333,10 @@ ExplainStmt: EXPLAIN opt_verbose OptimizableStmt
23332333
{
23342334
$$ = cat_str(3, make_str("explain"),$2,$3);
23352335
}
2336+
|EXPLAINanalyze_keywordopt_verboseOptimizableStmt
2337+
{
2338+
$$ = cat_str(4, make_str("explain"),$2,$3,$4);
2339+
}
23362340
;
23372341

23382342

@@ -2664,7 +2668,7 @@ OptUseOp: USING all_Op{ $$ = cat2_str(make_str("using"), $2); }
26642668
|/*EMPTY*/{$$ = EMPTY; }
26652669
;
26662670

2667-
select_limit:LIMITselect_limit_value','select_offset_value
2671+
select_limit:LIMITselect_offset_value','select_limit_value
26682672
{$$ = cat_str(4, make_str("limit"),$2, make_str(","),$4); }
26692673
|LIMITselect_limit_valueOFFSETselect_offset_value
26702674
{$$ = cat_str(4, make_str("limit"),$2, make_str("offset"),$4); }

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp