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

« back to all changes in this revision

Viewing changes to DriverManager/SQLProcedures.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: SQLProcedures.c,v 1.1.1.1 2001/10/17 16:40:06 lurcher Exp $
 
30
 * $Id: SQLProcedures.c,v 1.3 2002/12/05 17:44:31 lurcher Exp $
31
31
 *
32
32
 * $Log: SQLProcedures.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:06  lurcher
34
42
 *
35
43
 * First upload to SourceForge
96
104
 
97
105
#include "drivermanager.h"
98
106
 
99
 
static char const rcsid[]= "$RCSfile: SQLProcedures.c,v $ $Revision: 1.1.1.1 $";
 
107
static char const rcsid[]= "$RCSfile: SQLProcedures.c,v $ $Revision: 1.3 $";
100
108
 
101
109
SQLRETURN SQLProcedures(
102
110
    SQLHSTMT           statement_handle,
255
263
            return function_return( statement, SQL_ERROR );
256
264
        }
257
265
 
258
 
        s1 = ansi_to_unicode( sz_catalog_name, cb_catalog_name );
259
 
        s2 = ansi_to_unicode( sz_schema_name, cb_schema_name );
260
 
        s3 = ansi_to_unicode( sz_proc_name, cb_proc_name );
 
266
        s1 = ansi_to_unicode_alloc( sz_catalog_name, cb_catalog_name, statement -> connection );
 
267
        s2 = ansi_to_unicode_alloc( sz_schema_name, cb_schema_name, statement -> connection );
 
268
        s3 = ansi_to_unicode_alloc( sz_proc_name, cb_proc_name, statement -> connection );
261
269
 
262
270
        ret = SQLPROCEDURESW( statement -> connection ,
263
271
                statement -> driver_stmt,
325
333
    {
326
334
        sprintf( statement -> msg, 
327
335
                "\n\t\tExit:[%s]",
328
 
                    __get_return_status( ret ));
 
336
                    __get_return_status( ret, s1 ));
329
337
 
330
338
        dm_log_write( __FILE__, 
331
339
                __LINE__,