Lines Matching refs:rc
158 RETCODE rc; 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*)¶m); in odbc_stmt_execute()
173 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
317 …rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nul… in odbc_stmt_param_hook()
318 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
381 rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, in odbc_stmt_param_hook()
390 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
517 RETCODE rc; in odbc_stmt_fetch() local
532 rc = SQLFetchScroll(S->stmt, odbcori, offset); in odbc_stmt_fetch()
534 if (rc == SQL_SUCCESS) { in odbc_stmt_fetch()
537 if (rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_fetch()
542 if (rc == SQL_NO_DATA) { in odbc_stmt_fetch()
556 RETCODE rc; in odbc_stmt_describe() local
561 rc = SQLDescribeCol(S->stmt, colno+1, (SQLCHAR *) S->cols[colno].colname, in odbc_stmt_describe()
583 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
585 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
590 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
594 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
596 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
613 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
618 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
648 RETCODE rc; in odbc_stmt_get_col() local
654 rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data, in odbc_stmt_get_col()
658 if (rc == SQL_SUCCESS && C->fetched_len < 256) { in odbc_stmt_get_col()
664 if (rc == SQL_SUCCESS_WITH_INFO || rc == SQL_SUCCESS) { in odbc_stmt_get_col()
681 …rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, buf2, 256, &C->fetche… in odbc_stmt_get_col()
691 if (rc==SQL_SUCCESS_WITH_INFO || (rc==SQL_SUCCESS && C->fetched_len > 255)) { in odbc_stmt_get_col()
698 } else if (rc==SQL_SUCCESS) { in odbc_stmt_get_col()
758 SQLRETURN rc; in odbc_stmt_set_param() local
764 rc = SQLSetCursorName(S->stmt, (SQLCHAR *) Z_STRVAL_P(val), Z_STRLEN_P(val)); in odbc_stmt_set_param()
766 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_set_param()
785 SQLRETURN rc; in odbc_stmt_get_attr() local
793 rc = SQLGetCursorName(S->stmt, (SQLCHAR *) buf, sizeof(buf), &len); in odbc_stmt_get_attr()
795 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_attr()
817 SQLRETURN rc; in odbc_stmt_next_rowset() local
824 rc = SQLMoreResults(S->stmt); in odbc_stmt_next_rowset()
826 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_next_rowset()
842 SQLRETURN rc; in odbc_stmt_close_cursor() local
845 rc = SQLCloseCursor(S->stmt); in odbc_stmt_close_cursor()
846 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_close_cursor()