Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
16b9b758
Commit
16b9b758
authored
Sep 25, 2001
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Synced preproc.y with gram.y.
- Changed locale handling.
parent
1b203150
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+5
-0
src/interfaces/ecpg/lib/execute.c
src/interfaces/ecpg/lib/execute.c
+4
-4
src/interfaces/ecpg/preproc/preproc.y
src/interfaces/ecpg/preproc/preproc.y
+5
-1
No files found.
src/interfaces/ecpg/ChangeLog
View file @
16b9b758
...
@@ -1096,5 +1096,10 @@ Wed Sep 19 15:57:49 CEST 2001
...
@@ -1096,5 +1096,10 @@ Wed Sep 19 15:57:49 CEST 2001
- Synced pgc.l with scan.l.
- Synced pgc.l with scan.l.
- Synced keyword.c.
- Synced keyword.c.
- Include the remaining patches by Christof Petig <christof.petig@wtal.de>.
- Include the remaining patches by Christof Petig <christof.petig@wtal.de>.
Tue Sep 25 20:10:03 CEST 2001
- Synced preproc.y with gram.y.
- Changed locale handling.
- Set ecpg version to 2.9.0.
- Set ecpg version to 2.9.0.
- Set library version to 3.3.0.
- Set library version to 3.3.0.
src/interfaces/ecpg/lib/execute.c
View file @
16b9b758
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.2
3 2001/09/19 14:09:32
meskes Exp $ */
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/execute.c,v 1.2
4 2001/09/25 18:37:17
meskes Exp $ */
/*
/*
* The aim is to get a simpler inteface to the database routines.
* 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,...)
...
@@ -1007,11 +1007,11 @@ ECPGdo(int lineno, const char *connection_name, char *query,...)
struct
statement
*
stmt
;
struct
statement
*
stmt
;
struct
connection
*
con
=
get_connection
(
connection_name
);
struct
connection
*
con
=
get_connection
(
connection_name
);
bool
status
=
true
;
bool
status
=
true
;
char
*
locale
=
setlocale
(
LC_NUMERIC
,
NULL
)
;
char
*
locale
;
/* Make sure we do NOT honor the locale for numeric input/output */
/* Make sure we do NOT honor the locale for numeric input/output */
/* since the database wants t
eh
standard decimal point */
/* since the database wants t
he
standard decimal point */
setlocale
(
LC_NUMERIC
,
"C"
);
locale
=
setlocale
(
LC_NUMERIC
,
"C"
);
if
(
!
ecpg_init
(
con
,
connection_name
,
lineno
))
if
(
!
ecpg_init
(
con
,
connection_name
,
lineno
))
{
{
...
...
src/interfaces/ecpg/preproc/preproc.y
View file @
16b9b758
...
@@ -2333,6 +2333,10 @@ ExplainStmt: EXPLAIN opt_verbose OptimizableStmt
...
@@ -2333,6 +2333,10 @@ ExplainStmt: EXPLAIN opt_verbose OptimizableStmt
{
{
$$ = cat_str(3, make_str("explain"), $2, $3);
$$ = cat_str(3, make_str("explain"), $2, $3);
}
}
| EXPLAIN analyze_keyword opt_verbose OptimizableStmt
{
$$ = cat_str(4, make_str("explain"), $2, $3, $4);
}
;
;
...
@@ -2664,7 +2668,7 @@ OptUseOp: USING all_Op { $$ = cat2_str(make_str("using"), $2); }
...
@@ -2664,7 +2668,7 @@ OptUseOp: USING all_Op { $$ = cat2_str(make_str("using"), $2); }
| /*EMPTY*/ { $$ = EMPTY; }
| /*EMPTY*/ { $$ = EMPTY; }
;
;
select_limit: LIMIT select_
limit_value ',' select_offse
t_value
select_limit: LIMIT select_
offset_value ',' select_limi
t_value
{ $$ = cat_str(4, make_str("limit"), $2, make_str(","), $4); }
{ $$ = cat_str(4, make_str("limit"), $2, make_str(","), $4); }
| LIMIT select_limit_value OFFSET select_offset_value
| LIMIT select_limit_value OFFSET select_offset_value
{ $$ = cat_str(4, make_str("limit"), $2, make_str("offset"), $4); }
{ $$ = cat_str(4, make_str("limit"), $2, make_str("offset"), $4); }
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment