Incompatibilities
MySQL Native Driver is in most cases compatible with MySQL Client Library
(libmysql). This section documents incompatibilities
between these libraries.
-
Values of
bitdata type are returned as binary strings (e.g. "\0" or "\x1F") withlibmysqland as decimal strings (e.g. "0" or "31") withmysqlnd. 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:SELECT bit + 0 FROM table.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
