Antony Dovgal
855a458b06
fix build broken by the fix for bug #49306
2009-08-21 07:46:43 +00:00
Ilia Alshanetsky
e0349c5cb5
Fixed bug #49306 (inside pdo_mysql default socket settings are ignored).
2009-08-20 12:13:38 +00:00
Marcus Boerger
d4f5b3f0a9
- This is PHP 6 - if this ... ever gets out
2009-03-10 23:40:06 +00:00
Sebastian Bergmann
7f4dc8702a
Bump copyright year, 3 of 3.
2008-12-31 11:12:40 +00:00
Ilia Alshanetsky
916c8187cc
MFB: Fixed bug #46964 (Fixed pdo_mysql build with older version of MySQL).
2008-12-30 19:11:21 +00:00
Johannes Schlüter
b22d3665be
Fix #44135 (PDO MySQL does not support CLIENT_FOUND_ROWS)
2008-10-27 18:29:57 +00:00
Johannes Schlüter
d4f7133441
Add PDO::MYSQL_ATTR_COMPRESS connection flag
2008-10-14 19:00:11 +00:00
Jani Taskinen
c9c53d7bcd
- Nuketh C++ comments from C files.
2008-08-03 12:12:45 +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
Sebastian Bergmann
9b620d50b4
Bump copyright year, 2 of 2.
2007-12-31 07:12:20 +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
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
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
Antony Dovgal
b61f84ca28
fix #38996 (PDO_MYSQL doesn't check connections for liveness)
2006-10-02 22:07:58 +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
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
Ilia Alshanetsky
f7a4a852df
Fix error detection for queries such as OPTIMIZE
2005-09-14 15:34:42 +00:00
Wez Furlong
37ace0651b
merge other PDO fixes from 5.1 branch.
...
Allow pdo_sqlite to build against 5.0 and 5.1 too.
2005-09-11 05:08:49 +00:00
George Schlossnagle
c2e9f5d9a5
Set port even if host is localhost.
...
Should resolve 34072
2005-08-31 03:48:01 +00:00
George Schlossnagle
6a687a1fad
this is the number of params, not the top index (otherwise unix_socket doesnt work
2005-08-30 19:55:54 +00:00
Wez Furlong
f6276a2b8a
zts fixes
2005-08-12 23:32:31 +00:00
Wez Furlong
b1ca475703
Probable fix for #34054 .
2005-08-10 23:48:22 +00:00
Ilia Alshanetsky
97e8c6f4a9
Proper handling for databases that need to pre-calculate length of large
...
columns, which is not normally done for performance reasons.
2005-07-20 03:38:33 +00:00
Wez Furlong
695e195a27
keep this as a placeholder for debugging weird regressions
2005-07-14 02:09:08 +00:00
Andrey Hristov
5232c4a544
ok, call pdo_mysql_error() before returning -1
2005-07-12 19:32:13 +00:00
Andrey Hristov
8899425e26
strictly check the result of mysql_affected_rows()
2005-07-12 19:22:05 +00:00
Ilia Alshanetsky
e21f5f9592
A bit of further tuning.
2005-07-11 14:46:01 +00:00
Andrey Hristov
9749926224
- mysql_affected_rows() already returns an unsigned long
...
- optimize a bit the real_escape
- handle the situation when libmysql bails out because of lack of memory
2005-07-11 13:52:13 +00:00
Wez Furlong
168b6500fd
Fix #33618
2005-07-08 19:25:37 +00:00
Ilia Alshanetsky
22896664a8
Fixed memory leak
2005-07-07 16:27:46 +00:00
Wez Furlong
d7e5dfb2de
Enable native mysql 4.1.x prepared statement support
...
# the hardest part was installing 4.1.x on a gentoo box over a 56k modem
2005-07-03 02:20:08 +00:00
Wez Furlong
1bbab25455
Experimental support for queries returning multiple rowsets under mysql 5.0.
...
Patch from Guy Harrison (guy dot a dot harrison (at) gmail dot com)
2005-07-02 21:01:38 +00:00
Ilia Alshanetsky
fb7c1f0561
Remove "custom" PDDRV sqlstate.
2005-06-27 14:52:46 +00:00
Ilia Alshanetsky
09f052358f
Fixed bogus query failure claim, on some queries such as OPTIMIZE table.
2005-06-24 23:58:06 +00:00
Ilia Alshanetsky
348c0cddae
Added PDO_MYSQL_ATTR_USE_BUFFERED_QUERY parameter for pdo_mysql, to toggle
...
usage of buffered queries.
2005-06-24 19:45:59 +00:00
Ilia Alshanetsky
fa0e534f83
Various compiler warning fixes.
2005-05-18 22:40:56 +00:00
Ilia Alshanetsky
53ee348165
Make unix domain sockets work.
2005-05-17 23:23:52 +00:00
Ilia Alshanetsky
746b89df16
Fixed type mixup.
2005-05-17 19:33:03 +00:00
Hartmut Holzgraefe
f7e8fcb8e0
fully distinguish between database and statement level errors
2005-02-27 20:34:36 +00:00
Hartmut Holzgraefe
fa5070b39c
just to be sure ...
2005-02-27 11:55:39 +00:00
Hartmut Holzgraefe
d3fcc41be7
use auto generated error -> state mappings
2005-02-27 11:39:15 +00:00
Wez Furlong
cbe40ddd2d
fix comma
2005-02-27 01:30:58 +00:00