Ilia Alshanetsky
b7b0f4d988
Fixed bug #39759 (Can't use stored procedures fetching multiple result
...
sets in pdo_mysql).
2006-12-08 19:50:40 +00:00
Ilia Alshanetsky
e7c2bd6e40
Default to buffered queries (much faster)
...
Default to prepared statement emulation to avoid hitting MySQL bugs
2006-12-03 23:29:03 +00:00
Antony Dovgal
588c45ea8d
MFH: fix #38996 (PDO_MYSQL doesn't check connections for liveness)
2006-10-02 22:09:49 +00:00
Wez Furlong
b9f85f37cc
Fixed Bug #36602 : persistent connections don't work with MySQL 5.0.3+.
...
Fixed PECL Bug #6262 ; correctly fallback to emulated statements
when the server version is too old.
Also include code to default to using emulated prepared statements, as these
can take advantage of the query cache. Since it's a bit late in the release
process to spring this on the masses, the default has not been changed. The
code is included so that it doesn't get lost.
2006-04-09 08:11:31 +00:00
Pierre Joye
c4db88563f
- Fixed fetching of string value bigger than 128bytes when no options
...
are used
2006-03-23 01:24:36 +00:00
Ilia Alshanetsky
6fd71dbbe9
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:09 +00:00
Ilia Alshanetsky
41de805a9d
MFH:
...
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:18:01 +00:00
Ilia Alshanetsky
3608dd4c11
Fixed bug #36345 (PDO/MySQL problem loading BLOB over 1MB).
2006-02-14 14:26:11 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Ilia Alshanetsky
077559d3e4
Make MySQL driver use ANSI complaint quoting style.
2005-12-25 20:30:40 +00:00
Antony Dovgal
dc0db7382c
MFH: fix #35391 (pdo_mysql::exec does not return number of affected rows)
2005-11-25 12:56:04 +00:00
Wez Furlong
e0924b7451
Close PECL Bug #5780
2005-10-29 02:36:30 +00:00
Antony Dovgal
9ffefbc74e
MFH: add MySQL options and corresponding constants
2005-10-27 17:34:24 +00:00
Antony Dovgal
8a929e054e
use the right constant name in error messages
2005-10-05 22:14:52 +00:00
Ilia Alshanetsky
766e4b3c15
MFH: Fix error detection for queries such as OPTIMIZE
2005-09-14 15:34:58 +00:00
George Schlossnagle
b247dc3418
MFH, fix 34072
2005-08-31 04:06:10 +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
Wez Furlong
2c5b2fc105
Alan: moved your fields away, but reserved you a pointer.
...
Changed PDO::lastInsertId() to have following proto:
string PDO::lastInsertId([string name])
this allows arbitrary unique identitifers to be returned from the driver.
The optional name parameter is for databases that require additional contextual
information to be able to return the correct identifier. None currently use
it, but pgsql will be on the list of drivers that do.
2005-02-26 17:27:51 +00:00
Hartmut Holzgraefe
0ef339df92
"SET SESSION" is not supported by MySQL 3.23, as session is the default
...
scope for SET anyway we can drop the SESSION specifier (PECL Bug #3470 )
2005-02-21 16:10:03 +00:00
Wez Furlong
86708673fb
Fix connecting to remote host, patch by Tim Friebe
2005-02-18 15:11:27 +00:00
Ilia Alshanetsky
f57b8d6dc5
Set auto-commit after establishing the connection, otherwise we have a crash.
2005-02-13 17:16:24 +00:00
Hartmut Holzgraefe
b6828f5949
Fixed domain socket / named pipe handling
2005-02-13 06:52:45 +00:00
Wez Furlong
f2d2da300f
zts
2005-02-13 06:41:46 +00:00
Wez Furlong
47d1c2ad65
autocommit flag gets set always by PDO before invoking this method;
...
we should unconditionally inspect it here.
2005-02-13 06:37:29 +00:00
Hartmut Holzgraefe
486370dc7c
autocommit setting done right
2005-02-13 00:55:16 +00:00
Hartmut Holzgraefe
5d4fb518ae
added MySQL transaction support
2005-02-13 00:51:17 +00:00
Ilia Alshanetsky
5904d59ffd
Fixed compiler warnings.
2005-02-12 20:58:29 +00:00
Wez Furlong
e9f5fb53f3
only do this magic on non-win32 platforms
2005-02-10 01:34:39 +00:00
Wez Furlong
d134fb2a8d
update for api changes
2005-02-06 23:22:37 +00:00
Wez Furlong
26f97a911b
Eliminate unused parameter.
...
Don't start a transaction when asking for a cursor with pgsql.
Fix parameter binding for sqlite3
2005-01-21 00:39:03 +00:00
Wez Furlong
a9d98544de
Allow drivers to select bind emulation on a per statement basis
2005-01-18 04:58:50 +00:00