Skip to content

Commit

Permalink
Fix char */SQLCHAR * type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
lurcher committed Oct 6, 2024
1 parent 369ab75 commit 93ec2f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DriverManager/__info.c
Original file line number Diff line number Diff line change
Expand Up @@ -4925,7 +4925,7 @@ void extract_diag_error_w( int htype,
as2 = (SQLCHAR*) unicode_to_ansi_alloc( msg1, SQL_NTS, connection, NULL );

sprintf( connection -> msg, "\t\tDIAG [%s] %s",
as1 ? as1 : "NULL", as2 ? as2 : "NULL" );
as1 ? as1 : (SQLCHAR*)"NULL", as2 ? as2 : (SQLCHAR*)"NULL" );

if( as1 ) free( as1 );
if( as2 ) free( as2 );
Expand Down Expand Up @@ -5037,7 +5037,7 @@ void extract_sql_error_w( DRV_SQLHANDLE henv,
as2 = (SQLCHAR*) unicode_to_ansi_alloc( msg1, SQL_NTS, connection, NULL );

sprintf( connection -> msg, "\t\tDIAG [%s] %s",
as1 ? as1 : "NULL", as2 ? as2 : "NULL");
as1 ? as1 : (SQLCHAR*)"NULL", as2 ? as2 : (SQLCHAR*)"NULL");

if( as1 ) free( as1 );
if( as2 ) free( as2 );
Expand Down

0 comments on commit 93ec2f0

Please sign in to comment.