/*********************************************************************
*
* This is based on code created by Peter Harvey,
* (pharvey@codebydesign.com).
*
* Modified and extended by Nick Gorham
* (nick@easysoft.com).
*
* Any bugs or problems should be considered the fault of Nick and not
* Peter.
*
* copyright (c) 1999 Nick Gorham
*
* 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
* Lesser 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
**********************************************************************
*
* $Id: __info.c,v 1.50 2009/02/18 17:59:08 lurcher Exp $
*
* $Log: __info.c,v $
* Revision 1.50 2009/02/18 17:59:08 lurcher
* Shift to using config.h, the compile lines were making it hard to spot warnings
*
* Revision 1.49 2009/02/17 09:47:44 lurcher
* Clear up a number of bugs
*
* Revision 1.48 2008/09/29 14:02:45 lurcher
* Fix missing dlfcn group option
*
* Revision 1.47 2008/01/02 15:10:33 lurcher
* Fix problems trying to use the cursor lib on a non select statement
*
* Revision 1.46 2007/11/26 11:37:23 lurcher
* Sync up before tag
*
* Revision 1.45 2007/09/28 13:20:22 lurcher
* Add timestamp to logging
*
* Revision 1.44 2007/04/02 10:50:19 lurcher
* Fix some 64bit problems (only when sizeof(SQLLEN) == 8 )
*
* Revision 1.43 2007/03/05 09:49:24 lurcher
* Get it to build on VMS again
*
* Revision 1.42 2006/11/27 14:08:34 lurcher
* Sync up dirs
*
* Revision 1.41 2006/03/08 11:22:13 lurcher
* Add check for valid C_TYPE
*
* Revision 1.40 2005/12/19 18:43:26 lurcher
* Add new parts to contrib and alter how the errors are returned from the driver
*
* Revision 1.39 2005/11/08 09:37:10 lurcher
* Allow the driver and application to have different length handles
*
* Revision 1.38 2005/02/07 11:46:45 lurcher
* Add missing ODBC2 installer stubs
*
* Revision 1.37 2004/07/24 17:55:37 lurcher
* Sync up CVS
*
* Revision 1.36 2004/05/17 08:25:00 lurcher
* Update the way the libltso is used, and fix a problem with gODBCConfig
* not closeing correctly.
*
* Revision 1.35 2004/03/30 13:20:11 lurcher
*
*
* Fix problem with SQLCopyDesc
* Add additional target for iconv
*
* Revision 1.34 2003/12/01 16:37:17 lurcher
*
* Fix a bug in SQLWritePrivateProfileString
*
* Revision 1.33 2003/10/30 18:20:46 lurcher
*
* Fix broken thread protection
* Remove SQLNumResultCols after execute, lease S4/S% to driver
* Fix string overrun in SQLDriverConnect
* Add initial support for Interix
*
* Revision 1.32 2003/09/08 15:34:29 lurcher
*
* A couple of small but perfectly formed fixes
*
* Revision 1.31 2003/07/21 11:12:59 lurcher
*
* Fix corruption in Postgre7.1 driver
* Tidy up gODBCconfig
*
* Revision 1.30 2003/06/24 09:40:58 lurcher
*
* Extra UNICODE stuff
*
* Revision 1.29 2003/06/04 12:49:45 lurcher
*
* Further PID logging tweeks
*
* Revision 1.28 2003/06/03 13:52:13 lurcher
*
* Change the mode of PID logfiles to allow the process to change to another
* user
*
* Revision 1.27 2003/06/02 16:51:36 lurcher
*
* Add TracePid option
*
* Revision 1.26 2003/02/25 13:28:31 lurcher
*
* Allow errors on the drivers AllocHandle to be reported
* Fix a problem that caused errors to not be reported in the log
* Remove a redundant line from the spec file
*
* Revision 1.25 2003/02/06 12:58:25 lurcher
*
* Fix a speeling problem :-)
*
* Revision 1.24 2002/12/05 17:44:31 lurcher
*
* Display unknown return values in return logging
*
* Revision 1.23 2002/11/11 17:10:20 lurcher
*
* VMS changes
*
* Revision 1.22 2002/11/06 16:08:01 lurcher
*
* Update missing
*
* Revision 1.21 2002/08/23 09:42:37 lurcher
*
* Fix some build warnings with casts, and a AIX linker mod, to include
* deplib's on the link line, but not the libtool generated ones
*
* Revision 1.20 2002/08/20 12:41:07 lurcher
*
* Fix incorrect return state from SQLEndTran/SQLTransact
*
* Revision 1.19 2002/08/19 09:11:49 lurcher
*
* Fix Maxor ineffiecny in Postgres Drivers, and fix a return state
*
* Revision 1.18 2002/08/15 08:10:33 lurcher
*
* Couple of small fixes from John L Miller
*
* Revision 1.17 2002/08/12 16:20:44 lurcher
*
* Make it try and find a working iconv set of encodings
*
* Revision 1.16 2002/08/12 13:17:52 lurcher
*
* Replicate the way the MS DM handles loading of driver libs, and allocating
* handles in the driver. usage counting in the driver means that dlopen is
* only called for the first use, and dlclose for the last. AllocHandle for
* the driver environment is only called for the first time per driver
* per application environment.
*
* Revision 1.15 2002/07/25 09:30:26 lurcher
*
* Additional unicode and iconv changes
*
* Revision 1.14 2002/07/24 08:49:52 lurcher
*
* Alter UNICODE support to use iconv for UNICODE-ANSI conversion
*
* Revision 1.13 2002/07/10 15:05:57 lurcher
*
* Alter the return code in the Postgres driver, for a warning, it should be
* 01000 it was 00000
* Fix a problem in DriverManagerII with the postgres driver as the driver
* doesn't return a propper list of schemas
* Allow the delimiter to be set in isql to a hex/octal char not just a
* printable one
*
* Revision 1.12 2002/07/08 16:37:35 lurcher
*
* Fix bug in unicode_to_ansi_copy
*
* Revision 1.11 2002/07/04 17:27:56 lurcher
*
* Small bug fixes
*
* Revision 1.9 2002/05/28 13:30:34 lurcher
*
* Tidy up for AIX
*
* Revision 1.8 2002/05/21 14:19:44 lurcher
*
* * Update libtool to escape from AIX build problem
* * Add fix to avoid file handle limitations
* * Add more UNICODE changes, it looks like it is native 16 representation
* the old way can be reproduced by defining UCS16BE
* * Add iusql, its just the same as isql but uses the wide functions
*
* Revision 1.7 2002/04/10 11:04:36 lurcher
*
* Fix endian issue with 4 byte unicode support
*
* Revision 1.6 2002/02/27 11:27:14 lurcher
*
* Fix bug in error reporting
*
* Revision 1.5 2002/01/21 18:00:51 lurcher
*
* Assorted fixed and changes, mainly UNICODE/bug fixes
*
* Revision 1.4 2001/12/13 13:56:31 lurcher
*
* init a global for Peter
*
* Revision 1.3 2001/12/13 13:00:32 lurcher
*
* Remove most if not all warnings on 64 bit platforms
* Add support for new MS 3.52 64 bit changes
* Add override to disable the stopping of tracing
* Add MAX_ROWS support in postgres driver
*
* Revision 1.2 2001/11/15 18:38:21 lurcher
*
* Make the errors returned from SQLError reset after each API call
* if the app is expecting ODBC 3 operation
*
* Revision 1.1.1.1 2001/10/17 16:40:09 lurcher
*
* First upload to SourceForge
*
* Revision 1.23 2001/09/27 17:05:48 nick
*
* Assorted fixes and tweeks
*
* Revision 1.22 2001/07/03 09:30:41 nick
*
* Add ability to alter size of displayed message in the log
*
* Revision 1.21 2001/07/02 17:09:37 nick
*
* Add some portability changes
*
* Revision 1.20 2001/06/20 17:25:32 pat
* Correct msg1 length in 4 extract diag functions
*
* Revision 1.19 2001/06/20 08:19:25 nick
*
* Fix buffer overflow in error handling
*
* Revision 1.18 2001/04/23 13:58:43 nick
*
* Assorted tweeks to text driver to get it to work with StarOffice
*
* Revision 1.17 2001/04/20 16:57:25 nick
*
* Add extra mapping of data types
*
* Revision 1.16
评论0