Commit Graph

672 Commits

Author SHA1 Message Date
Andrey Hristov
4dbaaae979 Fix for bug#50772
mysqli constructor without parameters does not return a working mysqli object
2010-01-25 13:23:32 +00:00
Andrey Hristov
43d90d8d16 Fix build of mysqli when libmysql is used, mysqlnd_portability.h
might not be available for some weird reasons. Added the macros
that we need, in that case

Code by Jess Portnoy
2010-01-14 09:47:57 +00:00
Ulf Wendel
cbb3b6d8b1 Updating test to new libmysql feature set (first introduced in MySQL 6.0 but now backported to MySQL 5.5). 2010-01-04 15:29:18 +00:00
Ulf Wendel
57d3208c0d Fixing test 2010-01-04 14:59:04 +00:00
Ulf Wendel
6d7bfc13bd Tweaking test. Andrey, you once requested such a test, please have a look if it does exactly what you want it to do. 2010-01-04 14:34:44 +00:00
Ulf Wendel
e1b5476e3e The internal zval cache has been removed and not been reintroduced... remove corresponding test code 2010-01-04 13:44:10 +00:00
Pierrick Charron
c44f57eaff Fixed bug #50636 (MySQLi_Result sets values before calling constructor) 2010-01-03 16:59:33 +00:00
Sebastian Bergmann
22f4ef45fe sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php 2010-01-03 09:23:27 +00:00
Andrey Hristov
066dad5ff9 Unify. The typedef-ed structs in mysqlnd are always capitalized. 2009-12-23 11:58:45 +00:00
Ulf Wendel
95f4aff61c Test for what Andrey has found with 16M packets 2009-12-17 14:15:28 +00:00
Andrey Hristov
3a7f8ea575 Remove stub code which never actually was used for anything.
Things like this can be built on top of the core.
2009-12-09 20:38:11 +00:00
Andrey Hristov
fd44827701 Remove the zval caching from mysqlnd. It was disabled versions ago
due to problems on windows, which were not debugged. Better have 
code that is disabled not in the core.
2009-12-09 20:21:05 +00:00
Andrey Hristov
157f1bddf1 Remove disabled code - threaded fetching. This can be implemented
on a upper level and by offloading it we reduce the complexity of
the core.
2009-12-09 16:57:03 +00:00
Ulf Wendel
e76b3982f8 Adapting tests to accept actual behaviour found in 5.2, 5.3 and 6.0. The behaviour is wrong according to the documentation: mysqli_connect_error() should return an empty string (not NULL), if there is no error. However, changing this would break BC and most users will not notice the difference between NULL and empty string anyway. 2009-12-09 12:06:10 +00:00
Rasmus Lerdorf
19ab7c5e90 Fix broken build.
This constant is not in older versions of MySQL.
2009-12-01 21:39:19 +00:00
Rasmus Lerdorf
a687ddcb4b Fix for bug #49098 2009-11-12 08:20:57 +00:00
Ulf Wendel
c6e297ad4b mysqli won't accept empty string for socket, skip test of mysqli.default_socket if test run does not use socket 2009-11-04 16:56:32 +00:00
Ulf Wendel
7b22d7222b Fix for bug #49965 . Let mysqli_options() try to cast option values to the appropriate type. 2009-11-03 14:56:04 +00:00
Ulf Wendel
277846d23c Fixing stats, updating test to accept new stats 2009-10-22 16:05:33 +00:00
Ulf Wendel
4a7912b9a0 There subtle differences between Linux and Win. mysqlnd is a bit more verbose on Win... silencing to make the test pass 2009-10-21 18:57:45 +00:00
Ulf Wendel
9fe7483037 Making test a bit more portable 2009-10-20 17:54:57 +00:00
Ulf Wendel
74d5906ea3 Fixing test 2009-10-20 17:03:32 +00:00
Ulf Wendel
ef738f8314 libmysql is still 'buggy' - skip test with libmysql 2009-10-20 14:11:43 +00:00
Ulf Wendel
0aeb41c5d0 Well, hacking around to cope with mysql version specific behaviour if using libmysql... 2009-10-20 13:58:57 +00:00
Ulf Wendel
ad8d9329bb Skipping tests if InnoDB is available but disabled. I wonder what InnoDB status comes next... 2009-10-20 12:41:58 +00:00
Ulf Wendel
ffbf8c9595 Fixing typo in SKIPIF and partly skipping tests if using remote MySQL because LOAD LOCAL INFILE will fail 2009-10-20 12:31:04 +00:00
Ulf Wendel
210353caee Using require[_once] instead of include. Adding logic to connect.inc to detect multiple inclusions of connect.inc which leads to a Fatal error because of my_mysqli_connect() function redefinition. Some tests did include connect.inc twice -> run-tests - even the one from trunk - did not detect Fatal error in SKIPIF -> false-positive test result... 2009-10-19 20:07:25 +00:00
Ulf Wendel
82bb99e12d mysqlnd is a bit more verbose than libmysql - silence mysqlnd here for easier comparison of test results. 2009-10-19 16:07:10 +00:00
Ulf Wendel
ff6f052d05 MySQL server and metadata - a sad story... trying to make the test pass with a few more server versions 2009-10-19 12:55:11 +00:00
Ulf Wendel
0949463ed8 Fixing host info for TCP/IP and aligning mysqlnd and libmysql 2009-10-19 12:09:48 +00:00
Ulf Wendel
f0e6db4d56 Extending mysqlnd statistics/monitoring. Now counting COM_* commands. 2009-10-16 13:02:01 +00:00
Ulf Wendel
29d771c543 Making mysqlnd emit no warnings when fetching pooled persistent connections that have timed out or are unusable for any other reason - bug #49761 2009-10-15 20:46:08 +00:00
Ulf Wendel
355a88f676 Fixing problems when calling connect (again and again) on a valid connection handle. Most of the patch comes from Andrey. 2009-10-15 15:49:40 +00:00
Ulf Wendel
54b4cf2532 Updating test because of http://news.php.net/php.cvs/60561 2009-10-01 08:56:28 +00:00
Ulf Wendel
1e0743df12 Fixing test 2009-09-29 16:37:50 +00:00
Ulf Wendel
1e0d7fc509 Fixing test 2009-09-28 10:42:36 +00:00
Ulf Wendel
260596bfaa Trying to respect time limit to please Andrey who must be using slooow hardware... 2009-09-25 13:21:44 +00:00
Andrey Hristov
089e8b56a1 Fix mysqli_stmt_attr_set in libmysql mode.
mysql_stmt_attr_set returns my_bool instead of int.
If it was int, then 0 is success and !0 is failure, but
for my_bool 0 (FALSE) is failure and !0 is success.
2009-09-25 12:25:54 +00:00
Andrey Hristov
07757b4f2f Fix a crash in the rare case when a persistent connection
is found dead, after CHNG_USER. mysql->mysql will be NULL
and segfault will follow.
2009-09-25 11:38:19 +00:00
Ulf Wendel
6ae4ba4173 Large package to check how compression handles package queues. 2009-09-25 10:56:17 +00:00
Andrey Hristov
1d25ad7f5c Remove unused variable 2009-09-25 10:55:06 +00:00
Ulf Wendel
8ad273c88e Replacing MYSQL_TEST_COMPRESS env var with more generic MYSQL_TEST_CONNECT_FLAGS to be able to test all connection flags. Fixing some test. 2009-09-25 10:54:16 +00:00
Andrey Hristov
5d8d0fcfb1 Fix error code checking for mysql_stmt_attr_set. There
is a test that checks this.
2009-09-25 10:52:29 +00:00
Ulf Wendel
e123cae8ac Proxying as many connect calls as possible to make testing of the compression protocol @ mysqlnd easier. By setting the environment variable MYSQL_TEST_COMPRESS you can tell the tests to set the MYSQLI_CLIENT_COMPRESS flag upon connect. 2009-09-24 12:51:03 +00:00
Ulf Wendel
9326836676 Fixing test 2009-09-24 09:40:24 +00:00
Ulf Wendel
d3b2b3c155 Coverage for the OO variants of some functions 2009-09-24 08:19:56 +00:00
Andrey Hristov
5a1ae5b876 Fix handling of BIT fields for non-PS. We need
macros from mysqlnd to be able to convert a bit
stream to a number. BIT is binary data thus
the result is a string, and not unicode
2009-09-22 15:07:39 +00:00
Andrey Hristov
e4be0b369c Fix handling of BIT fields in mysqli, when libmysql is used
We need to use macros from mysqlnd to be able to read the
bit fields, as they are specially encoded. mysqlnd is always
there, 5.3+, so its macros can be used, even if mysqlnd is
not compiled as library of choice.
2009-09-22 13:58:52 +00:00
Ulf Wendel
f0cf479eb4 Fixing test 2009-09-22 08:42:44 +00:00
Ulf Wendel
f532a81aea Fixing test. There is nothing we can do about the MySQL Client Library allocate huge 4GB buffers for some SQL types. 2009-09-22 07:11:50 +00:00