~ubuntu-branches/debian/sid/unixodbc/sid

« back to all changes in this revision

Viewing changes to DriverManager/SQLBindParam.c

  • Committer: Bazaar Package Importer
  • Author(s): Steve Langasek
  • Date: 2004-10-15 03:07:52 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20041015030752-dzw4vhxlgycz3woj
Tags: 2.2.4-11
Brown paper bag me: conflicts do not write themselves just because
you add a line to the changelog.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 *
28
28
 **********************************************************************
29
29
 *
30
 
 * $Id: SQLBindParam.c,v 1.2 2001/12/13 13:00:31 lurcher Exp $
 
30
 * $Id: SQLBindParam.c,v 1.4 2002/12/05 17:44:30 lurcher Exp $
31
31
 *
32
32
 * $Log: SQLBindParam.c,v $
 
33
 * Revision 1.4  2002/12/05 17:44:30  lurcher
 
34
 *
 
35
 * Display unknown return values in return logging
 
36
 *
 
37
 * Revision 1.3  2002/08/19 09:11:49  lurcher
 
38
 *
 
39
 * Fix Maxor ineffiecny in Postgres Drivers, and fix a return state
 
40
 *
33
41
 * Revision 1.2  2001/12/13 13:00:31  lurcher
34
42
 *
35
43
 * Remove most if not all warnings on 64 bit platforms
104
112
 
105
113
#include "drivermanager.h"
106
114
 
107
 
static char const rcsid[]= "$RCSfile: SQLBindParam.c,v $ $Revision: 1.2 $";
 
115
static char const rcsid[]= "$RCSfile: SQLBindParam.c,v $ $Revision: 1.4 $";
108
116
 
109
117
SQLRETURN SQLBindParam( SQLHSTMT statement_handle,
110
118
           SQLUSMALLINT parameter_number,
174
182
                LOG_INFO, 
175
183
                "Error: 07009" );
176
184
 
177
 
        __post_internal_error( &statement -> error,
 
185
        __post_internal_error_api( &statement -> error,
178
186
                ERROR_07009, NULL,
179
 
                statement -> connection -> environment -> requested_version );
 
187
                statement -> connection -> environment -> requested_version,
 
188
                SQL_API_SQLBINDPARAM );
180
189
 
181
190
        thread_release( SQL_HANDLE_STMT, statement );
182
191
 
281
290
 
282
291
    if ( log_info.log_flag )
283
292
    {
 
293
        char buf[ 128 ];
 
294
 
284
295
        sprintf( statement -> msg, 
285
296
                "\n\t\tExit:[%s]",
286
 
                    __get_return_status( ret ));
 
297
                    __get_return_status( ret, buf ));
287
298
 
288
299
        dm_log_write( __FILE__, 
289
300
                __LINE__,