diff options
author | Byron Nikolaidis <byronn@insightdist.com> | 1998-07-22 23:47:48 +0000 |
---|---|---|
committer | Byron Nikolaidis <byronn@insightdist.com> | 1998-07-22 23:47:48 +0000 |
commit | 6e66468f3a160878111578a93be2852635eb4f4d (patch) | |
tree | 2a0bbd3b9f18b68446a8d82e4e9b9fcb80ed3885 /src/interfaces/odbc/execute.c | |
parent | 2a677424122012d2eaa4c6d1113fc6b9b121720b (diff) |
Version 06-30-0248
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; + } // - - - - - - - - - |