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()
251 switch (rc) { in odbc_stmt_execute()
286 RETCODE rc; in odbc_stmt_param_hook() local
323rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nul… in odbc_stmt_param_hook()
324 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
380 rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, in odbc_stmt_param_hook()
389 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
529 RETCODE rc; in odbc_stmt_fetch() local
544 rc = SQLFetchScroll(S->stmt, odbcori, offset); in odbc_stmt_fetch()
546 if (rc == SQL_SUCCESS) { in odbc_stmt_fetch()
549 if (rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_fetch()
554 if (rc == SQL_NO_DATA) { in odbc_stmt_fetch()
568 RETCODE rc; in odbc_stmt_describe() local
573 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, in odbc_stmt_describe()
595 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
597 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
602 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
606 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
608 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
628 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
633 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
658 RETCODE rc; in odbc_stmt_get_col() local
664 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) { in odbc_stmt_get_col()
673 if (rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_col()
691 rc = SQLGetData(S->stmt, colno+1, SQL_C_CHAR, buf2, 256, &C->fetched_len); in odbc_stmt_get_col()
694 if (rc==SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_col()
701 } else if (rc==SQL_SUCCESS) { in odbc_stmt_get_col()
777 SQLRETURN rc; in odbc_stmt_set_param() local
783 rc = SQLSetCursorName(S->stmt, Z_STRVAL_P(val), Z_STRLEN_P(val)); in odbc_stmt_set_param()
785 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_set_param()
804 SQLRETURN rc; in odbc_stmt_get_attr() local
812 rc = SQLGetCursorName(S->stmt, buf, sizeof(buf), &len); in odbc_stmt_get_attr()
814 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_attr()
836 SQLRETURN rc; in odbc_stmt_next_rowset() local
843 rc = SQLMoreResults(S->stmt); in odbc_stmt_next_rowset()
845 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_next_rowset()