Lines Matching refs:ODBCG

491 	ODBCG(num_links)--;  in _close_odbc_conn()
520 ODBCG(num_links)--; in _close_odbc_pconn()
521 ODBCG(num_persistent)--; in _close_odbc_pconn()
818 ODBCG(defConn) = -1; in PHP_RINIT_FUNCTION()
819 ODBCG(num_links) = ODBCG(num_persistent); in PHP_RINIT_FUNCTION()
820 memset(ODBCG(laststate), '\0', 6); in PHP_RINIT_FUNCTION()
821 memset(ODBCG(lasterrormsg), '\0', SQL_MAX_MESSAGE_LENGTH); in PHP_RINIT_FUNCTION()
848 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_persistent)); in PHP_MINFO_FUNCTION()
850 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_links)); in PHP_MINFO_FUNCTION()
891 …rc = SQLError(henv, conn, stmt, ODBCG(laststate), &error, ODBCG(lasterrormsg), sizeof(ODBCG(laster… in odbc_sql_error()
893 snprintf(ODBCG(laststate), sizeof(ODBCG(laststate)), "HY000"); in odbc_sql_error()
894 snprintf(ODBCG(lasterrormsg), sizeof(ODBCG(lasterrormsg)), "Failed to fetch error message"); in odbc_sql_error()
897 memcpy(conn_resource->laststate, ODBCG(laststate), sizeof(ODBCG(laststate))); in odbc_sql_error()
898 memcpy(conn_resource->lasterrormsg, ODBCG(lasterrormsg), sizeof(ODBCG(lasterrormsg))); in odbc_sql_error()
901 …php_error_docref(NULL, E_WARNING, "SQL error: %s, SQL state %s in %s", ODBCG(lasterrormsg), ODBCG(… in odbc_sql_error()
903 …php_error_docref(NULL, E_WARNING, "SQL error: %s, SQL state %s", ODBCG(lasterrormsg), ODBCG(lastst… in odbc_sql_error()
949 result->longreadlen = ODBCG(defaultlrl); in odbc_bindcols()
950 result->binmode = ODBCG(defaultbinmode); in odbc_bindcols()
1240 SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, ODBCG(default_cursortype)); in PHP_FUNCTION()
1674 SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, ODBCG(default_cursortype)); in PHP_FUNCTION()
2617 if (ODBCG(allow_persistent) <= 0) { in odbc_do_connect()
2637 if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) { in odbc_do_connect()
2638 php_error_docref(NULL, E_WARNING, "Too many open links (%ld)", ODBCG(num_links)); in odbc_do_connect()
2642 if (ODBCG(max_persistent) != -1 && ODBCG(num_persistent) >= ODBCG(max_persistent)) { in odbc_do_connect()
2643 php_error_docref(NULL, E_WARNING,"Too many open persistent links (%ld)", ODBCG(num_persistent)); in odbc_do_connect()
2658 ODBCG(num_persistent)++; in odbc_do_connect()
2659 ODBCG(num_links)++; in odbc_do_connect()
2674 if(ODBCG(check_persistent)){ in odbc_do_connect()
2720 if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) { in odbc_do_connect()
2721 php_error_docref(NULL, E_WARNING,"Too many open connections (%ld)",ODBCG(num_links)); in odbc_do_connect()
2737 ODBCG(num_links)++; in odbc_do_connect()
3077 ret = ODBCG(laststate); in php_odbc_lasterror()
3079 ret = ODBCG(lasterrormsg); in php_odbc_lasterror()