From f832eeb991a3f87f845b0d21e8eb90341b9ffd80 Mon Sep 17 00:00:00 2001 From: Anthony Bedford Date: Fri, 13 Nov 2009 17:44:31 +0000 Subject: [PATCH] Added a miscellaneous notes section. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@290684 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mysqlnd/book.xml | 1 + reference/mysqlnd/notes.xml | 67 +++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 reference/mysqlnd/notes.xml diff --git a/reference/mysqlnd/book.xml b/reference/mysqlnd/book.xml index f753ebc8ec..91741a62d1 100644 --- a/reference/mysqlnd/book.xml +++ b/reference/mysqlnd/book.xml @@ -25,6 +25,7 @@ &reference.mysqlnd.config; &reference.mysqlnd.persist; &reference.mysqlnd.stats; +&reference.mysqlnd.notes; + + Notes + + This section provides a collection of miscellaneous notes on MySQL + Native Driver usage. + + + + + In the case where you pass a statement to + mysqli_query that is longer than + max_allowed_packet of the server, the returned + error codes are different depending on whether you are using MySQL + Native Driver (mysqlnd) or MySQL Client Library + (libmysql). The behavior is as follows: + + + + + mysqlnd on Linux returns an error code of 1153. + The error message means got a packet bigger than + max_allowed_packet bytes. + + + + + mysqlnd on Windows returns an error code 2006. + This error message means server has gone away. + + + + + libmysql on all platforms returns an error code + 2006. This error message means server has gone + away. + + + + + The same thing happens with + mysqli_stmt_prepare. + + + + +