Lines Matching refs:rc

163 	RETCODE rc;  in odbc_stmt_execute()  local
172 rc = SQLExecute(S->stmt); in odbc_stmt_execute()
174 while (rc == SQL_NEED_DATA) { in odbc_stmt_execute()
177 rc = SQLParamData(S->stmt, (SQLPOINTER*)&param); in odbc_stmt_execute()
178 if (rc == SQL_NEED_DATA) { in odbc_stmt_execute()
250 switch (rc) { in odbc_stmt_execute()
285 RETCODE rc; in odbc_stmt_param_hook() local
322rc = SQLDescribeParam(S->stmt, (SQLUSMALLINT) param->paramno+1, &sqltype, &precision, &scale, &nul… in odbc_stmt_param_hook()
323 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
386 rc = SQLBindParameter(S->stmt, (SQLUSMALLINT) param->paramno+1, in odbc_stmt_param_hook()
395 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_param_hook()
532 RETCODE rc; in odbc_stmt_fetch() local
547 rc = SQLFetchScroll(S->stmt, odbcori, offset); in odbc_stmt_fetch()
549 if (rc == SQL_SUCCESS) { in odbc_stmt_fetch()
552 if (rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_fetch()
557 if (rc == SQL_NO_DATA) { in odbc_stmt_fetch()
571 RETCODE rc; in odbc_stmt_describe() local
576 rc = SQLDescribeCol(S->stmt, colno+1, S->cols[colno].colname, in odbc_stmt_describe()
598 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
600 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
605 rc = SQLColAttribute(S->stmt, colno+1, in odbc_stmt_describe()
609 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
611 if (rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_describe()
631 rc = SQLBindCol(S->stmt, colno+1, in odbc_stmt_describe()
636 if (rc != SQL_SUCCESS) { in odbc_stmt_describe()
662 RETCODE rc; in odbc_stmt_get_col() local
668 rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, C->data, in odbc_stmt_get_col()
672 if (rc == SQL_SUCCESS && C->fetched_len < 256) { in odbc_stmt_get_col()
678 if (rc == SQL_SUCCESS_WITH_INFO || rc == SQL_SUCCESS) { in odbc_stmt_get_col()
697rc = SQLGetData(S->stmt, colno+1, C->is_unicode ? SQL_C_BINARY : SQL_C_CHAR, buf2, 256, &C->fetche… in odbc_stmt_get_col()
707 if (rc==SQL_SUCCESS_WITH_INFO || (rc==SQL_SUCCESS && C->fetched_len > 255)) { in odbc_stmt_get_col()
714 } else if (rc==SQL_SUCCESS) { in odbc_stmt_get_col()
790 SQLRETURN rc; in odbc_stmt_set_param() local
796 rc = SQLSetCursorName(S->stmt, Z_STRVAL_P(val), Z_STRLEN_P(val)); in odbc_stmt_set_param()
798 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_set_param()
817 SQLRETURN rc; in odbc_stmt_get_attr() local
825 rc = SQLGetCursorName(S->stmt, buf, sizeof(buf), &len); in odbc_stmt_get_attr()
827 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in odbc_stmt_get_attr()
849 SQLRETURN rc; in odbc_stmt_next_rowset() local
856 rc = SQLMoreResults(S->stmt); in odbc_stmt_next_rowset()
858 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_next_rowset()
874 SQLRETURN rc; in odbc_stmt_close_cursor() local
877 rc = SQLCloseCursor(S->stmt); in odbc_stmt_close_cursor()
878 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_stmt_close_cursor()