summaryrefslogtreecommitdiff
path: root/ext/mysqlnd/mysqlnd_ps_codec.c
Commit message (Collapse)AuthorAgeFilesLines
* - 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
|
* 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
|
* 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.
* 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.
* - Removed:Felipe Pena2009-03-271-2/+2
| | | | | | | | - UG(unicode) checks - Changed: - ZEND_STR_TYPE -> IS_UNICODE - convert_to_text -> convert_to_unicode
* - Improve mysqlnd's internal method registrationJohannes Schlüter2009-02-161-2/+2
|
* Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* Get rid of many defines (which simplifies the code a lot),Andrey Hristov2008-11-061-14/+14
| | | | | as well as uint->unsigned int
* 64bit fixes:Andrey Hristov2008-10-311-27/+15
| | | | | | | - fixes to sprintf modifiers, cleaning warnings - use _t types, like uint64_t instead of uint64, thus skipping series of typedefs.
* More debugging infoAndrey 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.
* Update ext/mysql, ext/mysqli and ext/mysqlnd from development treeAndrey Hristov2008-04-161-101/+13
|
* Small fix and a test case to prove itAndrey 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. - 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 ----------------------------------------------------------------------
* Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* Update mysqlnd in HEADAndrey Hristov2007-10-021-10/+11
| | | | | Updated ext/mysql and ext/mysqli in HEAD
* Update CVSAndrey Hristov2007-08-031-6/+7
| | | | | | | | | - Fix BIT problem for BIT values represented with 5 bytes. Typo. - Make it possible with an ini variable to switch off/on statistics collection. - Compile-out debug checking of uneaten data from the line, when the build is release. According to callgrind this was eating some percentage.
* - Moved mysqnd to it's own directory: It is sort of an extension itself.Jani Taskinen2007-07-251-0/+852
(Similar to what ext/libxml is..)