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: SQLAllocStmt.c,v 1.2 2009/02/18 17:59:08 lurcher Exp $
31 *
32 * $Log: SQLAllocStmt.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:05 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.3 1999/10/24 23:54:17 ngorham
44 *
45 * First part of the changes to the error reporting
46 *
47 * Revision 1.2 1999/07/04 21:05:06 ngorham
48 *
49 * Add LGPL Headers to code
50 *
51 * Revision 1.1.1.1 1999/05/29 13:41:05 sShandyb
52 * first go at it
53 *
54 * Revision 1.1.1.1 1999/05/27 18:23:17 pharvey
55 * Imported sources
56 *
57 * Revision 1.1 1999/04/25 23:02:41 nick
58 * Initial revision
59 *
60 *
61 **********************************************************************/
62
63#include <config.h>
64#include "drivermanager.h"
65
66static char const rcsid[]= "$RCSfile: SQLAllocStmt.c,v $ $Revision: 1.2 $";
67
68SQLRETURN SQLAllocStmt( SQLHDBC connection_handle,
69 SQLHSTMT *statement_handle )
70{
71 return __SQLAllocHandle( SQL_HANDLE_STMT,
72 connection_handle,
73 statement_handle,
74 SQL_OV_ODBC2 );
75}
76