Lines Matching refs:ODBCG

170 	ODBCG(num_links)--;  in _close_odbc_conn()
198 ODBCG(num_links)--; in _close_odbc_pconn()
199 ODBCG(num_persistent)--; in _close_odbc_pconn()
490 ODBCG(defConn) = -1; in PHP_RINIT_FUNCTION()
491 ODBCG(num_links) = ODBCG(num_persistent); in PHP_RINIT_FUNCTION()
492 memset(ODBCG(laststate), '\0', 6); in PHP_RINIT_FUNCTION()
493 memset(ODBCG(lasterrormsg), '\0', SQL_MAX_MESSAGE_LENGTH); in PHP_RINIT_FUNCTION()
520 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_persistent)); in PHP_MINFO_FUNCTION()
522 snprintf(buf, sizeof(buf), ZEND_LONG_FMT, ODBCG(num_links)); in PHP_MINFO_FUNCTION()
563 …= SQLError(henv, conn, stmt, (SQLCHAR *) ODBCG(laststate), &error, (SQLCHAR *) ODBCG(lasterrormsg)… in odbc_sql_error()
565 snprintf(ODBCG(laststate), sizeof(ODBCG(laststate)), "HY000"); in odbc_sql_error()
566 snprintf(ODBCG(lasterrormsg), sizeof(ODBCG(lasterrormsg)), "Failed to fetch error message"); in odbc_sql_error()
569 memcpy(conn_resource->laststate, ODBCG(laststate), sizeof(ODBCG(laststate))); in odbc_sql_error()
570 memcpy(conn_resource->lasterrormsg, ODBCG(lasterrormsg), sizeof(ODBCG(lasterrormsg))); in odbc_sql_error()
573 …php_error_docref(NULL, E_WARNING, "SQL error: %s, SQL state %s in %s", ODBCG(lasterrormsg), ODBCG(… in odbc_sql_error()
575 …php_error_docref(NULL, E_WARNING, "SQL error: %s, SQL state %s", ODBCG(lasterrormsg), ODBCG(lastst… in odbc_sql_error()
621 result->longreadlen = ODBCG(defaultlrl); in odbc_bindcols()
622 result->binmode = ODBCG(defaultbinmode); in odbc_bindcols()
912 SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, ODBCG(default_cursortype)); in PHP_FUNCTION()
1312 SQLSetStmtOption(result->stmt, SQL_CURSOR_TYPE, ODBCG(default_cursortype)); in PHP_FUNCTION()
2245 if (ODBCG(allow_persistent) <= 0) { in odbc_do_connect()
2260 if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) { in odbc_do_connect()
2261 php_error_docref(NULL, E_WARNING, "Too many open links (%ld)", ODBCG(num_links)); in odbc_do_connect()
2265 if (ODBCG(max_persistent) != -1 && ODBCG(num_persistent) >= ODBCG(max_persistent)) { in odbc_do_connect()
2266 php_error_docref(NULL, E_WARNING,"Too many open persistent links (%ld)", ODBCG(num_persistent)); in odbc_do_connect()
2281 ODBCG(num_persistent)++; in odbc_do_connect()
2282 ODBCG(num_links)++; in odbc_do_connect()
2296 if(ODBCG(check_persistent)){ in odbc_do_connect()
2322 if (ODBCG(max_links) != -1 && ODBCG(num_links) >= ODBCG(max_links)) { in odbc_do_connect()
2323 php_error_docref(NULL, E_WARNING,"Too many open connections (%ld)",ODBCG(num_links)); in odbc_do_connect()
2332 ODBCG(num_links)++; in odbc_do_connect()
2659 ret = ODBCG(laststate); in php_odbc_lasterror()
2661 ret = ODBCG(lasterrormsg); in php_odbc_lasterror()