mirror of
https://github.com/gnustep/libs-gdl2.git
synced 2025-04-22 12:55:44 +00:00
* EOAdaptors/Postgres95/Postgres95Adaptor.m
([Postgres95Adaptor createPGconn]): Insure cleanup code gets executed before exception is raised. * EOAdaptors/Postgres95/LoginPanel/Makefile.postamble: New file to create symlink to be able to include local adaptor headers. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gdl2/trunk@18798 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
1c01664555
commit
b94eb05ffe
3 changed files with 94 additions and 5 deletions
|
@ -1,3 +1,12 @@
|
|||
2003-03-08 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* EOAdaptors/Postgres95/Postgres95Adaptor.m
|
||||
([Postgres95Adaptor createPGconn]): Insure cleanup code gets
|
||||
executed before exception is raised.
|
||||
|
||||
* EOAdaptors/Postgres95/LoginPanel/Makefile.postamble: New file
|
||||
to create symlink to be able to include local adaptor headers.
|
||||
|
||||
2003-03-06 David Ayers <d.ayers@inode.at>
|
||||
|
||||
* configure.ac: Replace generation of
|
||||
|
|
79
EOAdaptors/Postgres95/LoginPanel/Makefile.postamble
Normal file
79
EOAdaptors/Postgres95/LoginPanel/Makefile.postamble
Normal file
|
@ -0,0 +1,79 @@
|
|||
# -*-makefile-*-
|
||||
# Makefile.postamble
|
||||
#
|
||||
# Copyright (C) 2004 Free Software Foundation, Inc.
|
||||
#
|
||||
# Author: David Ayers <d.ayers@inode.at>
|
||||
#
|
||||
# This file is part of the GNUstep Database Library.
|
||||
#
|
||||
# This library is free software; you can redistribute it and/or
|
||||
# modify it under the terms of the GNU Lesser General Public
|
||||
# License as published by the Free Software Foundation; either
|
||||
# version 2 of the License, or (at your option) any later version.
|
||||
#
|
||||
# This library is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
# Library General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU Lesser General Public
|
||||
# License along with this library; if not, write to the Free
|
||||
# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
#
|
||||
|
||||
#
|
||||
# Makefile.postamble
|
||||
#
|
||||
# Project specific makefile rules
|
||||
#
|
||||
# Uncomment the targets you want.
|
||||
# The double colons (::) are important, do not make them single colons
|
||||
# otherwise the normal makefile rules will not be performed.
|
||||
#
|
||||
|
||||
# Things to do before compiling
|
||||
# before-all::
|
||||
|
||||
# Things to do after compiling
|
||||
after-all:: Postgres95EOAdaptor
|
||||
|
||||
# Things to do before installing
|
||||
# before-install::
|
||||
|
||||
#
|
||||
# The following rule is important mainly for packaging, because in that case
|
||||
# you install into a fake system tree, and the directory is not there.
|
||||
#
|
||||
|
||||
# Things to do after installing
|
||||
# after-install::
|
||||
|
||||
# Things to do before uninstalling
|
||||
# before-uninstall::
|
||||
|
||||
# Things to do after uninstalling
|
||||
# after-uninstall::
|
||||
|
||||
# Things to do before cleaning
|
||||
# before-clean::
|
||||
|
||||
# Things to do after cleaning
|
||||
after-clean::
|
||||
rm -f Postgres95EOAdaptor
|
||||
|
||||
# Things to do before distcleaning
|
||||
# before-distclean::
|
||||
|
||||
# Things to do after distcleaning
|
||||
after-distclean::
|
||||
rm -rf GNUmakefile config.mak
|
||||
|
||||
# Things to do before checking
|
||||
# before-check::
|
||||
|
||||
# Things to do after checking
|
||||
# after-check::
|
||||
|
||||
Postgres95EOAdaptor:
|
||||
${LN_S} ../Postgres95EOAdaptor.framework/Headers Postgres95EOAdaptor
|
|
@ -400,13 +400,14 @@ static NSString *internalTypeNames[] = {
|
|||
// Check connection
|
||||
if (PQstatus(pgConn) == CONNECTION_BAD)
|
||||
{
|
||||
[[NSException exceptionWithName:@"InvalidConnection"
|
||||
reason:[NSString
|
||||
stringWithCString:PQerrorMessage(pgConn)]
|
||||
userInfo:nil] raise];
|
||||
NSString *reason;
|
||||
|
||||
reason = [NSString stringWithCString:PQerrorMessage(pgConn)];
|
||||
[self privateReportError: pgConn];
|
||||
PQfinish(pgConn);
|
||||
pgConn = NULL;
|
||||
[[NSException exceptionWithName:@"InvalidConnection"
|
||||
reason: reason
|
||||
userInfo:nil] raise];
|
||||
}
|
||||
|
||||
if (pgConn)
|
||||
|
|
Loading…
Reference in a new issue