Lines Matching refs:rc

164 	RETCODE rc;  in odbc_stmt_execute()  local
173 rc = SQLExecute(S->stmt); in odbc_stmt_execute()
175 while (rc == SQL_NEED_DATA) { in odbc_stmt_execute()
178 rc = SQLParamData(S->stmt, (SQLPOINTER*)&param); in odbc_stmt_execute()
179 if (rc == SQL_NEED_DATA) { in odbc_stmt_execute()
245 switch (rc) { in odbc_stmt_execute()
280 RETCODE rc; in odbc_stmt_param_hook() local
316rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nul… in odbc_stmt_param_hook()
317 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
373 rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, in odbc_stmt_param_hook()
382 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
513 RETCODE rc; in odbc_stmt_fetch() local
528 rc = SQLFetchScroll(S->stmt, odbcori, offset); in odbc_stmt_fetch()
530 if (rc == SQL_SUCCESS) { in odbc_stmt_fetch()
533 if (rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_fetch()
538 if (rc == SQL_NO_DATA) { in odbc_stmt_fetch()
552 RETCODE rc; in odbc_stmt_describe() local
557 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, in odbc_stmt_describe()
561 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
563 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
568 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
572 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
574 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
595 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
600 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
625 RETCODE rc; in odbc_stmt_get_col() local
631 rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data, in odbc_stmt_get_col()
634 if (rc == SQL_SUCCESS) { in odbc_stmt_get_col()
640 if (rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_col()
658 rc = SQLGetData(S->stmt, colno+1, SQL_C_CHAR, buf2, 256, &C->fetched_len); in odbc_stmt_get_col()
661 if (rc==SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_col()
668 } else if (rc==SQL_SUCCESS) { in odbc_stmt_get_col()
744 SQLRETURN rc; in odbc_stmt_set_param() local
750 rc = SQLSetCursorName(S->stmt, Z_STRVAL_P(val), Z_STRLEN_P(val)); in odbc_stmt_set_param()
752 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_set_param()
771 SQLRETURN rc; in odbc_stmt_get_attr() local
779 rc = SQLGetCursorName(S->stmt, buf, sizeof(buf), &len); in odbc_stmt_get_attr()
781 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_attr()
803 SQLRETURN rc; in odbc_stmt_next_rowset() local
810 rc = SQLMoreResults(S->stmt); in odbc_stmt_next_rowset()
812 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_next_rowset()