Ilia Alshanetsky
cf33729c20
Better error message.
2004-05-20 18:05:44 +00:00
George Schlossnagle
d16625b803
Support ? as a bind in emulated prepares
...
Throw informative error when pdo_parse_param fails
2004-05-20 17:56:09 +00:00
George Schlossnagle
e3e2370490
keys need to be null-terminated (how did this not get committed before???)
...
bind-by-name includes the leading : in the name
2004-05-20 17:34:52 +00:00
Wez Furlong
04ccc0134d
Add methods for error handling
2004-05-20 17:22:13 +00:00
George Schlossnagle
76b7b5d1e2
iactually support :\w+ as binds
2004-05-20 17:04:57 +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
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
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
George Schlossnagle
129997216b
exec() now returns row count
2004-05-19 19:27:53 +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
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
c11d6ca38b
Copy the headers
2004-05-19 14:27:32 +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
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
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
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
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
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
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
Wez Furlong
c9f736ab6e
Skeleton for emulated prepare()
2004-05-18 08:59:27 +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
2e281baab9
we need the source string length for binary safe string handling
2004-05-18 05:00:52 +00:00
Wez Furlong
2653f34210
Skeleton package file
2004-05-18 00:40:01 +00:00
George Schlossnagle
fd73439882
include guard
2004-05-17 21:12:30 +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
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