Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Next attempt to fix http://bugs.php.net/bug.php?id=48745. Patch by Andrey. | Ulf Wendel | 2009-09-09 | 3 | -2/+20 | |
| | ||||||
* | Fix for bug#48745 | Andrey Hristov | 2009-08-28 | 12 | -151/+74 | |
| | | | | | mysqlnd: mysql_num_fields returns wrong column count for mysql_list_fields | |||||
* | Fixed bug #49027 (mysqli_options() doesn't work when using mysqlnd) | Andrey Hristov | 2009-08-27 | 4 | -52/+89 | |
| | ||||||
* | Baby, one more time :( | Andrey Hristov | 2009-08-25 | 1 | -1/+1 | |
| | ||||||
* | Better fix. A fix of the fix | Andrey Hristov | 2009-08-25 | 1 | -7/+11 | |
| | ||||||
* | Fix bug#48198 error: 'MYSQLND_LLU_SPEC' undeclared | Andrey Hristov | 2009-08-25 | 1 | -6/+19 | |
| | | | | | | | Possibly fix also : Bug #48780 mysqlnd compile failure Bug #46952 mysqlnd compile failure with suncc | |||||
* | MFB52: Fix include path | Johannes Schlüter | 2009-07-01 | 1 | -1/+1 | |
| | ||||||
* | - fix build | Pierre Joye | 2009-06-28 | 1 | -1/+2 | |
| | ||||||
* | Fix bug #48644 mysqlnd does not compile with '--enable-mysqlnd-threading' | David Soria Parra | 2009-06-23 | 1 | -1/+1 | |
| | ||||||
* | The experimental warning sohuld be in the configure output... | Johannes Schlüter | 2009-06-23 | 1 | -2/+3 | |
| | ||||||
* | Fix two problems: | Andrey Hristov | 2009-06-17 | 2 | -10/+10 | |
| | | | | | | | | | | | | | | | - The value of mysqli_get_client_info() has been changed recently and did not include "mysqlnd" anymore thus the test suite was thinking the build is always libmysql. This did not kept the suite from running pconn tests - Going back to the libc allocator because the memory arena could be on a persistent connections. If the build is not debug there will be no error but the memory will be freed and in the second use of this pconn freed memory will be used - not good! For now the arena doesn't take an argument whether it should allocate persistently or not, thus persistent is safe for now. Johannes gave his +1 to commit this. | |||||
* | C-comments should be used | Andrey Hristov | 2009-06-16 | 1 | -2/+2 | |
| | ||||||
* | Memory usage optimisation. mysqlnd is not libmysql. mysqlnd does use the | Andrey Hristov | 2009-06-16 | 2 | -8/+74 | |
| | | | | | | | | | | | | | | | | | Zend allocator, which means that is easier to hit memory_limit if you have big stored (buffered) result sets. Before with libmysql you won't hit memory_limit because libmysql uses libc's allocator and nothing is checked. Now, with mysqlnd the situation is stricter and it is easier to hit memory_limit. We try to optimize for big result sets. If a result set is larger than 10 rows we will start freeing some data to keep memory usage after 10 rows constant. This will help in the cases where a buffered result set is scrolled forward only and just only once, or mysqlnd will need to decode data from the network buffers again - yes, it is a trade-off between CPU time and memory size. The best for big result sets is of course using unbuffered queries - for comparison : 3 Million rows with buffered take at least 180MB, with buffered you will stay at 3MB, and unbuffered will be just 7-8% slower. | |||||
* | Hardwire function call instead of using callbacks. We don't actually need | Andrey Hristov | 2009-06-16 | 6 | -25/+27 | |
| | | | | | | | | | callbacks, it was done for making 2 functions static, not to pollute the global functions space but that had its price of 8 bytes overheat per allocation, which is just too much. Also making the app member 32b instead of 64b, which should save additional 4 byte, to the total of 12 byte per allocation of a row buffer. | |||||
* | Use Zend's allocator instead of libc's and also don't try to work on | Andrey Hristov | 2009-06-16 | 1 | -4/+7 | |
| | | | | | zvals that are NULLs. | |||||
* | Fix crash when tracing is enabled. Position after buffer was used also | Andrey Hristov | 2009-06-12 | 4 | -49/+73 | |
| | | | | | | direct usage of MYSQLND_STRING pointer instead of the "s" property of the structure. | |||||
* | Revert by adding an ifdef | Andrey Hristov | 2009-06-11 | 1 | -0/+3 | |
| | ||||||
* | - nuke unused var | Pierre Joye | 2009-06-11 | 1 | -1/+0 | |
| | ||||||
* | - MF53: silent warning and make it less ambiguous | Pierre Joye | 2009-06-11 | 1 | -11/+11 | |
| | ||||||
* | Use a better extension version | Johannes Schlüter | 2009-06-11 | 1 | -2/+2 | |
| | ||||||
* | Protect the code when variable is NULL, which should never happen, but | Andrey Hristov | 2009-06-11 | 1 | -4/+6 | |
| | | | | | anyway, you know about "never happens" | |||||
* | Check the pointer before calling a function on it, or we will crash. | Andrey Hristov | 2009-06-11 | 1 | -1/+1 | |
| | | | | | This is a very rare situation where the server is totally broken. | |||||
* | MFB: Reference decrement in own function. Make a function which is not | Andrey Hristov | 2009-06-11 | 2 | -7/+21 | |
| | | | | | called externally static, from PHPAPI. | |||||
* | - fix TS build | Pierre Joye | 2009-06-09 | 1 | -1/+1 | |
| | ||||||
* | - ws | Pierre Joye | 2009-06-09 | 1 | -1/+1 | |
| | ||||||
* | Merge with the branch, someone made changes in PHP5_3 and did not merge. | Andrey Hristov | 2009-06-08 | 3 | -5/+10 | |
| | | | | | Also switch off the zval cache for now. | |||||
* | Add support for mysql_stmt_store_result() from libmysql 6.0.8+ and 5.4.x | Andrey Hristov | 2009-05-29 | 1 | -0/+2 | |
| | ||||||
* | Fix for the failing mysql_stmt_execute() test. Data was cleaned after | Andrey Hristov | 2009-05-29 | 1 | -6/+6 | |
| | | | | | stmt_reset() but it should stay and be freed as later as next stmt_execute() | |||||
* | Fix a very well hidden error because of not being careful with CPP. | Andrey Hristov | 2009-05-29 | 1 | -18/+18 | |
| | | | | | I usually don't make this mistake :) | |||||
* | Fix a valgrind warning as well as more trace log information | Andrey Hristov | 2009-05-28 | 3 | -1/+14 | |
| | ||||||
* | Fix a problem with cursors, which did not happen with unbuffered PS for | Andrey Hristov | 2009-05-28 | 4 | -23/+53 | |
| | | | | | | | | | some reason. Double free of the data, which led to valgrind warnigns. The fix actually optimizes the code in this cases because the old code used copy_ctor while the new one skips it because it is not needed. Transferring data ownership and nulling works best, for PS where we always copy the string from the result set, unlike the text protocol. | |||||
* | Fix a bug with mysqlnd_fetch_field(_direct()). With mysqlnd the optimised | Andrey Hristov | 2009-05-28 | 3 | -3/+23 | |
| | | | | | | | | | | function was called, which however, doesn't respect that during store the raw data is not unpacked, to be lazy. The data is unpacked to zvals later, during every row fetch. However, this way max_length won't be calculated correctly. So, if a mysqlnd_fetch_field(_direct) call comes we need to unpack everything and then calculate max_length...and that is expensive, defies our lazy unpacking optimisation. | |||||
* | ws | Andrey Hristov | 2009-05-26 | 1 | -5/+3 | |
| | ||||||
* | Fix a typo, utf8 is 3 byte max, for us, for now | Andrey Hristov | 2009-05-26 | 1 | -1/+2 | |
| | | | | | Add a another cset | |||||
* | Fix #47535 Compilation failure in ps_fetch_from_1_to_8_bytes() | Johannes Schlüter | 2009-04-20 | 1 | -0/+5 | |
| | ||||||
* | - Sync with 5.3 | Felipe Pena | 2009-03-30 | 2 | -11/+12 | |
| | ||||||
* | - Fix #47819 (Getting pdo_mysql.so: undefined symbol: mysqlnd_debug_init at | Johannes Schlüter | 2009-03-30 | 2 | -2/+2 | |
| | | | | | startup) | |||||
* | - Removed leftover UG(unicode) checks | Felipe Pena | 2009-03-27 | 1 | -35/+32 | |
| | ||||||
* | - Removed: | Felipe Pena | 2009-03-27 | 8 | -113/+85 | |
| | | | | | | | | - UG(unicode) checks - Changed: - ZEND_STR_TYPE -> IS_UNICODE - convert_to_text -> convert_to_unicode | |||||
* | - mark mysqlnd's threading (which can be used for background pre-fetching) | Johannes Schlüter | 2009-03-17 | 1 | -1/+1 | |
| | | | | | experimental | |||||
* | Fix the build, because the macro's name has changed | Andrey Hristov | 2009-03-17 | 1 | -4/+5 | |
| | ||||||
* | Add the charsets available from 6.0 as a structure, to be used later | Andrey Hristov | 2009-02-20 | 1 | -0/+159 | |
| | ||||||
* | - Improve mysqlnd's internal method registration | Johannes Schlüter | 2009-02-16 | 5 | -26/+71 | |
| | ||||||
* | - Export mysql_refresh to mysqli (mysqli_refresh(), $mysqli->refresh()) | Johannes Schlüter | 2009-01-22 | 2 | -0/+20 | |
| | ||||||
* | Bump copyright year, 3 of 3. | Sebastian Bergmann | 2008-12-31 | 28 | -28/+28 | |
| | ||||||
* | No infinite loop in case the connection broke | Johannes Schlüter | 2008-11-28 | 1 | -1/+0 | |
| | ||||||
* | - declaration first (fix build win) | Pierre Joye | 2008-11-22 | 1 | -2/+3 | |
| | ||||||
* | mysqlnd fixes for Windows : | Andrey Hristov | 2008-11-20 | 6 | -14/+14 | |
| | | | | | | - less warnings - PHPAPI for mysqlnd_poll | |||||
* | Fix a small bug that mysqlnd::next_result didn't care about an error in a | Andrey Hristov | 2008-11-19 | 1 | -3/+11 | |
| | | | | | | multi-statement. In an inner layer the error has been already set, thus it needed better massage on the top level. | |||||
* | Fix windows build - pure C compiler | Andrey Hristov | 2008-11-18 | 1 | -1/+2 | |
| |