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
Ilia Alshanetsky
aecad9e37b
Fixed build.
2004-05-18 22:45:53 +00:00
Ilia Alshanetsky
cb1239a338
Allow static builds.
2004-05-18 22:31:13 +00:00
George Schlossnagle
f02fb4ada4
should be a strcmp, not a strncmp, thanks, wez
2004-05-18 20:57:19 +00:00
Marcus Boerger
6882000c53
- Make start and length parameter to Limititerator::__construct optional
2004-05-18 20:39:35 +00:00
George Schlossnagle
8233053d24
was leaking query_string's
2004-05-18 20:33:30 +00:00
George Schlossnagle
5f4cfcb009
support the read-only property 'queryString'
2004-05-18 20:26:24 +00:00
George Schlossnagle
2e4c3ea35f
forgotten off the last commit
2004-05-18 19:30:43 +00:00
Wez Furlong
c4ca0f3378
Give user a nice message when PDO isn't initialized prior to a driver.
2004-05-18 19:30: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
Stanislav Malyshev
da26db3054
Z_TYPE_P is for zvals
2004-05-18 16:13:57 +00:00
Wez Furlong
17d009c3b4
Update generated parser
2004-05-18 15:58:17 +00:00
Wez Furlong
e37b622d3f
Add parser to win32 build
2004-05-18 15:58:00 +00:00
Wez Furlong
2a9fa24458
Tweaks for win32
2004-05-18 15:57:46 +00:00
George Schlossnagle
85e3a1bc3b
for those without re2c
2004-05-18 15:38:25 +00:00
Wez Furlong
f76725902b
Fix dl() and extension=
2004-05-18 15:26:32 +00:00
George Schlossnagle
70f06be16a
license/copyright block
2004-05-18 15:22:58 +00:00
George Schlossnagle
a97e1a6646
handle binding/quoting of queries for drivers with emulated prepares
2004-05-18 15:19:31 +00:00
Ilia Alshanetsky
3e0cbfb077
Fixed command line escaping routines for win32.
2004-05-18 13:43:24 +00:00
Edin Kadribasic
b1efed9dde
Move declarations to the begining of function.
...
This allows it to actually compile on windows.
2004-05-18 12:32:05 +00:00
Edin Kadribasic
e489d93abc
TSRM fix
2004-05-18 10:53:53 +00:00
Edin Kadribasic
3b64493a3d
No length parameter -> estrdup()
2004-05-18 10:49:06 +00:00
Wez Furlong
3455498219
Probe for some functions; allows pdo_oci to build on the snap machine again.
2004-05-18 10:00:01 +00:00
Wez Furlong
c9f736ab6e
Skeleton for emulated prepare()
2004-05-18 08:59:27 +00:00
Wez Furlong
5a9864ed2b
Update to match new prototype
2004-05-18 08:47:10 +00:00
Wez Furlong
940c896e15
Quoting here leads to problems with databases that really support bound parameters.
...
We should do this conditionally based on the emulate_prepare flag.
2004-05-18 08:45:28 +00:00
George Schlossnagle
2e36e9d06d
only rewrite tmp if quoter returns true
2004-05-18 05:34:52 +00:00
George Schlossnagle
636cc3e1dc
auto-quote values before binding them in at execute time
2004-05-18 05:31:01 +00:00
George Schlossnagle
7d40971563
use new prototype
2004-05-18 05:01:16 +00:00
George Schlossnagle
2e281baab9
we need the source string length for binary safe string handling
2004-05-18 05:00:52 +00:00
Wez Furlong
12acb64696
package.xml
2004-05-18 00:45:58 +00:00
Wez Furlong
2653f34210
Skeleton package file
2004-05-18 00:40:01 +00:00
Wez Furlong
d4c5556b8b
Let is build under unix.
...
Tested against IBM DB2 and unixODBC.
Could work with others.
2004-05-17 22:20:11 +00:00
George Schlossnagle
fd73439882
include guard
2004-05-17 21:12:30 +00:00
Ilia Alshanetsky
0a38683b14
Correct output.
2004-05-17 20:58:57 +00:00
Sara Golemon
cceecdbcdb
BugFix# 27982: Provide error message when trying to overwrite an existant file without overwrite context option.
2004-05-17 20:31:59 +00:00
Wez Furlong
cf4127b6b9
Allow PDO OCI to build under unix.
...
Don't build by default under win32.
2004-05-17 18:17:39 +00:00
Wez Furlong
dd84731577
Allow PDO to build as a self-contained extension.
...
Install headers so that other self-contained extensions may them.
2004-05-17 18:13:03 +00:00
Wez Furlong
79c513db96
Some pedantic fixes for gcc.
2004-05-17 17:00:35 +00:00
Wez Furlong
d6c4dee168
ODBC (v3 ish) driver for PDO.
...
Will not build under unix yet.
2004-05-17 15:43:01 +00:00
Wez Furlong
1b1ced539b
OCI driver for PDO, supporting bound input and output parameters.
...
Will not build under unix yet.
2004-05-17 15:42:33 +00:00
Wez Furlong
684be9cf36
Hello PDO.
...
Still more to come. Give it a couple of days before starting to write drivers
for the other databases; a few things might change, so I'd like to coordinate
that, but in a couple of days.
2004-05-17 15:41:51 +00:00
Timm Friebe
77c75e786b
- Fixed test for LONG_MIN / LONG_MAX for 64-bit platforms
2004-05-16 20:33:44 +00:00
Timm Friebe
425ae98916
- Fixed auto-conversion from long to double when LONG_MAX /
...
LONG_MIN where overflown
2004-05-16 20:30:35 +00:00
Timm Friebe
7bbe13ac4d
- Initial release
2004-05-16 20:28:31 +00:00
Ilia Alshanetsky
bb88a86240
Do not allocate error buffer at the start of every request.
2004-05-16 15:34:53 +00:00