8 * The iODBC driver manager.
10 * Copyright (C) 1995 by Ke Jin <kejin@empress.com>
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Library General Public
14 * License as published by the Free Software Foundation; either
15 * version 2 of the License, or (at your option) any later version.
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Library General Public License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with this library; if not, write to the Free
24 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
43 printreturn (void FAR
* istm
, int ret
)
45 FILE FAR
*stm
= (FILE FAR
*) istm
;
46 char FAR
*ptr
= "Invalid return value";
54 case SQL_SUCCESS_WITH_INFO
:
55 ptr
= "SQL_SUCCESS_WITH_INFO";
58 case SQL_NO_DATA_FOUND
:
59 ptr
= "SQL_NO_DATA_FOUND";
63 ptr
= "SQL_NEED_DATA";
66 case SQL_INVALID_HANDLE
:
67 ptr
= "SQL_INVALID_HANDLE";
74 case SQL_STILL_EXECUTING
:
75 ptr
= "SQL_STILL_EXECUTING";
82 fprintf (stm
, "%s\n", ptr
);
90 _iodbcdm_gettrproc (void FAR
* istm
, int procid
, int type
)
92 FILE FAR
*stm
= (FILE FAR
*) istm
;
94 if (type
== TRACE_TYPE_DM2DRV
)
98 for (i
= 0; j
!= en_NullProc
; i
++)
100 j
= odbcapi_symtab
[i
].en_idx
;
104 fprintf (stm
, "\n%s ( ... )\n", odbcapi_symtab
[i
].symbol
);
111 if (type
== TRACE_TYPE_RETURN
)
113 return (HPROC
) printreturn
;
116 return SQL_NULL_HPROC
;