Ilia Alshanetsky
c2ed5e6f9d
Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0)
2010-01-12 12:46:54 +00:00
Sebastian Bergmann
22f4ef45fe
sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.php
2010-01-03 09:23:27 +00:00
Matteo Beccati
72997aa430
- Properly fixed bug #49985 (pdo_pgsql prepare() re-use previous aborted transaction).
...
# Removed usage of the memory address when generating prepared statemend names
# as uniqueness can't be enforced. Used a statment counter instead.
2009-11-04 19:32:27 +00:00
Matteo Beccati
be7b754b85
- Fixed bug #48764 (PDO_pgsql::query always uses implicit prepared statements if v3 proto available)
...
# original patch by Mark Kirkwood
2009-10-07 17:40:16 +00:00
Matteo Beccati
8511661571
- Removed HAVE_PQEXECPARAMS which was left out during the previous commit
2009-04-30 12:55:43 +00:00
Matteo Beccati
c58c93b9b2
- Changed PDO_PGSQL configure script to require libpq 7.4
...
- Cleaned up usage of HAVE_PQ* defines
- Fixed compiler warnings
- Removed custom implementation of PQunescapeByte
# Rationale:
# - PDO_PGSQL couldn't even compile when using libpq 7.3
# - PostgreSQL 7.3 is unsupported since a long time
# - Got consensus from pgsql devs on freenode
2009-04-30 12:35:36 +00:00
Pierre Joye
1dc4ff564d
- MFB: fix build when pqprepare does not exist
2009-04-01 16:14:50 +00:00
Matteo Beccati
61476ca182
MFB:
...
- Fixed bug #44861 (scrollable cursor don't work with pgsql)
2009-03-28 03:01:38 +00:00
Matteo Beccati
dd6b8d4ceb
MFB:
...
- Updated pdo_pgsql from PHP_5_3
2009-03-28 02:34:02 +00:00
Marcus Boerger
d4f5b3f0a9
- This is PHP 6 - if this ... ever gets out
2009-03-10 23:40:06 +00:00
Sebastian Bergmann
7f4dc8702a
Bump copyright year, 3 of 3.
2008-12-31 11:12:40 +00:00
Sebastian Bergmann
9b620d50b4
Bump copyright year, 2 of 2.
2007-12-31 07:12:20 +00:00
Ilia Alshanetsky
c10c2d102f
MFB: Fixed bug #43493 (pdo_pgsql does not send username on connect when
...
password is not available)
2007-12-04 13:07:30 +00:00
Sebastian Bergmann
3717df72ae
Bump year.
2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
2d2ed1ef76
MFB: Fixed bug #39845 (Persistent connections generate a warning in
...
pdo_pgsql).
2006-12-18 17:56:51 +00:00
Hannes Magnusson
950ab95207
Fix ZTS build
2006-12-16 18:31:23 +00:00
Ilia Alshanetsky
460e59a1b5
MFB: Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory
...
corruption on Windows in pgsql and pdo_pgsql extensions).
2006-11-29 15:47:41 +00:00
Ilia Alshanetsky
0e6a629702
MFB: Make quote() in PostgreSQL use PQescapeByteaConn() whenever possible
...
for binary strings.
2006-10-06 22:34:29 +00:00
Ilia Alshanetsky
e448be3c28
MFB: Added support for character sets in PDO quote() method for PostgreSQL
...
8.1.4 and higher.
2006-10-04 23:53:54 +00:00
Ilia Alshanetsky
8690a5a2d9
MFB:
...
Fixed bug #37870 (pgo_pgsql tries to de-allocate unused statements).
Fixed bug #36681 (pdo_pgsql driver incorrectly ignored some errors).
Fixed test for bug #38253 not to use faulty SQL that generates
errors in PostgreSQL
2006-09-19 15:46:25 +00:00
Ilia Alshanetsky
889f66837c
MFB: Fixed memory leaks when working with cursors in PDO PostgreSQL driver.
2006-05-08 14:33:23 +00:00
Edin Kadribasic
7b156d6236
MFB: Fixed build
2006-03-14 11:14:05 +00:00
Ilia Alshanetsky
b90245d90a
MFB51: Fixed bug #36176 (PDO_PGSQL - PDO::exec() does not return number of
...
rows affected by the operation).
2006-01-29 17:36:12 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
Marcus Boerger
7ffe23c515
- MFB Get rid of warnings
2005-12-20 21:12:13 +00:00
Wez Furlong
f6276a2b8a
zts fixes
2005-08-12 23:32:31 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Wez Furlong
79f3cb9856
Add PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT attribute, which, when set
...
to true, forces the driver to use PDO's own emulated prepared statement
support.
Why would you want that, considering that native prepared statements are
supposed to be the best thing ever?
"Often postgresql will have to plan the query without knowing the parameters -
and it will choose a bad plan. In some cases it will plan based on the first
parameters you send. "
Ugh. So now we have a way to let you decide that you know better than the
pgsql query planner.
2005-07-20 02:37:57 +00:00
Ilia Alshanetsky
858d827790
Added cursor closer handler.
...
Fixed memory leak.
2005-07-09 04:54:04 +00:00
Wez Furlong
529d8177fe
Add early support for native prepared statements in pgsql.
...
Note that some tests now fail; if we can't resolve this in time for the beta,
the prepare code should be disabled (I'll add a flag for this later today).
2005-07-08 15:27:34 +00:00
Ilia Alshanetsky
6c332449f9
Use PQexecParams() when available, use original case in all other instances.
2005-07-07 13:35:39 +00:00
Ilia Alshanetsky
10e1eecf3f
Leave it up to the user to decide if to escape the sequence name or not.
2005-07-07 02:17:20 +00:00
Ilia Alshanetsky
bcb447f6b8
Faster sequence id retrieval.
2005-07-07 00:52:19 +00:00
Edin Kadribasic
f05de12fcf
Only check for InvalidOid when not looking up a sequence
2005-07-01 22:43:16 +00:00
Edin Kadribasic
7ef1a91508
Fold PQresultErrorField() into a macro
2005-07-01 22:30:55 +00:00
Edin Kadribasic
1a10666b08
Added support for fetching current value of a sequence when the
...
optional sequence name has been passed to PDO::lastInsertId()
2005-07-01 21:54:50 +00:00
Ilia Alshanetsky
613d30f215
Silence warnings.
2005-06-30 00:07:42 +00:00
Ilia Alshanetsky
8c0dc5e887
Make exec() return FALSE on error as do other drivers.
2005-06-28 14:54:44 +00:00
Ilia Alshanetsky
3fe8b55917
Fixed double-free bug.
2005-06-28 04:03:58 +00:00
Ilia Alshanetsky
f04cbae3fd
fixed oid retrieval.
2005-06-28 02:09:53 +00:00
Ilia Alshanetsky
fa0e534f83
Various compiler warning fixes.
2005-05-18 22:40:56 +00:00
Wez Furlong
4f778ca31d
patch by Christopher Kings-Lynne, slightly modified
2005-05-13 18:09:03 +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
Marcus Boerger
a455c7abcb
- Shutup notices
2005-02-20 19:26:27 +00:00
Ilia Alshanetsky
9b394af973
Simplify code and fix compiler warning.
2005-02-12 20:55:28 +00:00
Edin Kadribasic
accdde8c19
Finalized pgsql LOB support using native pgsql bytea type.
...
If paramater is bound with type PDO_PARAM_LOB the quoter function
gets a hint that specific LOB type quoting should be used:
$stmt->bindParam(":lob", $lob, PDO_PARAM_LOB);
2005-02-06 01:27:27 +00:00
Edin Kadribasic
bf77a39349
Decode pgsql LOB objects (bytea type) on fetch
2005-02-05 22:55:23 +00:00
Ilia Alshanetsky
996b464e30
Use the created connection string.
2005-02-03 22:24:50 +00:00
Edin Kadribasic
60f5e66aa9
Add support for fetching meta data
2005-01-23 14:50:06 +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