Commit Graph

223 Commits

Author SHA1 Message Date
Felipe Pena
0c71486c59 - Fixed tests 2008-10-10 16:56:28 +00:00
Felipe Pena
cdeea98d37 - Fixed bug #44251 (Question mark and an escaped singel quote lead to an exception)
- Fixed bug #41125 (PDO mysql + quote() + prepare() can result in seg fault)
  Patch by: tsteiner at nerdclub dot net
2008-10-10 12:08:07 +00:00
Felipe Pena
48b9214773 - Fix typo 2008-10-09 01:08:31 +00:00
Johannes Schlüter
fed9b35095 Fix test 2008-10-01 19:45:02 +00:00
Johannes Schlüter
3b3112c2b6 Free persistent cache and improve MINFO output 2008-09-29 21:20:36 +00:00
Johannes Schlüter
a89387b7e3 - Fix #44425 (Extending PDO/MySQL class with a __call() function doesn't work) 2008-09-16 23:34:31 +00:00
Jani Taskinen
c9c53d7bcd - Nuketh C++ comments from C files. 2008-08-03 12:12:45 +00:00
Jani Taskinen
3f73317c79 - Fix PDO configure dependancy: If --disable-pdo is used, disable all enabled-by-default drivers. Also error out if you try to configure a driver as static but pdo is disabled. 2008-07-25 13:38:41 +00:00
Ulf Wendel
c2c9b61a79 Test for PS fallback logic in prepare() 2008-07-24 15:07:20 +00:00
Ulf Wendel
d529003bd2 Make the test pass on 32bit and not bail out because of int vs. double 2008-07-24 12:54:12 +00:00
Ulf Wendel
1c8d68b019 This little detail seems MySQL version/setup dependent 2008-07-23 12:57:04 +00:00
Antony Dovgal
1c86fb2739 fix tests names 2008-07-23 10:22:58 +00:00
Ulf Wendel
beae9faca0 Fixing some tests to expect unicode instead of (binary) strings. 2008-07-22 18:33:28 +00:00
Johannes Schlüter
ae1cd8e253 - Add mysqlnd support for PDO_mysql, fixes at least bug#41997,#42499,
pecl#12794, pecl#12401

# Running the tests:
# (Note: Doesn't work currnetly on HEAD, see:
#  http://news.php.net/php.qa/64378)
#
#  PDO_MYSQL_TEST_DSN  - DSN
#    For example: mysql:dbname=test;host=localhost;port=3306
#
#  PDO_MYSQL_TEST_HOST    - database host
#  PDO_MYSQL_TEST_DB      - database (schema) name
#  PDO_MYSQL_TEST_SOCKET  - database server socket
#  PDO_MYSQL_TEST_ENGINE  - storage engine to use
#  PDO_MYSQL_TEST_USER    - database user
#  PDO_MYSQL_TEST_PASS    - database user password
#  PDO_MYSQL_TEST_CHARSET - database charset
#
#  NOTE: if any of PDO_MYSQL_TEST_[HOST|DB|SOCKET|ENGINE|CHARSET] is
#  part of PDO_MYSQL_TEST_DSN, the values must match. That is, for example,
#  for PDO_MYSQL_TEST_DSN = mysql:dbname=test you MUST set PDO_MYSQL_TEST_DB=test.
2008-07-21 13:05:51 +00:00
Andrey Hristov
0df974b7a5 MFB :
Fix for bug#45179 --with-mysql-sock fails to compile & work
Now --with-mysql-sock controls all mysql extensions. If provided it will be
the default value as it was set in php.ini . php.ini will override it for
ext/mysql and ext/mysqli but not for pdo_mysql
2008-07-21 13:01:41 +00:00
Felipe Pena
06a7527c65 - Removed UEXPECT(F) 2008-05-27 13:16:27 +00:00
Felipe Pena
3ed829f10e - Added some UEXPECTs
- Fixed some tests
2008-03-22 14:58:29 +00:00
Nuno Lopes
1dc0e94e0f MFB: remove unused PHP_EXTNAME_API macros.
#in preparation for the gcc 4 visibility patch
2008-01-03 16:18:29 +00:00
Sebastian Bergmann
9b620d50b4 Bump copyright year, 2 of 2. 2007-12-31 07:12:20 +00:00
Dmitry Stogov
8146078f7b Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) 2007-09-27 18:28:44 +00:00
Stanislav Malyshev
7d0ad106b4 Fix INFILE LOCAL option handling with MySQL - now not allowed when open_basedir
is active
2007-06-18 21:59:05 +00:00
Ilia Alshanetsky
cbcb1840f3 MFB 2007-05-28 23:43:24 +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
69cee820e2 MFB 2007-04-10 07:08:51 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Pierre Joye
26c54d4c42 - build fix the other driver as well (a macro would be nicer) 2006-12-10 03:12:11 +00:00
Ilia Alshanetsky
ccc4783e4a MFB: Fixed bug #39759 (Can't use stored procedures fetching multiple result
sets in pdo_mysql).
2006-12-08 19:51:29 +00:00
Ilia Alshanetsky
e448b6f2b7 MFB: Added test for previous bug 2006-12-04 00:41:07 +00:00
Ilia Alshanetsky
6c315e1908 MFB:
Default to buffered queries (much faster)
	Default to prepared statement emulation to avoid hitting MySQL bugs
