Lines Matching refs:rc

158 	RETCODE rc, rc1;  in odbc_stmt_execute()  local
167 rc = SQLExecute(S->stmt); in odbc_stmt_execute()
169 while (rc == SQL_NEED_DATA) { in odbc_stmt_execute()
172 rc = SQLParamData(S->stmt, (SQLPOINTER*)&param); in odbc_stmt_execute()
173 if (rc == SQL_NEED_DATA) { in odbc_stmt_execute()
198 rc = rc1; in odbc_stmt_execute()
204 rc = rc1; in odbc_stmt_execute()
244 rc = rc1; in odbc_stmt_execute()
254 switch (rc) { in odbc_stmt_execute()
289 RETCODE rc; in odbc_stmt_param_hook() local
326rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nul… in odbc_stmt_param_hook()
327 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
390 rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, in odbc_stmt_param_hook()
399 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
526 RETCODE rc; in odbc_stmt_fetch() local
541 rc = SQLFetchScroll(S->stmt, odbcori, offset); in odbc_stmt_fetch()
543 if (rc == SQL_SUCCESS) { in odbc_stmt_fetch()
546 if (rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_fetch()
551 if (rc == SQL_NO_DATA) { in odbc_stmt_fetch()
565 RETCODE rc; in odbc_stmt_describe() local
570 rc = SQLDescribeCol(S->stmt, colno+1, (SQLCHAR *) S->cols[colno].colname, in odbc_stmt_describe()
592 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
594 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
599 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
603 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
605 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
622 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
627 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
657 RETCODE rc; in odbc_stmt_get_col() local
663 rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data, in odbc_stmt_get_col()
667 if (rc == SQL_SUCCESS && C->fetched_len < 256) { in odbc_stmt_get_col()
673 if (rc == SQL_SUCCESS_WITH_INFO || rc == SQL_SUCCESS) { in odbc_stmt_get_col()
690rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, buf2, 256, &C->fetche… in odbc_stmt_get_col()
701 if (rc==SQL_SUCCESS_WITH_INFO || (rc==SQL_SUCCESS && C->fetched_len > 255)) { in odbc_stmt_get_col()
708 } else if (rc==SQL_SUCCESS) { in odbc_stmt_get_col()
768 SQLRETURN rc; in odbc_stmt_set_param() local
774 rc = SQLSetCursorName(S->stmt, (SQLCHAR *) Z_STRVAL_P(val), Z_STRLEN_P(val)); in odbc_stmt_set_param()
776 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_set_param()
795 SQLRETURN rc; in odbc_stmt_get_attr() local
803 rc = SQLGetCursorName(S->stmt, (SQLCHAR *) buf, sizeof(buf), &len); in odbc_stmt_get_attr()
805 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_attr()
827 SQLRETURN rc; in odbc_stmt_next_rowset() local
834 rc = SQLMoreResults(S->stmt); in odbc_stmt_next_rowset()
836 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_next_rowset()
852 SQLRETURN rc; in odbc_stmt_close_cursor() local
855 rc = SQLCloseCursor(S->stmt); in odbc_stmt_close_cursor()
856 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_close_cursor()