diff options
Diffstat (limited to 'src/interfaces/odbc/execute.c')
-rw-r--r-- | src/interfaces/odbc/execute.c | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/interfaces/odbc/execute.c b/src/interfaces/odbc/execute.c index f15b149d473..536f211a2dc 100644 --- a/src/interfaces/odbc/execute.c +++ b/src/interfaces/odbc/execute.c @@ -13,11 +13,21 @@ * */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #include "psqlodbc.h" #include <stdio.h> #include <string.h> + +#ifdef HAVE_IODBC +#include "iodbc.h" +#include "isqlext.h" +#else #include <windows.h> #include <sqlext.h> +#endif #include "connection.h" #include "statement.h" @@ -27,6 +37,15 @@ #include "lobj.h" +RETCODE SQL_API SQLExecDirect( + HSTMT hstmt, + UCHAR FAR *szSqlStr, + SDWORD cbSqlStr) +{ + return _SQLExecDirect(hstmt, szSqlStr, cbSqlStr); +} + + // Perform a Prepare on the SQL statement RETCODE SQL_API SQLPrepare(HSTMT hstmt, UCHAR FAR *szSqlStr, @@ -111,7 +130,7 @@ StatementClass *self = (StatementClass *) hstmt; // Performs the equivalent of SQLPrepare, followed by SQLExecute. -RETCODE SQL_API SQLExecDirect( +RETCODE SQL_API _SQLExecDirect( HSTMT hstmt, UCHAR FAR *szSqlStr, SDWORD cbSqlStr) @@ -359,6 +378,8 @@ StatementClass *stmt = (StatementClass *) hstmt; stmt->current_exec_param = -1; stmt->put_data = FALSE; + return SQL_SUCCESS; + } // - - - - - - - - - |