summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd.c
Commit message (Collapse)AuthorAgeFilesLines
...
| | * Change of way the packet objects are created/initialisedAndrey Hristov2010-01-071-88/+85
| | | | | | | | | | | | | | | | | | | | | | | | If the protocol gets changed, ever, we can decide at runtime easily which protocol to use by instantiating the right protocol object. But this is restricted to the structure of the packets, not the flow.
| | * move network creation to the init hookAndrey Hristov2009-12-281-5/+20
| | |
| | * Fix double calls to free_contents if the connection cannot beAndrey Hristov2009-12-221-2/+3
| | | | | | | | | | | | | | | | | | opened. mysqlnd have no probs, external code should not have too. In any case, double call is not needed.
| | * move state setting to the right place, in mysqlnd_init, no moreAndrey Hristov2009-12-221-2/+2
| | | | | | | | | | | | | | | in mysqlnd::connect
| | * remove duplicated codeAndrey Hristov2009-12-151-8/+2
| | |
| | * Move code out of mysqlnd_conn::connect to mysqlnd_net::connect.Andrey Hristov2009-12-151-76/+5
| | | | | | | | | | | | | | | | | | Thus mysqlnd_conn::connect() does less of what it should not do - think about the transport level.
| | * export this functionAndrey Hristov2009-12-151-1/+1
| | |
| | * refactor: move code that belongs to MYSQLND_NET out of MYSQLNDAndrey Hristov2009-12-151-49/+21
| | |
| | * Make MYSQLND_NET dynamically allocated structure with allocatorAndrey Hristov2009-12-111-48/+37
| | | | | | | | | | | | | | | and deallocator. More member functions will come.
| | * remove stale commentAndrey Hristov2009-12-111-1/+0
| | |
| | * Move two functions which are used in the extension as methods ofAndrey Hristov2009-12-111-30/+30
| | | | | | | | | | | | | | | the connection. Two functions less in the global namespace.
| | * Remove stub code which never actually was used for anything.Andrey Hristov2009-12-091-5/+0
| | | | | | | | | | | | | | | Things like this can be built on top of the core.
| | * Remove the zval caching from mysqlnd. It was disabled versions agoAndrey Hristov2009-12-091-16/+5
| | | | | | | | | | | | | | | | | | due to problems on windows, which were not debugged. Better have code that is disabled not in the core.
| | * Remove disabled code - threaded fetching. This can be implementedAndrey Hristov2009-12-091-98/+0
| | | | | | | | | | | | | | | | | | on a upper level and by offloading it we reduce the complexity of the core.
| | * I svn-commit.2.tmp (Modified) ↵Andrey Hristov2009-12-031-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | Row 2 Col 28 11:45 Ctrl-K H for help fix compilation on windows and with other compilers who don't like void* arithmetic
| | * - disable this debug code until it is actually fixedPierre Joye2009-12-031-0/+2
| | |
| | * fix segfault introduced by Pierre in a recent commitAndrey Hristov2009-12-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | old code was doing something like conn + sizeof(MYSQLND) * MYSQLND + plugin * sizeof(void) * sizeof(MYSQLND) because `conn` is not casted to void*. `conn` has to be casted to void * and then the whole experession will be void * and the calculations will work.
| | * - void is NaN, you can't do math ops on void. Declarations go first. Fix TS ↵Pierre Joye2009-11-301-1/+1
| | | | | | | | | | | | build
| | * fix debug windows build as well as remove a compilation warningAndrey Hristov2009-11-261-1/+1
| | | | | | | | | | | | | | | (a header not included)
| | * Compressed protocol support + extensibility for mysqlndAndrey Hristov2009-11-201-57/+149
| | |
| | * Don't forget to update the length tooAndrey Hristov2009-10-221-0/+1
| | |
| | * Have the lengths also to skip many calls to strlenAndrey Hristov2009-10-221-1/+18
| | |
| | * Count number of affected_rows for normal and PS queriesAndrey Hristov2009-10-221-0/+4
| | |
| | * Fixing host info for TCP/IP and aligning mysqlnd and libmysqlUlf Wendel2009-10-191-3/+4
| | |
| | * Extending mysqlnd statistics/monitoring. Now counting COM_* commands.Ulf Wendel2009-10-161-0/+2
| | |
| | * Making mysqlnd emit no warnings when fetching pooled persistent connections ↵Ulf Wendel2009-10-151-4/+5
| | | | | | | | | | | | that have timed out or are unusable for any other reason - bug #49761
| | * Fixing problems when calling connect (again and again) on a valid connection ↵Ulf Wendel2009-10-151-2/+14
| | | | | | | | | | | | handle. Most of the patch comes from Andrey.
| | * Avoid buffer resizing and let the initial buffer allocation happen a couple ↵Ulf Wendel2009-10-081-2/+0
| | | | | | | | | | | | of lines later with conn->m->set_client_option(conn, MYSQLND_OPT_NET_CMD_BUFFER_SIZE, ...). Andrey, I leave it to you to change the default size to 128k.
| | * Fixing pconnect statistics.Ulf Wendel2009-10-081-3/+2
| | |
| | * Increase the minimal size of the command buffer, which is usedAndrey Hristov2009-10-071-0/+3
| | | | | | | | | | | | | | | | | | for sending queries and in the future commpressed patch for reading almost all packets from the wire instead of using stack buffers.
| | * revert the last changeAndrey Hristov2009-10-061-4/+0
| | |
| | * count the queriesAndrey Hristov2009-10-061-0/+4
| | |
| | * Use mnd_ wrappers wherever possible. Needed forAndrey Hristov2009-09-301-2/+7
| | | | | | | | | | | | | | | statistics.
| | * Fix possible crash when conn is NULLAndrey Hristov2009-09-251-1/+1
| | |
| | * Fix and tests for bug #49511 . mysqlnd and the MySQL Client Library ↵Ulf Wendel2009-09-161-0/+4
| | | | | | | | | | | | (libmysql) use different networking APIs. mysqlnd does use PHP streams whereas libmysql uses its own wrapper of the operating level network calls. PHP sets by default a read timeout of 60s for streams - php.ini, default_socket_timeout. This default applies to all streams that set no other timeout value. mysqlnd has not set any other value and therefore it connections of long running queries can have been cut off after default_socket_timeout seconds resulting in a 2006 - MySQL Server has gone away error message. The MySQL Client Library sets a default timeout of 365 * 24 * 3600 seconds (1year) and waits for other timeouts to happen, e.g. TCP/IP timeouts. mysqlnd now uses the same very long timeout. The value is configurable through a new php.ini setting: mysqlnd.net_read_timeout. mysqlnd.net_read_timeout gets used by any extension (ext/mysql, ext/mysqli, PDO_MySQL) that uses mysqlnd. mysqlnd tells PHP Streams to use mysqlnd.net_read_timeout. Please note that there may be subtle differences between MYSQL_OPT_READ_TIMEOUT from the MySQL Client Library and PHP Streams. E.g. MYSQL_OPT_READ_TIMEOUT is documented to work only for TCP/IP connections and, prior to MySQL 5.1.2, only for Windows. PHP streams may not have this limitation. Please check the streams documentation, if in doubt.
| | * Fixed bug #49027 (mysqli_options() doesn't work when using mysqlnd)Andrey Hristov2009-08-271-51/+83
| | |
| | * - MFH: Removed UG(unicode) checksFelipe Pena2009-03-301-3/+3
| | |
| | * - MFH: Improve mysqlnd's internal method registrationJohannes Schlüter2009-02-161-15/+28
| | |
| | * MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
| | |
| | * MFH:Andrey Hristov2008-11-201-3/+3
| | | | | | | | | | | | | | | | | | Windows fixes for mysqlnd Less warnings + PHPAPI for mysqlnd_poll
| | * MFH:Andrey Hristov2008-11-191-3/+11
| | | | | | | | | | | | | | | | | | | | | Fix a small bug that mysqlnd::next_result didn't care about an error in a multi-statement. In an inner layer the error has been already set, thus it needed better massage on the top level.
| | * MFH: Fix Windows build, pure C compilerAndrey Hristov2008-11-181-1/+2
| | |
| | * MFH:Andrey Hristov2008-11-181-0/+213
| | | | | | | | | | | | | | | | | | Asynchronous queries for mysqli, when mysqlnd is enabled. Includes 4 tests for mysqli_poll
| | * MFH:Andrey Hristov2008-11-061-13/+13
| | | | | | | | | | | | | | | | | | Get rid of many defines (which simplifies the code a lot), as well as uint->unsigned int
| | * MFB:Andrey Hristov2008-10-311-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | 64bit fixes: - fixes to sprintf modifiers, cleaning warnings - use _t types, like uint64_t instead of uint64, thus skipping series of typedefs.
| | * MFH: Fix #46285 (lastInsertId() returns "0" when a deferenced PDOStatement isJohannes Schlüter2008-10-271-21/+27
| | | | | | | | | | | | | | | executed)
| | * MFH: Handle failed connections rightJohannes Schlüter2008-10-011-4/+6
| | |
| | * MFH:Andrey Hristov2008-09-151-2/+2
| | | | | | | | | | | | | | | Add float conversions too. Float users should understand how float works!!!
| | * MFH: constify stringsJohannes Schlüter2008-08-191-3/+3
| | |
| | * MFH: Fix empty error message when connecting to a bad serverJohannes Schlüter2008-08-191-3/+3
| | |