Hartmut Holzgraefe
409a94ffea
error code mapping (generated from mysql 5 sql_state.h file using
...
the get_error_codes.php script)
2005-02-27 11:31:49 +00:00
Hartmut Holzgraefe
49a383ef4f
initial checkin
2005-02-27 11:29:17 +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
Wez Furlong
31f5f8f907
fix line endings
2005-02-26 15:41:54 +00:00
Marcus Boerger
b89fda667f
- Drop driver name from generic tests and reserve those names for driver
...
specific tests.
# Well a little design correction
2005-02-24 00:11:16 +00:00
Marcus Boerger
b786b93b7a
- Delay ctor call so that it can overwrite everything and the data can
...
already be accessed from the ctor.
2005-02-23 23:28:30 +00:00
Marcus Boerger
3f1738f96d
- Add new tests
2005-02-23 01:13:13 +00:00
Marcus Boerger
3cb441df9a
- Add new tests
2005-02-23 00:56:34 +00:00
Marcus Boerger
ab8f1f316b
- Add new test
2005-02-21 18:55:51 +00:00
Marcus Boerger
74b1cee57f
- Show warnings
2005-02-21 18:54:45 +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
Hartmut Holzgraefe
fd39b78b39
fix for PECL bug #3529
2005-02-20 23:56:14 +00:00
Hartmut Holzgraefe
5f3dd68ac5
fix for PECL bug 3530
2005-02-20 23:08:34 +00:00
Marcus Boerger
f607beb486
- Forgot to change extension name
2005-02-20 19:12:55 +00:00
Marcus Boerger
776144866c
- Add tests
2005-02-20 18:23:12 +00:00
Wez Furlong
86708673fb
Fix connecting to remote host, patch by Tim Friebe
2005-02-18 15:11:27 +00:00
Wez Furlong
55f53a5a96
symlinked pdo drivers under ext.
...
Enabled PDO and PDO_SQLITE by default.
Fixup PDO header detection so that it searches in the correct order, and
correctly picks up the headers when building from outside of the source
tree.
TODO: make pdo_XXX auto-enable when XXX is enabled. Volunteers welcome.
2005-02-17 04:23:15 +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
aedea8539c
no need to check for all functions of a group,
...
added check for prepared statement functions
2005-02-13 14:42:46 +00:00
Hartmut Holzgraefe
fc20765c5e
fix aclocal warning (newer versions are more strict about this)
2005-02-13 07:17:06 +00:00
Hartmut Holzgraefe
e087455493
add function existance check
2005-02-13 07:15:02 +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
c28a0b9fcb
disable dep
2005-02-09 05:18:02 +00:00
Wez Furlong
201ec3dc02
prep for release
2005-02-09 05:04:40 +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
Wez Furlong
be616317c7
stub out scrollable cursor change
2005-01-12 06:10:31 +00:00
Wez Furlong
0f12bfece7
tidy up some parts of the build (could do with more work)
...
Partially implement SQLSTATE error codes
2005-01-07 05:24:21 +00:00
Wez Furlong
e7a6eca69d
rough cut at mysql meta data
2004-09-26 20:47:03 +00:00
Ilia Alshanetsky
626caf0292
Make error messages handle persistent environments properly.
2004-09-23 21:03:41 +00:00
Wez Furlong
72040f7f2a
more method table adjustments.
...
mysql driver needs work with the error message stuff.
Other drivers need a bit more auditing...
2004-09-23 20:43:11 +00:00
Wez Furlong
b42c14f07e
placeholder for someone to implement a ping for persistent connections
2004-09-23 20:20:23 +00:00
Marcus Boerger
44a9c3188e
Make clear this is PDO support
2004-08-15 19:17:58 +00:00
Marcus Boerger
d16571328f
Fix extension name
2004-08-15 15:56:33 +00:00
Marcus Boerger
295ae448b1
- Synch names with other extensions
2004-08-15 13:43:56 +00:00
Marcus Boerger
3bca709fbc
Add missing module deps
2004-08-11 21:04:36 +00:00
Marcus Boerger
7557b388de
- Fix shutdown problems
2004-07-28 00:40:01 +00:00
Wez Furlong
d6bfe18b20
looks like this approach will give us our exceptions back
2004-07-28 00:10:28 +00:00
Marcus Boerger
23475d4147
- Add missing include
2004-07-28 00:03:44 +00:00
Wez Furlong
7d788aeba4
fix possible segv on failed connect
2004-07-27 23:58:19 +00:00
Ilia Alshanetsky
ddb32b11b2
Fixed a bug that could result in false failed query reporting on
...
INSERT/UPDATE/DELETE queries.
2004-07-12 20:09:19 +00:00
Ilia Alshanetsky
2685fad6b7
Fixed memory leak.
2004-05-25 14:39:26 +00:00
Wez Furlong
a4f03b8086
Tidy this up a little bit for win32.
2004-05-25 12:44:35 +00:00
Wez Furlong
e6551f081d
Throw exception during ctor
2004-05-25 12:03:41 +00:00
Ilia Alshanetsky
b4ef3d186a
Add self to credits.
2004-05-21 22:45:27 +00:00
George Schlossnagle
84cfbe5efe
pierre's thingy
2004-05-21 22:36:52 +00:00
George Schlossnagle
e872491f80
/me learns to read
2004-05-21 22:30:58 +00:00
George Schlossnagle
88942c9834
both places
2004-05-21 22:27:30 +00:00
George Schlossnagle
553698f35d
drop the dev
2004-05-21 22:27:02 +00:00
Wez Furlong
64f0ec7bde
Update for placeholder flags
2004-05-21 14:15:03 +00:00
Ilia Alshanetsky
15fb957c61
Added MySQL getAttribute() support.
2004-05-20 19:17:32 +00:00
Wez Furlong
af2aa721df
zts fix ;)
2004-05-20 16:17:37 +00:00
Ilia Alshanetsky
40b04cd54b
Correctly report errors for statment problems.
2004-05-20 16:13:13 +00:00
Ilia Alshanetsky
0d6aa20880
Error handling support.
...
Fixed possible crash when trying to fetch data from a failed query.
2004-05-20 15:51:25 +00:00
Wez Furlong
d55e20660b
Don't dup here either
2004-05-20 10:30:29 +00:00
Wez Furlong
08ce920c9e
Fix win32 build
2004-05-19 21:36:22 +00:00
Marcus Boerger
0a242a52b3
- Allow to build with ext/mysqli
2004-05-19 20:57:02 +00:00
Marcus Boerger
fd90645613
- Allow to compile as builtin module
2004-05-19 20:56:06 +00:00
Ilia Alshanetsky
862247693f
Row count cannot be calculated in MySQL without buffering the query.
2004-05-19 20:44:28 +00:00
Ilia Alshanetsky
f4b5abc948
Added support for setting timeout value.
2004-05-19 20:34:57 +00:00
Ilia Alshanetsky
56abe4de4a
Prevent possible crash when working with column containing NULL.
2004-05-19 20:34:01 +00:00
George Schlossnagle
38a409c02f
exec() now returns affected row count
2004-05-19 19:31:33 +00:00
George Schlossnagle
ee1241ab1a
builds on stock rh9 now
2004-05-19 18:51:01 +00:00
Ilia Alshanetsky
074ba3fbc0
Added lastInsertId() method for retrieving last insert id.
...
Made affectedRows() work for MySQL.
Populate error value in MySQL on error.
2004-05-19 17:35:39 +00:00
Ilia Alshanetsky
a5a908c4bf
Better include path detection.
2004-05-19 16:26:06 +00:00
Ilia Alshanetsky
c328a15469
More errno stuff.
2004-05-19 15:17:52 +00:00
Ilia Alshanetsky
3dddc0bade
Fixed possible crash on connection error.
2004-05-19 15:14:55 +00:00
Ilia Alshanetsky
b5f8bd8e9e
Simplify config via the use of mysql_config.
...
Fixed errno naming conflict.
2004-05-19 15:12:05 +00:00
Edin Kadribasic
bbcf09a833
Typo
2004-05-19 14:23:59 +00:00
Ilia Alshanetsky
a0b3e87003
Abort if driver cannot be registered.
2004-05-19 13:34:40 +00:00
Edin Kadribasic
7a214b66ae
Cosmetics
2004-05-19 13:28:05 +00:00
Wez Furlong
8759648192
Update prepare() prototype.
...
Attempt to hunt down the cause of a build warning under win32 by adjust the
name of the error function.
2004-05-19 12:40:11 +00:00
Ilia Alshanetsky
46eb5401e7
Better header detection.
2004-05-18 23:07:22 +00:00
Wez Furlong
b54a4dfeeb
Minor tweaks
2004-05-18 19:25:45 +00:00
Wez Furlong
bdd4b84c29
typo..
2004-05-18 19:25:23 +00:00
Wez Furlong
df69bf6c06
mySQL, not Oracle ;)
2004-05-18 19:06:47 +00:00
Wez Furlong
9ec5c3526e
Add to win32 build
2004-05-18 19:03:27 +00:00
Ilia Alshanetsky
caed65f547
Fixed search path for MySQL.
2004-05-18 18:42:36 +00:00
George Schlossnagle
71728cc2b2
initial import of mysql 3.x pdo driver
2004-05-18 18:01:52 +00:00