summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_ps_codec.c
Commit message (Collapse)AuthorAgeFilesLines
* Patch for bug #67839 (mysqli does not handle 4-byte floats correctly)Keyur Govande2014-08-141-4/+45
| | | | | | | | | | | Before the patch, a value of 9.99 in a FLOAT column came out of mysqli as 9.9998998641968. This is because it would naively cast a 4-byte float into PHP's internal 8-byte double. To fix this, with GCC we use the built-in decimal support to "up-convert" the 4-byte float to a 8-byte double. When that is not available, we fall back to converting the float to a string and then converting the string to a double. This mimics what MySQL does.
* Bump yearXinchen Hui2014-01-031-1/+1
|
* And here is the real fix for #66124Andrey Hristov2013-11-211-11/+30
|
* Fixed segfault in mysqlnd when doing long prepareAndrey Hristov2013-07-081-0/+1
|
* Merge branch 'PHP-5.3' into PHP-5.4Xinchen Hui2013-01-061-1/+1
|\
| * bump yearXinchen Hui2013-01-061-1/+1
| |
| * - Year++Felipe Pena2012-01-011-1/+1
| |
| * fix buffer overflow - overwriting with 0x0, due toAndrey Hristov2011-03-241-10/+33
| | | | | | | | | | | | | | unchecked buffer size. This can be easily workarouned on existing unpatched systems by increasing mysqlnd.net_cmd_buffer_size ini variable to more than 8k
| * - Year++Felipe Pena2011-01-011-1/+1
| |
| * fix shadowing of parametersAndrey Hristov2010-10-061-17/+17
| |
| * add some safe casts - lower the number of warnings by 2Andrey Hristov2010-10-041-2/+2
| |
| * WS fixesAndrey Hristov2010-09-231-9/+7
| |
| * fix for bug 52891 - optimize a bitAndrey Hristov2010-09-221-3/+6
| |
| * Fix forAndrey Hristov2010-09-221-32/+94
| | | | | | | | | | Bug #52891 Wrong data inserted with mysqli/mysqlnd when using bind_param,value>LONG_MAX
| * Fix for MySQL Bug #49406Andrey Hristov2010-08-301-1/+1
| | | | | | | | | | | | | | | | | | Binding params doesn't work when selecting a date inside a CASE-WHEN (http://bugs.mysql.com/bug.php?id=49406) The MySQL server sends MYSQL_TYPE_NEWDATE values as clear text, even when PS are used and thus the binary protocol are used. Changing the handler for the type.
| * Switch from using PHP_MAJOR_VERSION to separate define forAndrey Hristov2010-08-121-15/+15
| | | | | | | | | | | | unicode. Unicode is no more, but these are "bookmarks" where to change mysqlnd, if Unicode becomes trendy again.
| * Two functions, which should be methods so one can catchAndrey Hristov2010-06-241-1/+1
| | | | | | | | | | their output, for example
| * Fix sprintf modifiers all around the place. In most casesAndrey Hristov2010-06-211-1/+1
| | | | | | | | | | | | %u should be used. Where size_t is used then MYSQLND_SZ_T_SPEC should be the modifier
| * Use the specialized macro for this caseAndrey Hristov2010-05-251-6/+6
| |
| * Handle OOM in the code that generates PS Execute requestsAndrey Hristov2010-05-251-14/+51
| | | | | | | | | | to the server. Fixes crashes in case of OOM.
| * Fixed very rare memory leak in mysqlnd, when binding thousands of columnsAndrey Hristov2010-04-271-1/+10
| |
| * - Fix copyrightsFelipe Pena2010-04-201-2/+2
| |
| * CS + WS changesAndrey Hristov2010-04-151-45/+43
| |
| * Recommit with an Windows build fix:Andrey Hristov2010-04-061-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fix inconsistencies - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc). - memory allocated by the mysqlnd's allocator should only be freed by it. - add a mode to track memory usage (malloc/free)
| * - revert revision 297277, break the builds (declaration must go 1st, size of ↵Pierre Joye2010-04-011-3/+3
| | | | | | | | void * and other known situations). Also Johannes, can you check that commit pls? Thought we were in bugs fixing only for 5.3
| * Fix inconsistenciesAndrey Hristov2010-04-011-3/+3
| | | | | | | | | | | | | | | | | | | | - memory allocated with spprintf, or likes, outside of mysqlnd's allocator functions should not be freed by the mysqlnd's allocator (a wrapper around emalloc/malloc). - memory allocated by the mysqlnd's allocator should only be freed by it. - add a mode to track memory usage (malloc/free)
| * decouple the methods in MYSQLND_STMT from the data,Andrey Hristov2010-03-161-4/+6
| | | | | | | | | | | | | | | | needed to move to a new structure MYSQLND_STMT. Makes the code cleaner and less error-prone. Also fix PDO/MySQL which directly touch mysqlnd internals instead of using API calls.
| * Fix ZTS buildAndrey Hristov2009-09-301-5/+5
| |
| * Use mnd_ wrappers wherever possible. Needed forAndrey Hristov2009-09-301-2/+2
| | | | | | | | | | statistics.
| * MFH:Fix a problem with cursors, which did not happen with unbuffered PS forAndrey Hristov2009-05-281-0/+2
| | | | | | | | | | | | | | | | | | 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.
| * - MFH: Removed UG(unicode) checksFelipe Pena2009-03-301-2/+2
| |
| * - MFH: Improve mysqlnd's internal method registrationJohannes Schlüter2009-02-161-2/+2
| |
| * MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
| |
| * MFH:Andrey Hristov2008-11-061-14/+14
| | | | | | | | | | | | Get rid of many defines (which simplifies the code a lot), as well as uint->unsigned int
| * MFB:Andrey Hristov2008-10-311-27/+15
| | | | | | | | | | | | | | | | 64bit fixes: - fixes to sprintf modifiers, cleaning warnings - use _t types, like uint64_t instead of uint64, thus skipping series of typedefs.
| * More debugging info for the trace logAndrey Hristov2008-07-221-2/+28
| |
| * Update ext/mysql's and ext/mysqli's testsAndrey Hristov2008-04-241-4/+4
| | | | | | | | | | | | Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in mysqlnd builds as libmysql doesn't support this feature.
| * MFB: Update CVS from the development treeAndrey Hristov2008-04-161-101/+13
| |
| * Small fix and a test case to prove it's rightAndrey Hristov2008-03-201-8/+1
| |
| * - Don't modify the variables which are passed for parameter binding.Andrey Hristov2008-03-201-7/+65
| | | | | | | | | | | | | | | | | | | | We need to clone them, if there will be a transformation (convert_to_xxx) which will change the origin (bug#44390 bind_param / bind_result and Object member variables) - Make mysqlnd more compatible to libmysql, in this case if the execute of a statement fails set the state of the statement back to PREPARED - A test case to check the case of a failing statement.
| * - Fix problems with double definitionsAndrey Hristov2008-01-021-16/+16
| | | | | | | | | | | | | | - Clean up a bit a type mess - 4 types less. No need to have aliases for the same thing (unification is the name). - New macro for Johannes mysqlnd_stmt_ro_result_metadata
| * MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
| |
| * Import mysqlndAndrey Hristov2007-10-051-0/+854
| | | | | Patch ext/mysql and ext/mysqli to support mysqlnd
* - Year++Felipe Pena2012-01-011-1/+1
|
* Move from directly referencing an aggregated structure to using aAndrey Hristov2011-10-251-9/+9
| | | | | | pointer to a structure. The structure is still aggregated but we add a level of indirection for possible plugins to overwrite the storage
* fix buffer overflow - overwriting with 0x0, due toAndrey Hristov2011-03-241-10/+33
| | | | | | | unchecked buffer size. This can be easily workarouned on existing unpatched systems by increasing mysqlnd.net_cmd_buffer_size ini variable to more than 8k
* add a proxy for sppintf and vspprintfAndrey Hristov2011-03-181-19/+6
|
* - Year++Felipe Pena2011-01-011-1/+1
|
* fix shadowing of parametersAndrey Hristov2010-10-061-17/+17
|
* add some safe casts - lower the number of warnings by 2Andrey Hristov2010-10-041-2/+2
|