mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-19 01:50:49 +00:00
fix to handle TIME fields
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@38183 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7f64902d1f
commit
19b900d172
3 changed files with 16 additions and 3 deletions
|
@ -1,4 +1,9 @@
|
|||
2014-11.04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
2014-11-19 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* GNUmakefile: bump version to 1.8.2 for bugfix release.
|
||||
* Postgres.m: Fix error handling TIME fields.
|
||||
|
||||
2014-11-04 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* GNUmakefile: bump version to 1.8.1 for connection pool tweaks.
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
10
Postgres.m
10
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
|
||||
|
|
Loading…
Reference in a new issue