2013-04-27 16:37:59 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2013-04-27 20:03:17 +00:00
|
|
|
<!-- $Revision$ -->
|
2013-04-27 16:37:59 +00:00
|
|
|
<chapter xml:id="mysqlnd.incompatibilities" xmlns="http://docbook.org/ns/docbook">
|
|
|
|
<title>Incompatibilities</title>
|
|
|
|
<para>
|
|
|
|
MySQL Native Driver is in most cases compatible with MySQL Client Library
|
|
|
|
(<literal>libmysql</literal>). This section documents incompatibilities
|
|
|
|
between these libraries.
|
|
|
|
</para>
|
|
|
|
<itemizedlist>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Values of <literal>bit</literal> data type are returned as binary strings
|
|
|
|
(e.g. "\0" or "\x1F") with <literal>libmysql</literal> and as decimal
|
|
|
|
strings (e.g. "0" or "31") with <literal>mysqlnd</literal>. 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:
|
|
|
|
<literal>SELECT bit + 0 FROM table</literal>.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
</chapter>
|
|
|
|
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-omittag:t
|
|
|
|
sgml-shorttag:t
|
|
|
|
sgml-minimize-attributes:nil
|
|
|
|
sgml-always-quote-attributes:t
|
|
|
|
sgml-indent-step:1
|
|
|
|
sgml-indent-data:t
|
|
|
|
indent-tabs-mode:nil
|
|
|
|
sgml-parent-document:nil
|
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
|
|
sgml-exposed-tags:nil
|
|
|
|
sgml-local-catalogs:nil
|
|
|
|
sgml-local-ecat-files:nil
|
|
|
|
End:
|
|
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
|
|
vim: et tw=78 syn=sgml
|
|
|
|
vi: ts=1 sw=1
|
|
|
|
-->
|