Skip to content

Commit 16b9b75

Browse files
author
Michael Meskes
committed
- Synced preproc.y with gram.y.
- Changed locale handling.
1 parent 1b20315 commit 16b9b75

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
struct statement *stmt;
10081008
struct connection *con = get_connection(connection_name);
10091009
bool status = 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 wants teh standard decimal point */
1014-
setlocale(LC_NUMERIC, "C");
1013+
/* since the database wants the 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+
| EXPLAIN analyze_keyword opt_verbose OptimizableStmt
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: LIMIT select_limit_value ',' select_offset_value
2671+
select_limit: LIMIT select_offset_value ',' select_limit_value
26682672
{ $$ = cat_str(4, make_str("limit"), $2, make_str(","), $4); }
26692673
| LIMIT select_limit_value OFFSET select_offset_value
26702674
{ $$ = cat_str(4, make_str("limit"), $2, make_str("offset"), $4); }

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy