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

« back to all changes in this revision

Viewing changes to DriverManager/SQLStatistics.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: SQLStatistics.c,v 1.1.1.1 2001/10/17 16:40:07 lurcher Exp $
 
30
 * $Id: SQLStatistics.c,v 1.3 2002/12/05 17:44:31 lurcher Exp $
31
31
 *
32
32
 * $Log: SQLStatistics.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
99
107
 
100
108
#include "drivermanager.h"
101
109
 
102
 
static char const rcsid[]= "$RCSfile: SQLStatistics.c,v $ $Revision: 1.1.1.1 $";
 
110
static char const rcsid[]= "$RCSfile: SQLStatistics.c,v $ $Revision: 1.3 $";
103
111
 
104
112
SQLRETURN SQLStatistics( SQLHSTMT statement_handle,
105
113
           SQLCHAR *catalog_name,
299
307
            return function_return( statement, SQL_ERROR );
300
308
        }
301
309
 
302
 
        s1 = ansi_to_unicode( catalog_name, name_length1 );
303
 
        s2 = ansi_to_unicode( schema_name, name_length2 );
304
 
        s3 = ansi_to_unicode( table_name, name_length3 );
 
310
        s1 = ansi_to_unicode_alloc( catalog_name, name_length1, statement -> connection );
 
311
        s2 = ansi_to_unicode_alloc( schema_name, name_length2, statement -> connection );
 
312
        s3 = ansi_to_unicode_alloc( table_name, name_length3, statement -> connection );
305
313
 
306
314
        ret = SQLSTATISTICSW( statement -> connection,
307
315
                statement -> driver_stmt,
384
392
    {
385
393
        sprintf( statement -> msg, 
386
394
                "\n\t\tExit:[%s]",
387
 
                    __get_return_status( ret ));
 
395
                    __get_return_status( ret, s1 ));
388
396
 
389
397
        dm_log_write( __FILE__, 
390
398
                __LINE__,