Lines Matching refs:rc

161 	RETCODE rc;  in odbc_stmt_execute()  local
170 rc = SQLExecute(S->stmt); in odbc_stmt_execute()
172 while (rc == SQL_NEED_DATA) { in odbc_stmt_execute()
175 rc = SQLParamData(S->stmt, (SQLPOINTER*)&param); in odbc_stmt_execute()
176 if (rc == SQL_NEED_DATA) { in odbc_stmt_execute()
248 switch (rc) { in odbc_stmt_execute()
283 RETCODE rc; in odbc_stmt_param_hook() local
320rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nul… in odbc_stmt_param_hook()
321 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
384 rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, in odbc_stmt_param_hook()
393 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
530 RETCODE rc; in odbc_stmt_fetch() local
545 rc = SQLFetchScroll(S->stmt, odbcori, offset); in odbc_stmt_fetch()
547 if (rc == SQL_SUCCESS) { in odbc_stmt_fetch()
550 if (rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_fetch()
555 if (rc == SQL_NO_DATA) { in odbc_stmt_fetch()
569 RETCODE rc; in odbc_stmt_describe() local
574 rc = SQLDescribeCol(S->stmt, colno+1, (SQLCHAR *) S->cols[colno].colname, in odbc_stmt_describe()
596 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
598 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
603 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
607 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
609 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
629 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
634 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
660 RETCODE rc; in odbc_stmt_get_col() local
666 rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data, in odbc_stmt_get_col()
670 if (rc == SQL_SUCCESS && C->fetched_len < 256) { in odbc_stmt_get_col()
676 if (rc == SQL_SUCCESS_WITH_INFO || rc == SQL_SUCCESS) { in odbc_stmt_get_col()
695rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, buf2, 256, &C->fetche… in odbc_stmt_get_col()
705 if (rc==SQL_SUCCESS_WITH_INFO || (rc==SQL_SUCCESS && C->fetched_len > 255)) { in odbc_stmt_get_col()
712 } else if (rc==SQL_SUCCESS) { in odbc_stmt_get_col()
788 SQLRETURN rc; in odbc_stmt_set_param() local
794 rc = SQLSetCursorName(S->stmt, (SQLCHAR *) Z_STRVAL_P(val), Z_STRLEN_P(val)); in odbc_stmt_set_param()
796 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_set_param()
815 SQLRETURN rc; in odbc_stmt_get_attr() local
823 rc = SQLGetCursorName(S->stmt, (SQLCHAR *) buf, sizeof(buf), &len); in odbc_stmt_get_attr()
825 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_attr()
847 SQLRETURN rc; in odbc_stmt_next_rowset() local
854 rc = SQLMoreResults(S->stmt); in odbc_stmt_next_rowset()
856 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_next_rowset()
872 SQLRETURN rc; in odbc_stmt_close_cursor() local
875 rc = SQLCloseCursor(S->stmt); in odbc_stmt_close_cursor()
876 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_close_cursor()