Set the error string for the statement execution */
| 264 | |
| 265 | /* Set the error string for the statement execution */ |
| 266 | static void setStmntError(msODBCconn *conn) |
| 267 | { |
| 268 | SQLSMALLINT len; |
| 269 | |
| 270 | SQLGetDiagField(SQL_HANDLE_STMT, conn->hstmt, 1, SQL_DIAG_MESSAGE_TEXT, (SQLPOINTER) conn->errorMessage, sizeof(conn->errorMessage), &len); |
| 271 | |
| 272 | conn->errorMessage[len] = 0; |
| 273 | } |
| 274 | |
| 275 | /* Execute SQL against connection. Set error string if failed */ |
| 276 | static int executeSQL(msODBCconn *conn, const char * sql) |
no outgoing calls
no test coverage detected