Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
1f87d791
Commit
1f87d791
authored
21 years ago
by
Michael Meskes
Browse files
Options
Downloads
Patches
Plain Diff
- Corrected error handling in PGTYPEStimestamp_from_asc.
- Set pgtypeslib version to 1.2.
parent
3cd84118
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/interfaces/ecpg/ChangeLog
+5
-0
5 additions, 0 deletions
src/interfaces/ecpg/ChangeLog
src/interfaces/ecpg/pgtypeslib/Makefile
+2
-2
2 additions, 2 deletions
src/interfaces/ecpg/pgtypeslib/Makefile
src/interfaces/ecpg/pgtypeslib/timestamp.c
+2
-1
2 additions, 1 deletion
src/interfaces/ecpg/pgtypeslib/timestamp.c
with
9 additions
and
3 deletions
src/interfaces/ecpg/ChangeLog
+
5
−
0
View file @
1f87d791
...
@@ -1746,5 +1746,10 @@ Mon Feb 16 08:17:19 CET 2004
...
@@ -1746,5 +1746,10 @@ Mon Feb 16 08:17:19 CET 2004
- Cleaned up parser a little bit. It does not make sense to allow a
- Cleaned up parser a little bit. It does not make sense to allow a
typename to be typedef'ed that cannot be parsed as variable type.
typename to be typedef'ed that cannot be parsed as variable type.
- Allowed some SQL keywords to be used as C variable names.
- Allowed some SQL keywords to be used as C variable names.
Tue Feb 24 16:48:57 CET 2004
- Corrected error handling in PGTYPEStimestamp_from_asc.
- Set pgtypeslib version to 1.2.
- Set ecpg version to 3.1.1.
- Set ecpg version to 3.1.1.
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/pgtypeslib/Makefile
+
2
−
2
View file @
1f87d791
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
#
#
# Copyright (c) 1994, Regents of the University of California
# Copyright (c) 1994, Regents of the University of California
#
#
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.1
5
200
3/11/30 0
6:0
9
:4
6
m
omjian
Exp $
# $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.1
6
200
4/02/24 1
6:0
7
:4
9
m
eskes
Exp $
#
#
#-------------------------------------------------------------------------
#-------------------------------------------------------------------------
...
@@ -14,7 +14,7 @@ include $(top_builddir)/src/Makefile.global
...
@@ -14,7 +14,7 @@ include $(top_builddir)/src/Makefile.global
NAME
=
pgtypes
NAME
=
pgtypes
SO_MAJOR_VERSION
=
1
SO_MAJOR_VERSION
=
1
SO_MINOR_VERSION
=
1
SO_MINOR_VERSION
=
2
override
CPPFLAGS
:=
-I
$(
top_srcdir
)
/src/interfaces/ecpg/include
-I
$(
top_srcdir
)
/src/include/utils
-I
$(
libpq_srcdir
)
$(
CPPFLAGS
)
$(
THREAD_CPPFLAGS
)
override
CPPFLAGS
:=
-I
$(
top_srcdir
)
/src/interfaces/ecpg/include
-I
$(
top_srcdir
)
/src/include/utils
-I
$(
libpq_srcdir
)
$(
CPPFLAGS
)
$(
THREAD_CPPFLAGS
)
SHLIB_LINK
+=
-lm
SHLIB_LINK
+=
-lm
...
...
This diff is collapsed.
Click to expand it.
src/interfaces/ecpg/pgtypeslib/timestamp.c
+
2
−
1
View file @
1f87d791
...
@@ -291,7 +291,6 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
...
@@ -291,7 +291,6 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
char
*
realptr
;
char
*
realptr
;
char
**
ptr
=
(
endptr
!=
NULL
)
?
endptr
:
&
realptr
;
char
**
ptr
=
(
endptr
!=
NULL
)
?
endptr
:
&
realptr
;
errno
=
0
;
if
(
strlen
(
str
)
>=
sizeof
(
lowstr
))
if
(
strlen
(
str
)
>=
sizeof
(
lowstr
))
{
{
errno
=
PGTYPES_TS_BAD_TIMESTAMP
;
errno
=
PGTYPES_TS_BAD_TIMESTAMP
;
...
@@ -338,6 +337,8 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
...
@@ -338,6 +337,8 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
/* AdjustTimestampForTypmod(&result, typmod); */
/* AdjustTimestampForTypmod(&result, typmod); */
/* Since it's difficult to test for noresult, make sure errno is 0 if no error occured. */
errno
=
0
;
return
result
;
return
result
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment