summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_driver.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug #50728 (All PDOExceptions hardcode 'code' property to 0)Ilia Alshanetsky2010-01-121-1/+1
|
* sed -i "s#1997-2009#1997-2010#g" **/*.c **/*.h **/*.phpSebastian Bergmann2010-01-031-1/+1
|
* - Properly fixed bug #49985 (pdo_pgsql prepare() re-use previous aborted ↵Matteo Beccati2009-11-041-2/+2
| | | | | | | | transaction). # Removed usage of the memory address when generating prepared statemend names # as uniqueness can't be enforced. Used a statment counter instead.
* - Fixed bug #48764 (PDO_pgsql::query always uses implicit prepared ↵Matteo Beccati2009-10-071-6/+19
| | | | | | | statements if v3 proto available) # original patch by Mark Kirkwood
* MFH: Bump copyright year, 3 of 3.Sebastian Bergmann2008-12-311-1/+1
|
* MFH: Bump copyright year, 2 of 2.Sebastian Bergmann2007-12-311-1/+1
|
* MFB: Fixed bug #43493 (pdo_pgsql does not send username on connect whenIlia Alshanetsky2007-12-041-4/+4
| | | | | password is not available)
* Added support for ATTR_TIMEOUT inside pdo_pgsql driver.Ilia Alshanetsky2007-06-281-9/+12
| | | | | | Fixed a bug inside PDO's "use persistent" connection detection mechanism that would trigger connections on "" and "0" values
* Added persistent connection status checker to pdo_pgsqlIlia Alshanetsky2007-06-271-1/+12
|
* MFH: Bump year.Sebastian Bergmann2007-01-011-1/+1
|
* Fixed bug #39845 (Persistent connections generate a warning in pdo_pgsql).Ilia Alshanetsky2006-12-181-1/+6
|
* Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memoryIlia Alshanetsky2006-11-291-1/+1
| | | | | corruption on Windows in pgsql and pdo_pgsql extensions).
* Make quote() in PostgreSQL use PQescapeByteaConn() whenever possible forIlia Alshanetsky2006-10-061-4/+6
| | | | | binary strings.
* Added support for character sets in PDO quote() method for PostgreSQLIlia Alshanetsky2006-10-041-2/+13
| | | | | 8.1.4 and higher.
* Fixed bug #37870 (pgo_pgsql tries to de-allocate unused statements).Ilia Alshanetsky2006-09-191-0/+1
| | | | | | | 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
* Fixed memory leaks when working with cursors in PDO PostgreSQL driver.Ilia Alshanetsky2006-05-081-0/+3
|
* be aware of PDO_ATTR_EMULATE_PREPARESWez Furlong2006-04-091-3/+13
|
* Fixed buildEdin Kadribasic2006-03-131-1/+2
|
* - Fixed bug #36382 (PDO/PgSQL's getColumnMeta() crashes).Derick Rethans2006-02-131-1/+1
|
* Fixed bug #36176 (PDO_PGSQL - PDO::exec() does not return number of rowsIlia Alshanetsky2006-01-291-9/+12
| | | | | affected by the operation).
* bump year and license versionfoobar2006-01-011-3/+3
|
* - Get rid of compiler warnings (both postgres an dphp use these defines)Marcus Boerger2005-12-201-0/+5
|
* - Fix TSRMMarcus Boerger2005-12-061-1/+1
|
* MFH: nuke php3 legacyfoobar2005-12-061-2/+2
|
* Fixed memory leaksIlia Alshanetsky2005-12-011-1/+1
|
* Fixed memory leakIlia Alshanetsky2005-11-301-1/+1
|
* Fixed compiler warningsIlia Alshanetsky2005-11-291-3/+1
|
* proto fixupsWez Furlong2005-11-291-14/+21
|
* Added PDO::pgsqlLOBCreate(), PDO::pgsqlLOBOpen() and PDO::pgsqlLOBUnlink().Wez Furlong2005-11-291-3/+198
|
* Addresses #35338.Wez Furlong2005-11-251-34/+9
| | | | | | | | | | | | | | | | | | | | | | | Postgres client API is pretty poor, so we have zero idea about the actual parameter types in a statement. We now defer the preparation of a statement until the first call to execute is made. At that point, we have the parameters defined by the calling script, so we can use the typing specified there when we perform the prepare. For PDO_PARAM_LOB parameters, we set the binary formatting flag. We can't just set this flag for all parameters, because its meaning is not "string data, counted length" but "data is in native format". If this flag is set for a numeric column and we send the number 1 formatted as a string, then we will get an "insufficient data left in message" error message, because the library was expecting sizeof(int4) bytes but only saw 1 byte for "1". This is infuriating because we have no way to determine the datatypes for parameters, and the type we explicitly set has to match the type in the database. The only choice we're left with is telling postgres to deduce the type; we still have no idea what type was deduced.
* - Bumber up yearfoobar2005-08-031-1/+1
|
* Add PDO_PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT attribute, which, when setWez Furlong2005-07-201-46/+49
| | | | | | | | | | | | | | | | 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.
* Added cursor closer handler.Ilia Alshanetsky2005-07-091-0/+2
| | | | | Fixed memory leak.
* Add early support for native prepared statements in pgsql.Wez Furlong2005-07-081-1/+59
| | | | | | 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).
* Use PQexecParams() when available, use original case in all other instances.Ilia Alshanetsky2005-07-071-3/+13
|
* Leave it up to the user to decide if to escape the sequence name or not.Ilia Alshanetsky2005-07-071-5/+0
|
* Faster sequence id retrieval.Ilia Alshanetsky2005-07-071-6/+7
|
* Only check for InvalidOid when not looking up a sequenceEdin Kadribasic2005-07-011-4/+3
|
* Fold PQresultErrorField() into a macroEdin Kadribasic2005-07-011-12/+2
|
* Added support for fetching current value of a sequence when theEdin Kadribasic2005-07-011-3/+32
| | | | | optional sequence name has been passed to PDO::lastInsertId()
* Silence warnings.Ilia Alshanetsky2005-06-301-1/+1
|
* Make exec() return FALSE on error as do other drivers.Ilia Alshanetsky2005-06-281-2/+2
|
* Fixed double-free bug.Ilia Alshanetsky2005-06-281-1/+0
|
* fixed oid retrieval.Ilia Alshanetsky2005-06-281-1/+1
|
* Various compiler warning fixes.Ilia Alshanetsky2005-05-181-1/+1
|
* patch by Christopher Kings-Lynne, slightly modifiedWez Furlong2005-05-131-8/+15
|
* Alan: moved your fields away, but reserved you a pointer.Wez Furlong2005-02-261-3/+7
| | | | | | | | | | | | | 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.
* - Shutup noticesMarcus Boerger2005-02-201-0/+8
|
* Simplify code and fix compiler warning.Ilia Alshanetsky2005-02-121-5/+2
|
* Finalized pgsql LOB support using native pgsql bytea type.Edin Kadribasic2005-02-061-6/+22
| | | | | | | | 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);