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

« back to all changes in this revision

Viewing changes to DriverManager/SQLColumns.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: SQLColumns.c,v 1.1.1.1 2001/10/17 16:40:05 lurcher Exp $
 
30
 * $Id: SQLColumns.c,v 1.3 2002/12/05 17:44:30 lurcher Exp $
31
31
 *
32
32
 * $Log: SQLColumns.c,v $
 
33
 * Revision 1.3  2002/12/05 17:44:30  lurcher
 
34
 *
 
35
 * Display unknown return values in return logging
 
36
 *
 
37
 * Revision 1.2  2002/07/24 08:49:51  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:05  lurcher
34
42
 *
35
43
 * First upload to SourceForge
114
122
 
115
123
#include "drivermanager.h"
116
124
 
117
 
static char const rcsid[]= "$RCSfile: SQLColumns.c,v $ $Revision: 1.1.1.1 $";
 
125
static char const rcsid[]= "$RCSfile: SQLColumns.c,v $ $Revision: 1.3 $";
118
126
 
119
127
SQLRETURN SQLColumns( SQLHSTMT statement_handle,
120
128
           SQLCHAR *catalog_name,
264
272
            return function_return( statement, SQL_ERROR );
265
273
        }
266
274
 
267
 
        s1 = ansi_to_unicode( catalog_name, name_length1 );
268
 
        s2 = ansi_to_unicode( schema_name, name_length2 );
269
 
        s3 = ansi_to_unicode( table_name, name_length3 );
270
 
        s4 = ansi_to_unicode( column_name, name_length4 );
 
275
        s1 = ansi_to_unicode_alloc( catalog_name, name_length1, statement -> connection );
 
276
        s2 = ansi_to_unicode_alloc( schema_name, name_length2, statement -> connection );
 
277
        s3 = ansi_to_unicode_alloc( table_name, name_length3, statement -> connection );
 
278
        s4 = ansi_to_unicode_alloc( column_name, name_length4, statement -> connection );
271
279
 
272
280
        ret = SQLCOLUMNSW( statement -> connection ,
273
281
                statement -> driver_stmt,
359
367
    {
360
368
        sprintf( statement -> msg,
361
369
                "\n\t\tExit:[%s]",
362
 
                    __get_return_status( ret ));
 
370
                    __get_return_status( ret, s1 ));
363
371
 
364
372
        dm_log_write( __FILE__,
365
373
                __LINE__,