Lines Matching refs:rc

502 	RETCODE rc;  in PHP_MINIT_FUNCTION()  local
603 RETCODE rc; in odbc_sql_error() local
620rc = SQLError(henv, conn, stmt, (SQLCHAR *) ODBCG(laststate), &error, (SQLCHAR *) ODBCG(lasterrorm… in odbc_sql_error()
621 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_sql_error()
668 RETCODE rc; in odbc_bindcols() local
684 rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), PHP_ODBC_SQL_DESC_NAME, in odbc_bindcols()
687 rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), SQL_COLUMN_TYPE, in odbc_bindcols()
724 rc = PHP_ODBC_SQLCOLATTRIBUTE(result->stmt, (SQLUSMALLINT)(i+1), colfieldid, in odbc_bindcols()
726 if (rc != SQL_SUCCESS) { in odbc_bindcols()
730 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO && colfieldid == SQL_DESC_OCTET_LENGTH) { in odbc_bindcols()
746 rc = SQLColAttributes(result->stmt, (SQLUSMALLINT)(i+1), SQL_COLUMN_DISPLAY_SIZE, in odbc_bindcols()
748 if (rc != SQL_SUCCESS) { in odbc_bindcols()
777 rc = SQLBindCol(result->stmt, (SQLUSMALLINT)(i+1), SQL_C_CHAR, result->values[i].value, in odbc_bindcols()
788 RETCODE rc; in odbc_transact() local
798 rc = SQLTransact(conn->henv, conn->hdbc, (SQLUSMALLINT)((type)?SQL_COMMIT:SQL_ROLLBACK)); in odbc_transact()
799 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_transact()
900 RETCODE rc; in PHP_FUNCTION() local
919 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
920 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
926 if (rc == SQL_ERROR) { in PHP_FUNCTION()
935 rc = SQLGetInfo(conn->hdbc, SQL_FETCH_DIRECTION, (void *) &scrollopts, sizeof(scrollopts), NULL); in PHP_FUNCTION()
936 if (rc == SQL_SUCCESS) { in PHP_FUNCTION()
948 rc = SQLPrepare(result->stmt, (SQLCHAR *) query, SQL_NTS); in PHP_FUNCTION()
949 switch (rc) { in PHP_FUNCTION()
974rc = SQLDescribeParam(result->stmt, (SQLUSMALLINT)(i+1), &result->param_info[i].sqltype, &result->… in PHP_FUNCTION()
976 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1022 RETCODE rc; in PHP_FUNCTION() local
1091 rc = SQLBindParameter(result->stmt, (SQLUSMALLINT)i, SQL_PARAM_INPUT, in PHP_FUNCTION()
1103 rc = SQLBindParameter(result->stmt, (SQLUSMALLINT)i, SQL_PARAM_INPUT, in PHP_FUNCTION()
1108 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1117 rc = SQLFreeStmt(result->stmt, SQL_CLOSE); in PHP_FUNCTION()
1119 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1124 rc = SQLExecute(result->stmt); in PHP_FUNCTION()
1125 switch (rc) { in PHP_FUNCTION()
1129 while (rc == SQL_NEED_DATA) { in PHP_FUNCTION()
1130 rc = SQLParamData(result->stmt, (void*)&fp); in PHP_FUNCTION()
1131 if (rc == SQL_NEED_DATA) { in PHP_FUNCTION()
1154 if (rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO || rc == SQL_NO_DATA_FOUND) { in PHP_FUNCTION()
1178 RETCODE rc; in PHP_FUNCTION() local
1187rc = SQLGetInfo(result->conn_ptr->hdbc,SQL_MAX_CURSOR_NAME_LEN, (void *)&max_len,sizeof(max_len),&… in PHP_FUNCTION()
1188 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1194 rc = SQLGetCursorName(result->stmt, (SQLCHAR *) cursorname, (SQLSMALLINT)max_len, &len); in PHP_FUNCTION()
1195 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1232 RETCODE rc = 0; /* assume all is good */ in PHP_FUNCTION() local
1251 rc = SQLDataSources(conn->henv, in PHP_FUNCTION()
1260 if (SQL_NO_DATA == rc) { in PHP_FUNCTION()
1264 } else if (rc != SQL_SUCCESS) { in PHP_FUNCTION()
1292 RETCODE rc; in PHP_FUNCTION() local
1307 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt)); in PHP_FUNCTION()
1308 if (rc == SQL_INVALID_HANDLE) { in PHP_FUNCTION()
1314 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1323 rc = SQLGetInfo(conn->hdbc, SQL_FETCH_DIRECTION, (void *) &scrollopts, sizeof(scrollopts), NULL); in PHP_FUNCTION()
1324 if (rc == SQL_SUCCESS) { in PHP_FUNCTION()
1336 rc = SQLExecDirect(result->stmt, (SQLCHAR *) query, SQL_NTS); in PHP_FUNCTION()
1337 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO && rc != SQL_NO_DATA_FOUND) { in PHP_FUNCTION()
1371 RETCODE rc; in php_odbc_fetch_hash() local
1405 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_ABSOLUTE,(SQLLEN)pv_row,&crow,RowStatus); in php_odbc_fetch_hash()
1407 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in php_odbc_fetch_hash()
1411 rc = SQLFetch(result->stmt); in php_odbc_fetch_hash()
1413 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in php_odbc_fetch_hash()
1414 if (rc == SQL_ERROR) { in php_odbc_fetch_hash()
1460rc = SQLGetData(result->stmt, (SQLUSMALLINT)(i + 1), sql_c_type, buf, result->longreadlen + 1, &re… in php_odbc_fetch_hash()
1462 if (rc == SQL_ERROR) { in php_odbc_fetch_hash()
1468 if (rc == SQL_SUCCESS_WITH_INFO) { in php_odbc_fetch_hash()
1470 } else if (rc != SQL_SUCCESS) { in php_odbc_fetch_hash()
1471 php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (retcode %u)", i + 1, rc); in php_odbc_fetch_hash()
1537 RETCODE rc; in PHP_FUNCTION() local
1576 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_ABSOLUTE,(SQLLEN)pv_row,&crow,RowStatus); in PHP_FUNCTION()
1578 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in PHP_FUNCTION()
1582 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
1584 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1585 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1629rc = SQLGetData(result->stmt, (SQLUSMALLINT)(i + 1),sql_c_type, buf, result->longreadlen + 1, &res… in PHP_FUNCTION()
1631 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1636 if (rc == SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1638 } else if (rc != SQL_SUCCESS) { in PHP_FUNCTION()
1639 php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (retcode %u)", i + 1, rc); in PHP_FUNCTION()
1675 RETCODE rc; in PHP_FUNCTION() local
1710 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_ABSOLUTE,(SQLLEN)pv_row,&crow,RowStatus); in PHP_FUNCTION()
1712 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in PHP_FUNCTION()
1716 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
1718 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1719 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1750 RETCODE rc; in PHP_FUNCTION() local
1809 rc = SQLExtendedFetch(result->stmt, SQL_FETCH_NEXT, 1, &crow,RowStatus); in PHP_FUNCTION()
1812 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
1814 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1815 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1864 rc = SQLGetData(result->stmt, (SQLUSMALLINT)(field_ind + 1), sql_c_type, in PHP_FUNCTION()
1867 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1873 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1875 …php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (retcode %u)", field_ind + 1, rc); in PHP_FUNCTION()
1897 if (rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1924rc = SQLGetData(result->stmt, (SQLUSMALLINT)(field_ind + 1),sql_c_type, field, fieldsize, &result-… in PHP_FUNCTION()
1926 if (rc == SQL_ERROR) { in PHP_FUNCTION()
1932 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
1933 …php_error_docref(NULL, E_WARNING, "Cannot get data of column #%d (retcode %u)", field_ind + 1, rc); in PHP_FUNCTION()
1947 PHPWRITE(field,(rc == SQL_SUCCESS_WITH_INFO) ? 4095 : result->values[field_ind].vallen); in PHP_FUNCTION()
1949 if (rc == SQL_SUCCESS) { /* no more data avail */ in PHP_FUNCTION()
1963 RETCODE rc; in PHP_FUNCTION() local
1986 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in PHP_FUNCTION()
1989 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
1991 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2009 while(rc == SQL_SUCCESS || rc == SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2040rc = SQLGetData(result->stmt, (SQLUSMALLINT)(i + 1),sql_c_type, buf, result->longreadlen, &result-… in PHP_FUNCTION()
2044 if (rc == SQL_ERROR) { in PHP_FUNCTION()
2050 if (rc == SQL_SUCCESS_WITH_INFO) { in PHP_FUNCTION()
2059 } else if (rc != SQL_SUCCESS) { in PHP_FUNCTION()
2061 php_error_docref(NULL, E_WARNING, "Cannot get data of column #%zu (retcode %u)", i + 1, rc); in PHP_FUNCTION()
2088 rc = SQLExtendedFetch(result->stmt,SQL_FETCH_NEXT,1,&crow,RowStatus); in PHP_FUNCTION()
2091 rc = SQLFetch(result->stmt); in PHP_FUNCTION()
2135 RETCODE rc; in odbc_sqlconnect() local
2169rc = SQLDriverConnect(link->connection->hdbc, NULL, db, SQL_NTS, dsnbuf, sizeof(dsnbuf) - 1, &dsnb… in odbc_sqlconnect()
2173 rc = SQLSetConnectOption(link->connection->hdbc, SQL_ODBC_CURSORS, cur_opt); in odbc_sqlconnect()
2174 if (rc != SQL_SUCCESS) { /* && rc != SQL_SUCCESS_WITH_INFO ? */ in odbc_sqlconnect()
2258rc = SQLDriverConnect(link->connection->hdbc, NULL, (SQLCHAR *) ldb, strlen(ldb), dsnbuf, sizeof(d… in odbc_sqlconnect()
2260rc = SQLConnect(link->connection->hdbc, (SQLCHAR *) db, SQL_NTS, (SQLCHAR *) uid, SQL_NTS, (SQLCHA… in odbc_sqlconnect()
2268 rc = SQLConnect(link->connection->hdbc, (SQLCHAR *) db, SQL_NTS, uid, SQL_NTS, pwd, SQL_NTS); in odbc_sqlconnect()
2271 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) { in odbc_sqlconnect()
2481 int rc, i;
2502 rc = SQLMoreResults(result->stmt);
2503 if (rc == SQL_SUCCESS_WITH_INFO || rc == SQL_SUCCESS) {
2504 rc = SQLFreeStmt(result->stmt, SQL_UNBIND);
2514 } else if (rc == SQL_NO_DATA_FOUND) {
2662 RETCODE rc;
2675rc = SQLSetConnectOption(conn->hdbc, SQL_AUTOCOMMIT, pv_onoff ? SQL_AUTOCOMMIT_ON : SQL_AUTOCOMMIT…
2676 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) {
2684 rc = SQLGetConnectOption(conn->hdbc, SQL_AUTOCOMMIT, (PTR)&status);
2685 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) {
2765 RETCODE rc;
2786 rc = SQLSetConnectOption(link->connection->hdbc, (unsigned short) pv_opt, pv_val);
2787 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) {
2800 rc = SQLSetStmtOption(result->stmt, (unsigned short) pv_opt, pv_val);
2802 if (rc != SQL_SUCCESS && rc != SQL_SUCCESS_WITH_INFO) {
2827 RETCODE rc;
2840 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
2841 if (rc == SQL_INVALID_HANDLE) {
2847 if (rc == SQL_ERROR) {
2858 rc = SQLTables(result->stmt,
2864 if (rc == SQL_ERROR) {
2892 RETCODE rc;
2905 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
2906 if (rc == SQL_INVALID_HANDLE) {
2912 if (rc == SQL_ERROR) {
2925 rc = SQLColumns(result->stmt,
2931 if (rc == SQL_ERROR) {
2960 RETCODE rc;
2973 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
2974 if (rc == SQL_INVALID_HANDLE) {
2980 if (rc == SQL_ERROR) {
2986 rc = SQLColumnPrivileges(result->stmt,
2992 if (rc == SQL_ERROR) {
3022 RETCODE rc;
3047 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
3048 if (rc == SQL_INVALID_HANDLE) {
3054 if (rc == SQL_ERROR) {
3060 rc = SQLForeignKeys(result->stmt,
3068 if (rc == SQL_ERROR) {
3096 RETCODE rc;
3111 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
3112 if (rc == SQL_INVALID_HANDLE) {
3118 if (rc == SQL_ERROR) {
3124 rc = SQLGetTypeInfo(result->stmt, data_type );
3126 if (rc == SQL_ERROR) {
3154 RETCODE rc;
3166 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
3167 if (rc == SQL_INVALID_HANDLE) {
3173 if (rc == SQL_ERROR) {
3179 rc = SQLPrimaryKeys(result->stmt,
3184 if (rc == SQL_ERROR) {
3213 RETCODE rc;
3226 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
3227 if (rc == SQL_INVALID_HANDLE) {
3233 if (rc == SQL_ERROR) {
3239 rc = SQLProcedureColumns(result->stmt,
3245 if (rc == SQL_ERROR) {
3275 RETCODE rc;
3287 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
3288 if (rc == SQL_INVALID_HANDLE) {
3294 if (rc == SQL_ERROR) {
3300 rc = SQLProcedures(result->stmt,
3305 if (rc == SQL_ERROR) {
3336 RETCODE rc;
3353 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
3354 if (rc == SQL_INVALID_HANDLE) {
3360 if (rc == SQL_ERROR) {
3366 rc = SQLSpecialColumns(result->stmt, type,
3373 if (rc == SQL_ERROR) {
3403 RETCODE rc;
3419 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
3420 if (rc == SQL_INVALID_HANDLE) {
3426 if (rc == SQL_ERROR) {
3432 rc = SQLStatistics(result->stmt,
3439 if (rc == SQL_ERROR) {
3468 RETCODE rc;
3480 rc = PHP_ODBC_SQLALLOCSTMT(conn->hdbc, &(result->stmt));
3481 if (rc == SQL_INVALID_HANDLE) {
3487 if (rc == SQL_ERROR) {
3493 rc = SQLTablePrivileges(result->stmt,
3498 if (rc == SQL_ERROR) {