Ulf Wendel
6fff9f4534
Starting to merge the latest set of ext/mysqli tests from the mysqlnd
...
SVN repro into HEAD. Again, it might happen that I crash the set of tests
and don't mention one or the other change while merging. Blame me...
1) Note the new environment variables to control the test run
2) Variables $IS_MYSQLND and $MYSQLND_VERSION are for writing portable tests
3) sys_get_temp_dir function is for PHP5/PHP6 portability
2007-07-12 20:04:17 +00:00
Antony Dovgal
814629c7d6
fix tests
2007-05-18 11:47:31 +00:00
Antony Dovgal
ccd97f3a21
fix test names
2007-05-07 17:23:53 +00:00
Antony Dovgal
8d9be0338b
fix test names
2007-05-07 16:50:40 +00:00
foobar
825ed60f90
- Fixed test to skip when mysqld is not running
2007-03-25 01:15:41 +00:00
Stanislav Malyshev
b9fd0c848a
add testcase
2007-03-09 18:37:32 +00:00
Georg Richter
c7a97a7482
unicode fixes
2006-10-01 21:01:31 +00:00
Georg Richter
1432e7b40f
added unicode support for mysqli extension
2006-09-26 13:06:13 +00:00
Ilia Alshanetsky
b663e04049
MFB: Fixed test for systems without INFILE/OUTFILE support
2006-09-13 15:53:12 +00:00
Antony Dovgal
3cf1565d90
typos in comments and other minor improvements
2006-08-10 13:44:00 +00:00
Ilia Alshanetsky
3cf509ab75
MFB: Added possible failure note.
2006-07-18 00:09:21 +00:00
Ilia Alshanetsky
3c75c080cf
MFB: Fixed test for systems where set_charset() method is unavailable.
2006-07-13 15:42:55 +00:00
Antony Dovgal
3945c5e1c6
MFB: fix #38072 (boolean arg for mysqli_autocommit() is always true on Solaris)
2006-07-12 10:15:30 +00:00
Hartmut Holzgraefe
4fb0776b8e
new test cases for mysqli_warnings and mysql_driver properties
2006-07-12 08:00:24 +00:00
Hartmut Holzgraefe
eef7cb2d75
make sure embedded server is correctly initialized
2006-07-11 23:41:40 +00:00
Hartmut Holzgraefe
45a238c129
skip when testing embedded server
2006-07-11 23:37:41 +00:00
Hartmut Holzgraefe
0bbeae457b
no need to test ping and kill with embedded server
2006-07-11 23:34:27 +00:00
Hartmut Holzgraefe
ecb58ee2cd
check both OO and procedural style as "thread_id" is a property and not
...
a method in the OO interface
2006-07-11 07:21:27 +00:00
Hartmut Holzgraefe
0bf1cbe8d0
modified test to use (and cover) mysqli->thread_id
2006-07-11 07:10:18 +00:00
Hartmut Holzgraefe
250f4efe6b
test kill()
2006-07-11 07:04:44 +00:00
Hartmut Holzgraefe
1c39435499
test ping()
2006-07-11 07:04:31 +00:00
Hartmut Holzgraefe
b259f66300
test multi_query(), next_result(), more_results()
...
(only partially covered by a bug testcase yet)
2006-07-11 07:04:16 +00:00
Hartmut Holzgraefe
587c37a036
get_client_info() test
2006-07-11 07:03:31 +00:00
Hartmut Holzgraefe
bf71e83fbf
test was only covering fetch_fields(), added fetch_field() and fetch_field_direct()
2006-07-11 07:02:50 +00:00
Hartmut Holzgraefe
9301bc929d
test was not covering DOUBLE bindings
2006-07-11 07:02:02 +00:00
Antony Dovgal
1e5849ca94
add test
2006-07-05 14:12:41 +00:00
Michael Wallner
5777060367
MFB: Fixed bug #36949 (invalid internal mysqli objects dtor)
2006-05-29 16:55:40 +00:00
Georg Richter
4508ae73f7
merge from 5.2
2006-05-09 13:53:39 +00:00
Georg Richter
b6d7fdf465
Merge from 5.2
2006-05-09 11:27:20 +00:00
Antony Dovgal
8c63a3bce7
MF51: fix tests
2006-03-30 20:43:55 +00:00
Antony Dovgal
29d3ee55d5
fix #36420 (segfault when access result->num_rows after calling result->close())
2006-02-16 16:08:52 +00:00
Andrey Hristov
94dffc55ac
bring tests up-to-date with 5_1 branch
...
#few are failing and will stop failing when bugfixes are upmerged from 5_1
2006-01-04 23:04:06 +00:00
Ilia Alshanetsky
1c8c3c063b
Fixed test failure
2005-10-13 21:26:08 +00:00
Antony Dovgal
5ec88f863e
MF51: fix #34810 (mysqli::init() and others use wrong $this pointer without checks)
2005-10-10 12:59:47 +00:00
foobar
40a049b27e
Skip tests in 64bit systems
2005-07-20 00:18:24 +00:00
foobar
a7e85b3c07
Make sure we get a WARNING and not an ERROR here :)
2005-07-08 08:53:25 +00:00
foobar
b35224fa81
add test case
2005-06-27 19:07:52 +00:00
foobar
8eb44394cb
set_charset() is only available in mysql versions > 4.1.12
2005-06-27 10:34:42 +00:00
foobar
0b35120921
do not pollute other directories and cleanup after test
2005-06-27 10:14:11 +00:00
Ilia Alshanetsky
00f14fbd74
Slightly more reliable current path detection.
2005-06-22 13:41:59 +00:00
Ilia Alshanetsky
46b276ee4b
Skip MySQLi tests if connection could not be established and not using
...
embeded db.
2005-06-22 13:41:43 +00:00
Georg Richter
ce972676b5
added testcase for mysqli_warning class
2005-06-22 10:15:37 +00:00
Georg Richter
976be82fb9
added testcase for cursors (nested selects)
2005-06-22 10:14:32 +00:00
Georg Richter
15563f8d91
fix for bug #33263 (mysqli_real_escape doesn't work in __construct)
2005-06-17 16:32:43 +00:00
Georg Richter
230681b0b3
enabled set_charset for MySQL Versions >= 5.0.6
...
added testcase for bug #33090
2005-05-21 08:46:46 +00:00
Georg Richter
49e1484da8
- fixed compile error under windows. Functionality for changing the
...
character set was moved to libmysql (4.1 bk tree - will be merged into
5.0 within the next days).
- renamed mysql_set_character_set to mysqli_set_charset
2005-05-13 13:11:41 +00:00
foobar
8d00609794
- We skip tests when the extension is not loaded..in the php.ini
2005-05-09 21:16:49 +00:00
foobar
db1a5ab243
revert pointless patch
2005-05-09 21:16:06 +00:00
Andrey Hristov
02d0f72596
also test shared builds
2005-05-09 16:23:22 +00:00
Georg Richter
b654b20ef6
Added new function mysqli_set_character_set_name
2005-05-08 08:39:56 +00:00
Georg Richter
929e3851f2
fixed memleak in mysqli_close
...
fixed bug #32956 (mysqli_bind_result doesn't support MYSQL_TYPE_NULL)
2005-05-05 13:02:32 +00:00
Andrey Hristov
f6b12b351e
MFB (fixing bug 31668)
2005-04-27 12:12:58 +00:00
Georg Richter
9c1960c398
fixed typo in last commit :(
2005-04-20 13:03:01 +00:00
Andrey Hristov
2652762dcd
MFB
2005-04-19 15:45:07 +00:00
Andrey Hristov
eef94ff4bb
add a test case for Bug #32405 (the previous commit incorporated a fix
...
for it).
2005-04-19 13:29:37 +00:00
Andrey Hristov
155b90db20
- fixing all "long" into "int" fetching problems (cause memory corruption
...
on 64 bit)
- nail down a problem because of the new MYSQL_TYPE_NEWDECIMAL introduced
in MySQL 5.0+
- Add more info to the autocommit test
2005-04-19 12:59:16 +00:00
Georg Richter
2e2bfb83c4
fix for bug #31939
2005-02-25 08:43:41 +00:00
Georg Richter
6b49e2d9e7
fixed compile bug under Windows (libmysql.def currently doesn't export mysql_server_init/end).
...
Thanks to Sebastian Bergmann for reporting
2005-01-08 15:11:37 +00:00
Georg Richter
0b4c108bd7
Added new classes:
...
mysqli_driver
mysqli_warning
mysqli_exception
mysqli_sql_exception
Improved embedded server support
changed testsuite to work also with embedded server
Made statement and resultset classes extendable
minor fixes
2005-01-07 14:59:59 +00:00
Georg Richter
dc63cb7feb
fixed testcase 047
...
fixed windows compile error
2004-12-27 15:39:35 +00:00
Georg Richter
683f6c879c
added constructors for mysqli_stmt and mysqli_result classes
2004-12-26 13:16:40 +00:00
Georg Richter
ea22bf6063
fix for bug 31141
2004-12-25 16:42:53 +00:00
Georg Richter
6d27573ec2
added skipif section
2004-12-04 08:50:33 +00:00
Georg Richter
9751d9afaa
Fixed bug #30890 (testsuite)
...
Fixed bug #28817 (property problems in extended class)
2004-12-04 08:16:04 +00:00
Georg Richter
30dd61abb7
Fixed bug #30967 (properties in extended mysqli classes don't work)
2004-12-03 07:56:19 +00:00
Georg Richter
b8863135a2
Fixed tests for empty dates (see http://bugs.mysql.com/?id=6058 )
...
Fixed memleak in mysqli_stmt_bind_result
Fixed error handling for mysqli_multi_query
2004-11-01 07:19:26 +00:00
Georg Richter
616d49aaf6
test for local_infile_handler
2004-08-25 13:58:03 +00:00
Georg Richter
8c6ab178e4
fixed bug #29311
...
added support for Cursors (MySQL 5.0.x)
2004-07-23 12:47:36 +00:00
Georg Richter
f7ca7c469a
changed output
2004-02-17 07:45:15 +00:00
Georg Richter
d23dff1220
fixed some tests
...
added skip section for prepared statements when using SHOW command
2004-02-16 15:32:46 +00:00
Georg Richter
3e2907d614
changed first param in mysqli_bind_param
2004-02-11 07:39:28 +00:00
Georg Richter
340d891b3e
mysqli_prepare_result -> mysqli_get_metadata
2003-09-25 11:19:58 +00:00
Georg Richter
c836bf6036
test for helly's mysqli_fetch_object changes
2003-09-06 19:40:53 +00:00
foobar
83595f1f5c
fix test
2003-08-12 02:05:21 +00:00
Georg Richter
5c09a9e42f
test for bind + sql_mode=PIPES_AS_CONCAT
2003-07-15 13:13:59 +00:00
Georg Richter
4457876554
additional test for multi-bind
2003-07-15 10:36:18 +00:00
Georg Richter
192fb9095e
changed tests (ysqli_bind_param and mysql_bind_result changes)
2003-06-28 21:30:58 +00:00
Marcus Boerger
2838dcb713
Add missing ini setting (use default and change expected result accordingly)
2003-05-19 19:14:34 +00:00
Georg Richter
130860e709
fixed output
2003-04-03 08:03:12 +00:00
Georg Richter
625df86428
fixed expected output
2003-04-02 22:07:27 +00:00
Georg Richter
359d21aa54
disabled output of errormessages
2003-03-03 22:50:34 +00:00
Georg Richter
05d10452ba
test for mysqli_stmt_store_result
2003-02-18 08:41:16 +00:00
Georg Richter
19a9b4f310
new test (class which extends mysqli. currently this test fails :( )
2003-02-18 00:42:38 +00:00
Georg Richter
bf348326bd
additional tests for non freed objects
2003-02-17 23:29:58 +00:00
Georg Richter
3686b61548
test for mysql_fetch_row (oo-style)
2003-02-17 16:19:49 +00:00
Georg Richter
1076328edb
test for OO-Implementation (bind_result)
2003-02-17 08:54:23 +00:00
Georg Richter
fe9a33a002
fixed output
2003-02-16 21:19:32 +00:00
Ilia Alshanetsky
2ac79528c9
better skip condition.
2003-02-16 15:47:22 +00:00
Georg Richter
c40eff35da
test for mysqli_prepare_result
2003-02-16 13:48:00 +00:00
Georg Richter
ffe43821d0
test for mysqli_stmt_affected_rows (delete command)
2003-02-16 12:04:21 +00:00
Ilia Alshanetsky
8a07cc45cf
Fixed skip condition.
2003-02-15 17:06:35 +00:00
Georg Richter
e671a8c3e4
added skipif section (innodb-support)
2003-02-15 16:21:35 +00:00
Georg Richter
e8fd6662ae
test for bind_result with show
2003-02-14 19:49:35 +00:00
Georg Richter
bad0ab1576
include file for test
2003-02-13 18:21:37 +00:00
Georg Richter
124f76c557
removed warnings (unused vars)
2003-02-13 08:54:46 +00:00
Georg Richter
6bddc36966
new tests
2003-02-13 01:23:28 +00:00
Georg Richter
91eeae5e1d
added new tests
2003-02-12 10:40:19 +00:00
Georg Richter
ff8f0eb7da
adding a few tests
2003-02-12 00:46:29 +00:00