Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f87d79

Browse files
author
Michael Meskes
committed
- Corrected error handling in PGTYPEStimestamp_from_asc.
- Set pgtypeslib version to 1.2.
1 parent3cd8411 commit1f87d79

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

‎src/interfaces/ecpg/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1746,5 +1746,10 @@ Mon Feb 16 08:17:19 CET 2004
17461746
- Cleaned up parser a little bit. It does not make sense to allow a
17471747
typename to be typedef'ed that cannot be parsed as variable type.
17481748
- 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.
17491754
- Set ecpg version to 3.1.1.
17501755

‎src/interfaces/ecpg/pgtypeslib/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
# Copyright (c) 1994, Regents of the University of California
66
#
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 $
88
#
99
#-------------------------------------------------------------------------
1010

@@ -14,7 +14,7 @@ include $(top_builddir)/src/Makefile.global
1414

1515
NAME= pgtypes
1616
SO_MAJOR_VERSION= 1
17-
SO_MINOR_VERSION=1
17+
SO_MINOR_VERSION=2
1818

1919
overrideCPPFLAGS := -I$(top_srcdir)/src/interfaces/ecpg/include -I$(top_srcdir)/src/include/utils -I$(libpq_srcdir)$(CPPFLAGS)$(THREAD_CPPFLAGS)
2020
SHLIB_LINK += -lm

‎src/interfaces/ecpg/pgtypeslib/timestamp.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,6 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
291291
char*realptr;
292292
char**ptr= (endptr!=NULL) ?endptr :&realptr;
293293

294-
errno=0;
295294
if (strlen(str) >=sizeof(lowstr))
296295
{
297296
errno=PGTYPES_TS_BAD_TIMESTAMP;
@@ -338,6 +337,8 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
338337

339338
/* AdjustTimestampForTypmod(&result, typmod); */
340339

340+
/* Since it's difficult to test for noresult, make sure errno is 0 if no error occured. */
341+
errno=0;
341342
returnresult;
342343
}
343344

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp