Skip to content

Commit

Permalink
ODBC: sqlprepare workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
binmahone committed Aug 15, 2016
1 parent bebe9dc commit 5483375
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion odbc/Driver/KO_EXEC.CPP
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ RETCODE SQL_API SQLPrepare ( SQLHSTMT pStmt,
RETCODE SQL_API SQLPrepareW ( SQLHSTMT pStmt,
SQLWCHAR* pStmtText,
SQLINTEGER pTextLength ) {



wchar_t* s;
__ODBCLOG ( _ODBCLogMsg ( LogLevel_DEBUG, "SQLPrepareW called on: %d", pStmt ) );
__CHK_HANDLE ( pStmt, SQL_HANDLE_STMT, SQL_ERROR );
Expand Down Expand Up @@ -196,7 +199,11 @@ RETCODE SQL_API SQLPrepareW ( SQLHSTMT pStmt,
// MARK as prepared
// set the flag
( ( pODBCStmt ) pStmt )->Prepared = 1;
return SQL_SUCCESS;


return _SQLExecStmtFromReq((pODBCStmt)pStmt,1);

//return SQL_SUCCESS;
}


Expand Down

0 comments on commit 5483375

Please sign in to comment.