Commit Graph

13539 Commits

Author SHA1 Message Date
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
Ilia Alshanetsky
fbbb41a53b Fixed typo. 2004-05-20 15:45:16 +00:00
Ilia Alshanetsky
e770b2b411 Fixed compiler warnings. 2004-05-20 13:57:09 +00:00
Wez Furlong
d55e20660b Don't dup here either 2004-05-20 10:30:29 +00:00
Wez Furlong
0699938bc4 Don't dup here, PDO will do it as needed 2004-05-20 10:28:26 +00:00
Wez Furlong
d9decf0dfc Fix prototype.
Use user-supplied path before the default when looking for headers
2004-05-20 10:24:17 +00:00
Edin Kadribasic
fa1b0a51d3 Make it compile on windows 2004-05-20 03:02:58 +00:00
Edin Kadribasic
9d6c259988 PostgreSQL PDO driver. 2004-05-20 02:27:49 +00:00
Ilia Alshanetsky
28aca30c13 Free vars before calling E_ERROR. 2004-05-20 00:11:23 +00:00
Wez Furlong
04c35e3d91 re-jig error handling, and make it co-operate with the PDO error handling system.
Implement $dbh->exec() for OCI.
2004-05-20 00:06:30 +00:00
Wez Furlong
e7c72f8455 First cut at a "unified" error handling API. The main thing that is missing
currently is a switch in the dbh to indicate what to do with the errors.
2004-05-20 00:05:22 +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
c98a99c263 Added fetchAll and fetchSingle methods for data retrieval. 2004-05-19 20:38:53 +00:00
Ilia Alshanetsky
676dfcf581 Timeout stuff. 2004-05-19 20:38:25 +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
129997216b exec() now returns row count 2004-05-19 19:27:53 +00:00
George Schlossnagle
ee1241ab1a builds on stock rh9 now 2004-05-19 18:51:01 +00:00
Frank M. Kromann
7c5c0fbbea Set correct Win32 line endings and fix ZTS compilation 2004-05-19 18:04:47 +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
5a4c3234b9 Skip spaces between connection params. 2004-05-19 17:09:48 +00:00
Ard Biesheuvel
fd7a92f046 Fixed unregistered bug (memory leak in printf() & friends) 2004-05-19 16:46:29 +00:00
Ilia Alshanetsky
a5a908c4bf Better include path detection. 2004-05-19 16:26:06 +00:00
Wez Furlong
1a91f75193 Add simple error code values and a place to store them 2004-05-19 16:21:43 +00:00
Wez Furlong
641f2c0c40 Let it install correctly when built via phpize 2004-05-19 15:27:27 +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
Ilia Alshanetsky
c11d6ca38b Copy the headers 2004-05-19 14:27:32 +00:00
Edin Kadribasic
bbcf09a833 Typo 2004-05-19 14:23:59 +00:00
Edin Kadribasic
e8abbca3a6 Fix configure 2004-05-19 14:02:36 +00:00
Wez Furlong
fd6b885a19 Revise $dbh->exec().
The driver doer() method should populate dbh->affected_rows if it can determine its value.
2004-05-19 13:55:41 +00:00
Wez Furlong
6cd27ff8be Add $dbh->exec() method.
Rename $dbh->beginWork() to $dbh->beginTransaction().
2004-05-19 13:43:07 +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
Ilia Alshanetsky
741e31bdf3 Removed unused vars. 2004-05-19 13:27:54 +00:00
Wez Furlong
777484b561 update prototype 2004-05-19 12:40:50 +00:00
Wez Furlong
f7de5001e2 Update prototype 2004-05-19 12:40:31 +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
Wez Furlong
4116d9fb0e Expand the prepare() prototype to accept additional options. 2004-05-19 12:37:31 +00:00
Sebastian Bergmann
681ded13bc ZTS fix. 2004-05-19 09:23:15 +00:00
Marcus Boerger
29cfd6d24f - Remove unused blocks 2004-05-19 08:56:50 +00:00
Marcus Boerger
d94136fc30 - Remove unused blocks 2004-05-19 08:45:46 +00:00
Ilia Alshanetsky
65e1741d2d Fixed possible memory leak. 2004-05-18 23:26:53 +00:00
Ilia Alshanetsky
46eb5401e7 Better header detection. 2004-05-18 23:07:22 +00:00