Lines Matching refs:rc

426 	RETCODE rc;  in ZEND_GET_MODULE()  local
443 rc = SQLFreeStmt(res->stmt,SQL_DROP); in ZEND_GET_MODULE()
722 RETCODE rc; in PHP_MINIT_FUNCTION() local
881 RETCODE rc; in odbc_sql_error() local
898rc = SQLError(henv, conn, stmt, ODBCG(laststate), &error, ODBCG(lasterrormsg), sizeof(ODBCG(laster… in odbc_sql_error()
899 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_sql_error()
947 RETCODE rc; in odbc_bindcols() local
963 rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), PHP_ODBC_SQL_DESC_NAME, in odbc_bindcols()
965 rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), SQL_COLUMN_TYPE, in odbc_bindcols()
1000 rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), colfieldid, in odbc_bindcols()
1003 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO && colfieldid == SQL_DESC_OCTET_LENGTH) { in odbc_bindcols()
1019 rc = SQLColAttributes(result->stmt, (SQLUSMALLINT)(i+1), SQL_COLUMN_DISPLAY_SIZE, in odbc_bindcols()
1047 rc = SQLBindCol(result->stmt, (SQLUSMALLINT)(i+1), SQL_C_CHAR, result->values[i].value, in odbc_bindcols()
1060 RETCODE rc; in odbc_transact() local
1071 rc = SQLTransact(conn->henv, conn->hdbc, (SQLUSMALLINT)((type)?SQL_COMMIT:SQL_ROLLBACK)); in odbc_transact()
1072 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_transact()
1199 RETCODE rc; in PHP_FUNCTION() local
1218 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
1219 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
1225 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1234 rc = SQLGetInfo(conn->hdbc, SQL_FETCH_DIRECTION, (void *) &scrollopts, sizeof(scrollopts), NULL); in PHP_FUNCTION()
1235 if (rc == SQL_SUCCESS) { in PHP_FUNCTION()
1247 rc = SQLPrepare(result->stmt, query, SQL_NTS); in PHP_FUNCTION()
1248 switch (rc) { in PHP_FUNCTION()
1276rc = SQLDescribeParam(result->stmt, (SQLUSMALLINT)(i+1), &result->param_info[i].sqltype, &result->… in PHP_FUNCTION()
1278 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1310 RETCODE rc; in PHP_FUNCTION() local
1416 rc = SQLBindParameter(result->stmt, (SQLUSMALLINT)i, SQL_PARAM_INPUT, in PHP_FUNCTION()
1428 rc = SQLBindParameter(result->stmt, (SQLUSMALLINT)i, SQL_PARAM_INPUT, in PHP_FUNCTION()
1433 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1448 rc = SQLFreeStmt(result->stmt, SQL_CLOSE); in PHP_FUNCTION()
1450 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1454 rc = SQLExecute(result->stmt); in PHP_FUNCTION()
1457 if (rc == SQL_NEED_DATA) { in PHP_FUNCTION()
1460 while (rc == SQL_NEED_DATA) { in PHP_FUNCTION()
1461 rc = SQLParamData(result->stmt, (void*)&fp); in PHP_FUNCTION()
1462 if (rc == SQL_NEED_DATA) { in PHP_FUNCTION()
1469 switch (rc) { in PHP_FUNCTION()
1492 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO || rc == SQL_NO_DATA_FOUND) { in PHP_FUNCTION()
1520 RETCODE rc; in PHP_FUNCTION() local
1530rc = SQLGetInfo(result->conn_ptr->hdbc,SQL_MAX_CURSOR_NAME_LEN, (void *)&max_len,sizeof(max_len),&… in PHP_FUNCTION()
1531 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1537 rc = SQLGetCursorName(result->stmt,cursorname,(SQLSMALLINT)max_len,&len); in PHP_FUNCTION()
1538 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1576 RETCODE rc = 0; /* assume all is good */ in PHP_FUNCTION() local
1597 rc = SQLDataSources(conn->henv, in PHP_FUNCTION()
1606 if (rc != SQL_SUCCESS) { in PHP_FUNCTION()
1638 RETCODE rc; in PHP_FUNCTION() local
1655 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
1656 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
1662 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1671 rc = SQLGetInfo(conn->hdbc, SQL_FETCH_DIRECTION, (void *) &scrollopts, sizeof(scrollopts), NULL); in PHP_FUNCTION()
1672 if (rc == SQL_SUCCESS) { in PHP_FUNCTION()
1684 rc = SQLExecDirect(result->stmt, query, SQL_NTS); in PHP_FUNCTION()
1685 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO && rc != SQL_NO_DATA_FOUND) { in PHP_FUNCTION()
1722 RETCODE rc; in php_odbc_fetch_hash() local
1757 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_ABSOLUTE,rownum,&crow,RowStatus); in php_odbc_fetch_hash()
1759 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in php_odbc_fetch_hash()
1763 rc = SQLFetch(result->stmt); in php_odbc_fetch_hash()
1765 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in php_odbc_fetch_hash()
1804rc = SQLGetData(result->stmt, (SQLUSMALLINT)(i + 1), sql_c_type, buf, result->longreadlen + 1, &re… in php_odbc_fetch_hash()
1806 if (rc == SQL_ERROR) { in php_odbc_fetch_hash()
1812 if (rc == SQL_SUCCESS_WITH_INFO) { in php_odbc_fetch_hash()
1874 RETCODE rc; in PHP_FUNCTION() local
1913 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_ABSOLUTE,rownum,&crow,RowStatus); in PHP_FUNCTION()
1915 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in PHP_FUNCTION()
1919 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
1921 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1957rc = SQLGetData(result->stmt, (SQLUSMALLINT)(i + 1),sql_c_type, buf, result->longreadlen + 1, &res… in PHP_FUNCTION()
1959 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1964 if (rc == SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1995 RETCODE rc; in PHP_FUNCTION() local
2009 rc = SQLFetchPrev(result->stmt); in PHP_FUNCTION()
2011 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2030 RETCODE rc; in PHP_FUNCTION() local
2056 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_ABSOLUTE,rownum,&crow,RowStatus); in PHP_FUNCTION()
2058 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in PHP_FUNCTION()
2062 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
2064 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2088 RETCODE rc; in PHP_FUNCTION() local
2149 rc = SQLExtendedFetch(result->stmt, SQL_FETCH_NEXT, 1, &crow,RowStatus); in PHP_FUNCTION()
2152 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
2154 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2194 rc = SQLGetData(result->stmt, (SQLUSMALLINT)(field_ind + 1), sql_c_type, in PHP_FUNCTION()
2197 if (rc == SQL_ERROR) { in PHP_FUNCTION()
2206 } else if (rc == SQL_NO_DATA_FOUND) { in PHP_FUNCTION()
2222 if (rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2245rc = SQLGetData(result->stmt, (SQLUSMALLINT)(field_ind + 1),sql_c_type, field, fieldsize, &result-… in PHP_FUNCTION()
2247 if (rc == SQL_ERROR) { in PHP_FUNCTION()
2258 PHPWRITE(field,(rc == SQL_SUCCESS_WITH_INFO) ? 4095 : result->values[field_ind].vallen); in PHP_FUNCTION()
2260 if (rc == SQL_SUCCESS) { /* no more data avail */ in PHP_FUNCTION()
2275 RETCODE rc; in PHP_FUNCTION() local
2299 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in PHP_FUNCTION()
2302 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
2304 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2322 while(rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2350rc = SQLGetData(result->stmt, (SQLUSMALLINT)(i + 1),sql_c_type, buf, result->longreadlen, &result-… in PHP_FUNCTION()
2354 if (rc == SQL_ERROR) { in PHP_FUNCTION()
2360 if (rc == SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2383 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in PHP_FUNCTION()
2386 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
2445 RETCODE rc; in odbc_sqlconnect() local
2491rc = SQLDriverConnect((*conn)->hdbc, NULL, lpszConnStr, SQL_NTS, lpszConnStr, CONNSTRSIZE, &cbszCo… in odbc_sqlconnect()
2501rc = SQLDriverConnect((*conn)->hdbc, NULL, db, SQL_NTS, dsnbuf, sizeof(dsnbuf) - 1, &dsnbuflen, SQ… in odbc_sqlconnect()
2505 rc = SQLSetConnectOption((*conn)->hdbc, SQL_ODBC_CURSORS, cur_opt); in odbc_sqlconnect()
2506 if (rc != SQL_SUCCESS) { /* && rc != SQL_SUCCESS_WITH_INFO ? */ in odbc_sqlconnect()
2537rc = SQLDriverConnect((*conn)->hdbc, NULL, ldb, strlen(ldb), dsnbuf, sizeof(dsnbuf) - 1, &dsnbufle… in odbc_sqlconnect()
2539 rc = SQLConnect((*conn)->hdbc, db, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS); in odbc_sqlconnect()
2547 rc = SQLConnect((*conn)->hdbc, db, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS); in odbc_sqlconnect()
2551 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_sqlconnect()
2808 int rc, i; in PHP_FUNCTION() local
2829 rc = SQLMoreResults(result->stmt); in PHP_FUNCTION()
2830 if (rc == SQL_SUCCESS_WITH_INFO || rc == SQL_SUCCESS) { in PHP_FUNCTION()
2831 rc = SQLFreeStmt(result->stmt, SQL_UNBIND); in PHP_FUNCTION()
2844 } else if (rc == SQL_NO_DATA_FOUND) { in PHP_FUNCTION()
3004 RETCODE rc; in PHP_FUNCTION() local
3017rc = SQLSetConnectOption(conn->hdbc, SQL_AUTOCOMMIT, (pv_onoff) ? SQL_AUTOCOMMIT_ON : SQL_AUTOCOMM… in PHP_FUNCTION()
3018 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
3026 rc = SQLGetConnectOption(conn->hdbc, SQL_AUTOCOMMIT, (PTR)&status); in PHP_FUNCTION()
3027 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
3112 RETCODE rc; in PHP_FUNCTION() local
3130 rc = SQLSetConnectOption(conn->hdbc, (unsigned short) pv_opt, pv_val); in PHP_FUNCTION()
3131 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
3141 rc = SQLSetStmtOption(result->stmt, (unsigned short) pv_opt, pv_val); in PHP_FUNCTION()
3143 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
3171 RETCODE rc; in PHP_FUNCTION() local
3184 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3185 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3191 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3202 rc = SQLTables(result->stmt, in PHP_FUNCTION()
3208 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3240 RETCODE rc; in PHP_FUNCTION() local
3253 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3254 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3260 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3273 rc = SQLColumns(result->stmt, in PHP_FUNCTION()
3279 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3312 RETCODE rc; in PHP_FUNCTION() local
3325 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3326 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3332 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3338 rc = SQLColumnPrivileges(result->stmt, in PHP_FUNCTION()
3344 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3378 RETCODE rc; in PHP_FUNCTION() local
3403 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3404 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3410 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3416 rc = SQLForeignKeys(result->stmt, in PHP_FUNCTION()
3424 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3456 RETCODE rc; in PHP_FUNCTION() local
3471 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3472 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3478 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3484 rc = SQLGetTypeInfo(result->stmt, data_type ); in PHP_FUNCTION()
3486 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3518 RETCODE rc; in PHP_FUNCTION() local
3530 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3531 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3537 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3543 rc = SQLPrimaryKeys(result->stmt, in PHP_FUNCTION()
3548 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3581 RETCODE rc; in PHP_FUNCTION() local
3598 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3599 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3605 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3611 rc = SQLProcedureColumns(result->stmt, in PHP_FUNCTION()
3617 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3651 RETCODE rc; in PHP_FUNCTION() local
3667 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3668 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3674 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3680 rc = SQLProcedures(result->stmt, in PHP_FUNCTION()
3685 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3720 RETCODE rc; in PHP_FUNCTION() local
3737 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3738 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3744 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3750 rc = SQLSpecialColumns(result->stmt, in PHP_FUNCTION()
3758 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3792 RETCODE rc; in PHP_FUNCTION() local
3808 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3809 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3815 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3821 rc = SQLStatistics(result->stmt, in PHP_FUNCTION()
3828 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3861 RETCODE rc; in PHP_FUNCTION() local
3873 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
3874 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
3880 if (rc == SQL_ERROR) { in PHP_FUNCTION()
3886 rc = SQLTablePrivileges(result->stmt, in PHP_FUNCTION()
3891 if (rc == SQL_ERROR) { in PHP_FUNCTION()