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

« back to all changes in this revision

Viewing changes to DriverManager/SQLSetCursorName.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: SQLSetCursorName.c,v 1.1.1.1 2001/10/17 16:40:07 lurcher Exp $
 
30
 * $Id: SQLSetCursorName.c,v 1.3 2002/12/05 17:44:31 lurcher Exp $
31
31
 *
32
32
 * $Log: SQLSetCursorName.c,v $
 
33
 * Revision 1.3  2002/12/05 17:44:31  lurcher
 
34
 *
 
35
 * Display unknown return values in return logging
 
36
 *
 
37
 * Revision 1.2  2002/07/24 08:49:52  lurcher
 
38
 *
 
39
 * Alter UNICODE support to use iconv for UNICODE-ANSI conversion
 
40
 *
33
41
 * Revision 1.1.1.1  2001/10/17 16:40:07  lurcher
34
42
 *
35
43
 * First upload to SourceForge
93
101
 
94
102
#include "drivermanager.h"
95
103
 
96
 
static char const rcsid[]= "$RCSfile: SQLSetCursorName.c,v $ $Revision: 1.1.1.1 $";
 
104
static char const rcsid[]= "$RCSfile: SQLSetCursorName.c,v $ $Revision: 1.3 $";
97
105
 
98
106
SQLRETURN SQLSetCursorName( SQLHSTMT statement_handle,
99
107
           SQLCHAR *cursor_name,
220
228
            return function_return( statement, SQL_ERROR );
221
229
        }
222
230
 
223
 
        s1 = ansi_to_unicode( cursor_name, name_length );
 
231
        s1 = ansi_to_unicode_alloc( cursor_name, name_length, statement -> connection );
224
232
 
225
233
        ret = SQLSETCURSORNAMEW( statement -> connection,
226
234
                statement -> driver_stmt,
259
267
    {
260
268
        sprintf( statement -> msg, 
261
269
                "\n\t\tExit:[%s]",
262
 
                    __get_return_status( ret ));
 
270
                    __get_return_status( ret, s1 ));
263
271
 
264
272
        dm_log_write( __FILE__, 
265
273
                __LINE__,