Lines Matching refs:ODBCG
498 ODBCG(num_links)--; in _close_odbc_conn()
527 ODBCG(num_links)--; in _close_odbc_pconn()
528 ODBCG(num_persistent)--; in _close_odbc_pconn()
825 ODBCG(defConn) = -1; in PHP_RINIT_FUNCTION()
826 ODBCG(num_links) = ODBCG(num_persistent); in PHP_RINIT_FUNCTION()
827 memset(ODBCG(laststate), '\0', 6); in PHP_RINIT_FUNCTION()
828 memset(ODBCG(lasterrormsg), '\0', SQL_MAX_MESSAGE_LENGTH); in PHP_RINIT_FUNCTION()
855 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_persistent)); in PHP_MINFO_FUNCTION()
857 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_links)); in PHP_MINFO_FUNCTION()
898 …rc = SQLError(henv, conn, stmt, ODBCG(laststate), &error, ODBCG(lasterrormsg), sizeof(ODBCG(laster… in odbc_sql_error()
900 snprintf(ODBCG(laststate), sizeof(ODBCG(laststate)), "HY000"); in odbc_sql_error()
901 snprintf(ODBCG(lasterrormsg), sizeof(ODBCG(lasterrormsg)), "Failed to fetch error message"); in odbc_sql_error()
904 memcpy(conn_resource->laststate, ODBCG(laststate), sizeof(ODBCG(laststate))); in odbc_sql_error()
905 memcpy(conn_resource->lasterrormsg, ODBCG(lasterrormsg), sizeof(ODBCG(lasterrormsg))); in odbc_sql_error()
908 …php_error_docref(NULL, E_WARNING, "SQL error: %s, SQL state %s in %s", ODBCG(lasterrormsg), ODBCG(… in odbc_sql_error()
910 …php_error_docref(NULL, E_WARNING, "SQL error: %s, SQL state %s", ODBCG(lasterrormsg), ODBCG(lastst… in odbc_sql_error()
956 result->longreadlen = ODBCG(defaultlrl); in odbc_bindcols()
957 result->binmode = ODBCG(defaultbinmode); in odbc_bindcols()
1240 SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, ODBCG(default_cursortype)); in PHP_FUNCTION()
1677 SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, ODBCG(default_cursortype)); in PHP_FUNCTION()
2605 if (ODBCG(allow_persistent) <= 0) { in odbc_do_connect()
2627 if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) { in odbc_do_connect()
2628 php_error_docref(NULL, E_WARNING, "Too many open links (%ld)", ODBCG(num_links)); in odbc_do_connect()
2632 if (ODBCG(max_persistent) != -1 && ODBCG(num_persistent) >= ODBCG(max_persistent)) { in odbc_do_connect()
2633 php_error_docref(NULL, E_WARNING,"Too many open persistent links (%ld)", ODBCG(num_persistent)); in odbc_do_connect()
2652 ODBCG(num_persistent)++; in odbc_do_connect()
2653 ODBCG(num_links)++; in odbc_do_connect()
2668 if(ODBCG(check_persistent)){ in odbc_do_connect()
2714 if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) { in odbc_do_connect()
2715 php_error_docref(NULL, E_WARNING,"Too many open connections (%ld)",ODBCG(num_links)); in odbc_do_connect()
2735 ODBCG(num_links)++; in odbc_do_connect()
3071 ret = ODBCG(laststate); in php_odbc_lasterror()
3073 ret = ODBCG(lasterrormsg); in php_odbc_lasterror()