diff --git a/ChangeLog b/ChangeLog index bf0fcb3..ba40984 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,9 @@ -2014-11.04 Richard Frith-Macdonald +2014-11-19 Richard Frith-Macdonald + + * GNUmakefile: bump version to 1.8.2 for bugfix release. + * Postgres.m: Fix error handling TIME fields. + +2014-11-04 Richard Frith-Macdonald * GNUmakefile: bump version to 1.8.1 for connection pool tweaks. diff --git a/GNUmakefile b/GNUmakefile index f546815..d2bb58e 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -21,7 +21,7 @@ include $(GNUSTEP_MAKEFILES)/common.make -include config.make PACKAGE_NAME = SQLClient -PACKAGE_VERSION = 1.8.1 +PACKAGE_VERSION = 1.8.2 CVS_MODULE_NAME = gnustep/dev-libs/SQLClient CVS_TAG_NAME = SQLClient SVN_BASE_URL=svn+ssh://svn.gna.org/svn/gnustep/libs diff --git a/Postgres.m b/Postgres.m index f22b92d..9d7a2f0 100644 --- a/Postgres.m +++ b/Postgres.m @@ -586,7 +586,15 @@ static unsigned int trim(char *str) switch (types[j]) { case 1082: // Date - case 1083: // Time + v = [self dbToDateFromBuffer: p + length: trim(p)]; + break; + + case 1083: // Time (treat as string) + trim(p); + v = [NSString stringWithUTF8String: p]; + break; + case 1114: // Timestamp without time zone. case 1184: // Timestamp with time zone. v = [self dbToDateFromBuffer: p