<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.mysqlnd.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'mysqlnd.incompatibilities.php',
    1 => 'Incompatibilities',
    2 => 'Incompatibilities',
  ),
  'up' => 
  array (
    0 => 'book.mysqlnd.php',
    1 => 'Mysqlnd',
  ),
  'prev' => 
  array (
    0 => 'mysqlnd.config.php',
    1 => '运行时配置',
  ),
  'next' => 
  array (
    0 => 'mysqlnd.persist.php',
    1 => 'Persistent Connections',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/mysqlnd/incompatibilities.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysqlnd.incompatibilities" class="chapter">
 <h1 class="title">Incompatibilities</h1>

 <p class="simpara">
  MySQL Native Driver is in most cases compatible with MySQL Client Library
  (<code class="literal">libmysql</code>). This section documents incompatibilities
  between these libraries.
 </p>
 <ul class="itemizedlist">
  <li class="listitem">
   <span class="simpara">
    Values of <code class="literal">bit</code> data type are returned as binary strings
    (e.g. &quot;\0&quot; or &quot;\x1F&quot;) with <code class="literal">libmysql</code> and as decimal
    strings (e.g. &quot;0&quot; or &quot;31&quot;) with <code class="literal">mysqlnd</code>. If you want the
    code to be compatible with both libraries then always return bit fields as
    numbers from MySQL with a query like this:
    <code class="literal">SELECT bit + 0 FROM table</code>.
   </span>
  </li>
 </ul>
</div>
<?php manual_footer($setup); ?>