1/*********************************************************************
2 *
3 * This is based on code created by Peter Harvey,
4 * (pharvey@codebydesign.com).
5 *
6 * Modified and extended by Nick Gorham
7 * (nick@lurcher.org).
8 *
9 * Any bugs or problems should be considered the fault of Nick and not
10 * Peter.
11 *
12 * copyright (c) 1999 Nick Gorham
13 *
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2 of the License, or (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 *
28 **********************************************************************
29 *
30 * $Id: SQLAllocEnv.c,v 1.2 2009/02/18 17:59:08 lurcher Exp $
31 *
32 * $Log: SQLAllocEnv.c,v $
33 * Revision 1.2 2009/02/18 17:59:08 lurcher
34 * Shift to using config.h, the compile lines were making it hard to spot warnings
35 *
36 * Revision 1.1.1.1 2001/10/17 16:40:03 lurcher
37 *
38 * First upload to SourceForge
39 *
40 * Revision 1.1.1.1 2000/09/04 16:42:52 nick
41 * Imported Sources
42 *
43 * Revision 1.2 1999/07/04 21:05:06 ngorham
44 *
45 * Add LGPL Headers to code
46 *
47 * Revision 1.1.1.1 1999/05/29 13:41:05 sShandyb
48 * first go at it
49 *
50 * Revision 1.1.1.1 1999/05/27 18:23:17 pharvey
51 * Imported sources
52 *
53 * Revision 1.1 1999/04/25 23:02:41 nick
54 * Initial revision
55 *
56 *
57 **********************************************************************/
58
59#include <config.h>
60#include "drivermanager.h"
61
62static char const rcsid[]= "$RCSfile: SQLAllocEnv.c,v $ $Revision: 1.2 $";
63
64SQLRETURN SQLAllocEnv( SQLHENV *environment_handle )
65{
66 return __SQLAllocHandle( SQL_HANDLE_ENV,
67 SQL_NULL_HENV,
68 environment_handle,
69 SQL_OV_ODBC2 );
70}
71