mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-19 06:16:58 +08:00
96 lines
3.2 KiB
HTML
96 lines
3.2 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Sets the deadlock retry count</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.sybase-deadlock-retry-count" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">sybase_deadlock_retry_count</h1>
|
|
<p class="verinfo">(PHP 4 >= 4.3.0, PHP 5)</p><p class="refpurpose"><span class="refname">sybase_deadlock_retry_count</span> — <span class="dc-title">Sets the deadlock retry count</span></p>
|
|
|
|
</div>
|
|
|
|
<div id="function.sybase-deadlock-retry-count-refsynopsisdiv">
|
|
<div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function was
|
|
<em class="emphasis">REMOVED</em> in PHP 7.0.0.</p></div>
|
|
</div>
|
|
|
|
<div class="refsect1 description" id="refsect1-function.sybase-deadlock-retry-count-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>sybase_deadlock_retry_count</strong></span>
|
|
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$retry_count</code></span>
|
|
) : <span class="type"><span class="type void">void</span></span></div>
|
|
|
|
<p class="para rdfs-comment">
|
|
Using <span class="function"><strong>sybase_deadlock_retry_count()</strong></span>, the number of retries
|
|
can be defined in cases of deadlocks. By default, every deadlock is retried
|
|
an infinite number of times or until the process is killed by Sybase, the
|
|
executing script is killed (for instance, by <span class="function"><a href="set_time_limit.html" class="function">set_time_limit()</a></span>)
|
|
or the query succeeds.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.sybase-deadlock-retry-count-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">retry_count</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
<table class="doctable table">
|
|
<caption><strong>Values for retry_count</strong></caption>
|
|
|
|
<tbody class="tbody">
|
|
<tr>
|
|
<td>-1</td>
|
|
<td>Retry forever (default)</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>0</td>
|
|
<td>Do not retry</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>n</td>
|
|
<td>Retry n times</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.sybase-deadlock-retry-count-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
没有返回值。
|
|
</p>
|
|
</div>
|
|
|
|
|
|
<div class="refsect1 notes" id="refsect1-function.sybase-deadlock-retry-count-notes">
|
|
<h3 class="title">注释</h3>
|
|
<blockquote class="note"><p><strong class="note">Note</strong>: <span class="simpara">此函数仅适用于对 Sybase 使用 CT 库接口,而不适用于 DB 库。</span></p></blockquote>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |