Johannes Schlüter
5522a99905
No infinite loop in case the connection broke
2008-11-28 14:37:43 +00:00
Pierre Joye
3def8739ce
- declaration first (fix build win)
2008-11-22 23:52:40 +00:00
Andrey Hristov
2452619ed7
mysqlnd fixes for Windows :
...
- less warnings
- PHPAPI for mysqlnd_poll
2008-11-20 17:29:55 +00:00
Andrey Hristov
d38e2142c1
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.
2008-11-19 17:41:25 +00:00
Andrey Hristov
a04cd72975
Fix windows build - pure C compiler
2008-11-18 18:02:06 +00:00
Andrey Hristov
983f575f22
Asynchronous queries for mysqli, when mysqlnd is enabled.
...
Includes 4 tests for mysqli_poll
2008-11-18 16:54:38 +00:00
Andrey Hristov
9532d30738
More type fixes for Windows
2008-11-06 18:37:32 +00:00
Andrey Hristov
de610e1dd7
Rely on win32/php_stdint.h on Windows for stdint types
2008-11-06 14:20:19 +00:00
Andrey Hristov
1ed87531cb
More cleanup of config-win.h and missed merge, which actually occured in 5_3
2008-11-06 11:26:07 +00:00
Andrey Hristov
0b46d6b5a5
Get rid of many defines (which simplifies the code a lot),
...
as well as uint->unsigned int
2008-11-06 10:36:30 +00:00
Andrey Hristov
6fd6b92ffc
Fix the windows build
2008-11-03 18:07:40 +00:00
Andrey Hristov
2c697a2572
Fix the build
2008-10-31 21:30:58 +00:00
Andrey Hristov
65f5d4e434
64bit fixes:
...
- fixes to sprintf modifiers, cleaning warnings
- use _t types, like uint64_t instead of uint64, thus skipping series of
typedefs.
2008-10-31 20:30:33 +00:00
Johannes Schlüter
96b3cd0a64
Fix #46285 (lastInsertId() returns "0" when a deferenced PDOStatement is
...
executed)
2008-10-27 17:20:26 +00:00
Andrey Hristov
0b77134114
Fix overusage of memory when the result set is empty. Then no memory will be
...
allocated compared to before. Also grow (realloc) the rset with 10% instead
of 33% - more reallocs but better memory usage. Of course later theres is a
realloc to shrink the rset t ofree it from unused rows but its better to
to eat too much at once.
2008-10-27 15:13:42 +00:00
Andrey Hristov
c52f1524e7
Fix a name
2008-10-27 14:38:17 +00:00
Johannes Schlüter
c2e0aaebb6
Don't dereference NULL-pointer
2008-10-19 12:22:49 +00:00
Johannes Schlüter
e7bd1e240c
Improve order in MINFO output
2008-10-01 21:35:27 +00:00
Johannes Schlüter
9fe2c9f531
Handle failed connections right
2008-10-01 19:46:58 +00:00
Andrey Hristov
a7226f1a03
Fix a crash introduced yesterday in mysqlnd, non-zts mode - missing if () for
...
STAT_LAST was accessing wrong memory thus overwritting method pointers.
Windows doesn't have atoll(), which is C99, C89 has only atoi() + atol().
Win has _atoi64, so use it.
2008-09-16 14:34:11 +00:00
Andrey Hristov
1eb634c0e3
Forgot to merge these changes - Float conversion
2008-09-15 18:10:38 +00:00
Andrey Hristov
9b48b002f6
Add float conversions too. Float users should understand how float works!!!
2008-09-15 18:07:58 +00:00
Andrey Hristov
02ae7e8737
Compile-in a string-to-int conversion for INT columns by default,
...
controlled by a ini setting.
2008-09-15 14:02:55 +00:00
Andrey Hristov
5b93dff141
- More statistics
...
- Fixed endless loop - mysqlnd_stmt_next_result() returned FAIL but as it
is defined to be 1 (and PASS is 0), checking for mysqlnd_stmt_more_result()
was successful although we were expecting a FAIL.
2008-09-12 15:06:55 +00:00
Johannes Schlüter
71c14293fc
constify strings
2008-08-19 10:42:00 +00:00
Johannes Schlüter
a11121e8df
Fix empty error message when connecting to a bad server
2008-08-19 10:15:56 +00:00
Felipe Pena
8e1b4a55cc
- Added TSRMLS_DC to apply_func_args_t and zend_hash_apply_with_arguments.
2008-07-24 19:50:23 +00:00
Andrey Hristov
40267cdcf8
Fixed bug#44897 - failed to prepare statement
...
After a PS "CALL()" we have at least one result set. If the SP does also some, then
we need to clean the wire more fool-proof.
2008-07-23 14:06:31 +00:00
Andrey Hristov
ea85e2924f
More debugging info
2008-07-22 16:05:28 +00:00
Andrey Hristov
73dfa53ca8
Sync with bzr
2008-07-15 13:12:27 +00:00
Jani Taskinen
430feb52a6
MFB
2008-07-14 10:32:45 +00:00
Andrey Hristov
fd699ce7d3
Fix possible bug with persistent connections
2008-06-24 11:19:07 +00:00
Andrey Hristov
e5f72d0685
Add missing header
2008-06-24 08:02:06 +00:00
Andrey Hristov
c9d53ab74c
Even more debug info
2008-06-24 06:56:59 +00:00
Andrey Hristov
f3cf29671a
Added more debug info for tracking problems
2008-06-23 22:21:55 +00:00
Andrey Hristov
8a72f8d6ed
MFB
2008-05-29 15:50:10 +00:00
Elizabeth Marie Smith
132ecdfa7d
MFB and steph's pecl fixes into confutils
2008-05-14 03:32:27 +00:00
Andrey Hristov
493b0bb51b
Update mysqlnd - new ini variable
2008-05-07 15:16:27 +00:00
Andrey Hristov
5da78b297b
Update ext/mysql's and ext/mysqli's tests
...
Add mysqli_stmt_more_result()/mysqli_stmt_next_result(), but only in
mysqlnd builds as libmysql doesn't support this feature.
2008-04-24 14:04:58 +00:00
Johannes Schlüter
5105552d5a
- Fix Windows build
2008-04-23 16:55:51 +00:00
Andrey Hristov
c931468b88
Update ext/mysql, ext/mysqli and ext/mysqlnd from development tree
2008-04-16 12:53:18 +00:00
Andrey Hristov
1bf96fdf5c
MFB : Fix for Bug #43832 mysqi_get_charset() doesn't expose charset comment
2008-03-25 18:28:13 +00:00
Andrey Hristov
9732763eca
Small fix and a test case to prove it
2008-03-20 15:34:09 +00:00
Andrey Hristov
0e884df573
- Don't modify the variables which are passed for parameter binding.
...
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.
2008-03-20 13:25:49 +00:00
Andrey Hristov
e53f44b9bd
MFB - Bug #44352 mysqli_connect_error() false negative for host errors
2008-03-18 16:58:43 +00:00
Andrey Hristov
60869b3e8e
Update mysqlnd, ext/mysql and ext/mysqli - now possible to compile with different
...
configurations one or the another extension to use libmysql or mysqlnd mixed in
one binary
2008-03-10 20:27:15 +00:00
Rob Richards
7a92403c87
fix win32 build
2008-02-25 22:56:06 +00:00
Andrey Hristov
5855e35b01
Fix memory leak
2008-02-20 15:20:14 +00:00
Andrey Hristov
7b0625865b
Fix a compile warning + test
2008-02-19 15:38:24 +00:00
Andrey Hristov
62e8d0f5aa
Another fix
2008-02-14 15:20:08 +00:00