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
cb8961ab
Commit
cb8961ab
authored
Jan 23, 2002
by
Michael Meskes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added patch to temporarily disable locale for descriptors too (Christof)
parent
9d25b39c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/ChangeLog
+4
-0
src/interfaces/ecpg/lib/descriptor.c
src/interfaces/ecpg/lib/descriptor.c
+12
-1
src/interfaces/ecpg/test/header_test.h
src/interfaces/ecpg/test/header_test.h
+0
-2
No files found.
src/interfaces/ecpg/ChangeLog
View file @
cb8961ab
...
...
@@ -1211,5 +1211,9 @@ Sat Jan 12 22:04:02 CET 2002
Fri Jan 18 16:49:02 CET 2002
- Accept subsequent commits.
Wed Jan 23 17:35:23 CET 2002
- Added patch to temporarily disable locale for descriptors too (Christof).
- Set ecpg version to 2.9.0.
- Set library version to 3.3.0.
src/interfaces/ecpg/lib/descriptor.c
View file @
cb8961ab
/* dynamic SQL support routines
*
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/descriptor.c,v 1.2
1 2002/01/11 14:43:11
meskes Exp $
* $Header: /cvsroot/pgsql/src/interfaces/ecpg/lib/Attic/descriptor.c,v 1.2
2 2002/01/23 16:34:06
meskes Exp $
*/
#include "postgres_fe.h"
...
...
@@ -330,11 +330,22 @@ ECPGget_desc(int lineno, char *desc_name, int index,...)
if
(
data_var
.
type
!=
ECPGt_EORT
)
{
struct
statement
stmt
;
char
*
oldlocale
;
/* Make sure we do NOT honor the locale for numeric input */
/* since the database gives the standard decimal point */
oldlocale
=
strdup
(
setlocale
(
LC_NUMERIC
,
NULL
));
setlocale
(
LC_NUMERIC
,
"C"
);
memset
(
&
stmt
,
0
,
sizeof
stmt
);
stmt
.
lineno
=
lineno
;
/* desparate try to guess something sensible */
stmt
.
connection
=
ECPGget_connection
(
NULL
);
ECPGstore_result
(
ECPGresult
,
index
,
&
stmt
,
&
data_var
);
setlocale
(
LC_NUMERIC
,
oldlocale
);
ECPGfree
(
oldlocale
);
}
else
if
(
data_var
.
ind_type
!=
ECPGt_NO_INDICATOR
)
{
...
...
src/interfaces/ecpg/test/header_test.h
View file @
cb8961ab
exec
sql
include
sqlca
;
#include "stdlib.h"
static
void
...
...
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