File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1746,5 +1746,10 @@ Mon Feb 16 08:17:19 CET 2004
1746
1746
- Cleaned up parser a little bit. It does not make sense to allow a
1747
1747
typename to be typedef'ed that cannot be parsed as variable type.
1748
1748
- Allowed some SQL keywords to be used as C variable names.
1749
+
1750
+ Tue Feb 24 16:48:57 CET 2004
1751
+
1752
+ - Corrected error handling in PGTYPEStimestamp_from_asc.
1753
+ - Set pgtypeslib version to 1.2.
1749
1754
- Set ecpg version to 3.1.1.
1750
1755
Original file line number Diff line number Diff line change 4
4
#
5
5
# Copyright (c) 1994, Regents of the University of California
6
6
#
7
- # $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.15 2003/11/30 06:09:46 momjian Exp $
7
+ # $PostgreSQL: pgsql/src/interfaces/ecpg/pgtypeslib/Makefile,v 1.16 2004/02/24 16:07:49 meskes Exp $
8
8
#
9
9
# -------------------------------------------------------------------------
10
10
@@ -14,7 +14,7 @@ include $(top_builddir)/src/Makefile.global
14
14
15
15
NAME = pgtypes
16
16
SO_MAJOR_VERSION = 1
17
- SO_MINOR_VERSION = 1
17
+ SO_MINOR_VERSION = 2
18
18
19
19
override CPPFLAGS := -I$(top_srcdir ) /src/interfaces/ecpg/include -I$(top_srcdir ) /src/include/utils -I$(libpq_srcdir ) $(CPPFLAGS ) $(THREAD_CPPFLAGS )
20
20
SHLIB_LINK += -lm
Original file line number Diff line number Diff line change @@ -291,7 +291,6 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
291
291
char * realptr ;
292
292
char * * ptr = (endptr != NULL ) ? endptr : & realptr ;
293
293
294
- errno = 0 ;
295
294
if (strlen (str ) >= sizeof (lowstr ))
296
295
{
297
296
errno = PGTYPES_TS_BAD_TIMESTAMP ;
@@ -338,6 +337,8 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
338
337
339
338
/* AdjustTimestampForTypmod(&result, typmod); */
340
339
340
+ /* Since it's difficult to test for noresult, make sure errno is 0 if no error occured. */
341
+ errno = 0 ;
341
342
return result ;
342
343
}
343
344
You can’t perform that action at this time.
0 commit comments