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

« back to all changes in this revision

Viewing changes to DriverManager/SQLBindParameter.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: SQLBindParameter.c,v 1.2 2001/12/13 13:00:31 lurcher Exp $
 
30
 * $Id: SQLBindParameter.c,v 1.4 2002/12/05 17:44:30 lurcher Exp $
31
31
 *
32
32
 * $Log: SQLBindParameter.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
114
122
 
115
123
#include "drivermanager.h"
116
124
 
117
 
static char const rcsid[]= "$RCSfile: SQLBindParameter.c,v $ $Revision: 1.2 $";
 
125
static char const rcsid[]= "$RCSfile: SQLBindParameter.c,v $ $Revision: 1.4 $";
118
126
 
119
127
SQLRETURN SQLBindParameter(
120
128
    SQLHSTMT           statement_handle,
191
199
                LOG_INFO, 
192
200
                "Error: 07009" );
193
201
 
194
 
        __post_internal_error( &statement -> error,
 
202
        __post_internal_error_api( &statement -> error,
195
203
                ERROR_07009, NULL,
196
 
                statement -> connection -> environment -> requested_version );
 
204
                statement -> connection -> environment -> requested_version,
 
205
                SQL_API_SQLBINDPARAMETER );
197
206
 
198
207
        thread_release( SQL_HANDLE_STMT, statement );
199
208
 
323
332
 
324
333
    if ( log_info.log_flag )
325
334
    {
 
335
        char buf[ 128 ];
 
336
 
326
337
        sprintf( statement -> msg, 
327
338
                "\n\t\tExit:[%s]",
328
 
                    __get_return_status( ret ));
 
339
                    __get_return_status( ret, buf ));
329
340
 
330
341
        dm_log_write( __FILE__, 
331
342
                __LINE__,