2006-12-03 23:30:24 +00:00
Ilia Alshanetsky
b5e7220dcb MFB: Fixed bug #39527 (Failure to retrieve results when multiple unbuffered,
prepared statements are used in pdo_mysql).
2006-12-02 17:55:05 +00:00
Antony Dovgal
b61f84ca28 fix #38996 (PDO_MYSQL doesn't check connections for liveness) 2006-10-02 22:07:58 +00:00
Ilia Alshanetsky
0af6ef771e MFB: Fixed bug #37445 (Fixed crash in pdo_mysql resulting from premature
object destruction).
2006-07-31 20:19:18 +00:00
Hartmut Holzgraefe
4ea4434475 two additional tests improving pdo/pdo_mysql test code coverage 2006-07-10 14:05:46 +00:00
Edin Kadribasic
78c2c50c86 MFB: Remove pecl includes (Steph), except pdo_odbc which will remain broke 2006-05-11 21:48:57 +00:00
Ilia Alshanetsky
96afde2af7 MFB51:
Added myself to PDO and PDO_MySQL credits
Added Wez to PDO_MySQL credits
Added Tony to Q&A team credits
Regenerated the credits file
2006-03-23 18:39:12 +00:00
Pierre Joye
bddafa9a9f . MFB: Fixed fetching of string value bigger than 128bytes when no options
are used
2006-03-23 01:37:38 +00:00
Ilia Alshanetsky
16ff5e5592 MFB51:
Allow PDO_MYSQL_ATTR_DIRECT_QUERY to be set via constructor
Allow getAttribute() to fetch MySQL specific attributes.
Eliminate unnecessary auto-commit call on connect.
2006-03-17 00:15:28 +00:00
Ilia Alshanetsky
d9b2a3372e Fixed bug #36572 (Added PDO::MYSQL_ATTR_DIRECT_QUERY constant that show be
set when executing internal queries such as "show master status" via MySQL).

Added missing constant for MAX_BUFFER_SIZE.
2006-03-05 17:17:04 +00:00
Ilia Alshanetsky
d60eeb0ba8 MFB51: Fixed bug #36345 (PDO/MySQL problem loading BLOB over 1MB). 2006-02-14 14:26:27 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Ilia Alshanetsky
58a2299c91 MFB51: Make MySQL driver use ANSI complaint quoting style. 2005-12-25 20:30:56 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
Antony Dovgal
ee5cdb2c14 MF51:
add NEWDECIMAL, NEWDATE, GEOMETRY, SET and ENUM field types
2005-12-05 13:22:49 +00:00
Antony Dovgal
6fddd6f878 fix possible crash in pdo_mysql_stmt_dtor() 2005-11-30 11:32:33 +00:00
foobar
04dffec1c4 - Use right define: ZEND_MODULE_API_NO as these are PHP modules, not Zend extensions 2005-11-25 15:40:14 +00:00
Antony Dovgal
a526db7956 fix #35391 (pdo_mysql::exec does not return number of affected rows) 2005-11-25 12:54:18 +00:00
Antony Dovgal
a22b830c9c add MySQL options and corresponding constants 2005-10-27 17:33:43 +00:00
Antony Dovgal
7038c647e1 - free S->stmt
- return correct value from the cursor_closer
- make sure S->stmt is NULL'ed
2005-10-27 17:25:31 +00:00
Ilia Alshanetsky
d0f62c960f Fixed bug #34623 (Crash in pdo_mysql on longtext fields). 2005-10-19 14:11:25 +00:00