summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql
Commit message (Collapse)AuthorAgeFilesLines
* put missing prototype and fix ts buildAnatol Belski2016-08-141-1/+3
|
* Fixed bug #72759 Regression in pgo_pgsqlAnatol Belski2016-08-141-0/+14
| | | | | | | | | | | | | | | This is caused by the fix for #72633. Namely, lastval() throws an error, if no nextval() was called earlier in the same session. This is by all means correct so far, however inside a transaction it leads to an abort. This is the opposite to MySQL's last_insert_id() which doesn't produce any error no matter something were autoincremented or not. To avoid existing scripts breakage in the stable branches, the previous patch is extended to revert the transaction to the state before the lastval() call in case of error. It is done only for 5.6 and 7.0 to retain BC. For 7.1+, the clean behavior should persist. This is already the current behavior, when the sequence name is explicitly passed. So there's no reason to obfuscate the errors where this breakage is valid.
* Clean up FR #72633Matteo Beccati2016-08-043-6/+5
|
* cleanup table after testAnatol Belski2016-08-021-2/+5
|
* - lastInsertId using Postgres Lastval() functionPablo Santiago Sánchez2016-08-023-19/+56
|
* Fixed bug #70313 PDO statement fails to throw exceptionMatteo Beccati2016-07-102-1/+38
|
* Happy new year (Update copyright to 2016)Lior Kaplan2016-01-015-5/+5
|
* fix testAnatol Belski2015-08-231-2/+4
| | | | backport from master
* Merge branch 'PHP-5.5' into PHP-5.6Matteo Beccati2015-06-131-1/+1
|\ | | | | | | | | * PHP-5.5: Fix copy/paste error in test
| * Fix copy/paste error in testMatteo Beccati2015-06-131-1/+1
| |
* | Merge branch 'PHP-5.5' into PHP-5.6Matteo Beccati2015-06-122-2/+46
|\ \ | |/ | | | | | | | | | | | | | | | | * PHP-5.5: Fix bug #69344 (PDO PgSQL Incorrect binding numeric array with gaps) Fix bug #69362 (PDO-pgsql fails to connect if password contains a leading single quote) Fixed bug #61574 - No MSI Conflicts: ext/pdo_pgsql/pgsql_driver.c
| * Fix bug #69344 (PDO PgSQL Incorrect binding numeric array with gaps)Matteo Beccati2015-06-122-2/+46
| |
| * Fix bug #69362 (PDO-pgsql fails to connect if password contains a leading ↵Matteo Beccati2015-06-122-31/+91
| | | | | | | | single quote)
* | Fix bug #69362 (PDO-pgsql fails to connect if password contains a leading ↵Matteo Beccati2015-06-122-30/+90
| | | | | | | | single quote)
* | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-06-111-1/+2
|\ \ | |/ | | | | | | * PHP-5.5: rework that test to allow delta for rounding errors
| * rework that test to allow delta for rounding errorsAnatol Belski2015-06-111-1/+2
| | | | | | | | | | If this workout doesn't make travis happy, the patch needs to be reviewed as the leak might still persist.
* | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-06-111-1/+1
|\ \ | |/ | | | | | | * PHP-5.5: improve test
| * improve testAnatol Belski2015-06-111-1/+1
| |
* | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-06-102-1/+61
|\ \ | |/ | | | | | | | | * PHP-5.5: updated NEWS fix memory leak in pdo_pgsql closeCursor (bug 69752)
| * fix memory leak in pdo_pgsql closeCursor (bug 69752)Philip Hofstetter2015-06-102-1/+61
| | | | | | | | | | | | | | | | | | | | the parent PDO closeCursor method resets the pdo_stmt_t's executed flag which is used by the postgres driver as a flag to check whether to allocate memory for the column data or not. This means that after the parent closeCursor() has been called, the pdo_pgsql driver will allocate a new buffer for the columns, so the existing buffer should be freed when the cursor is being closed.
* | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-03-141-0/+1
|\ \ | |/ | | | | | | * PHP-5.5: fix test
| * fix testAnatol Belski2015-03-141-0/+1
| |
| * Bump yearXinchen Hui2015-01-155-5/+5
| |
* | bump yearXinchen Hui2015-01-155-5/+5
| |
* | Ref #68371 - Added support for PDO::PGSQL_ATTR_DISABLE_PREPARESMatteo Beccati2015-01-052-1/+9
| |
* | Merge branch 'PHP-5.5' into PHP-5.6Matteo Beccati2015-01-052-0/+117
|\ \ | |/ | | | | | | * PHP-5.5: Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names
| * Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific ↵Matteo Beccati2014-11-102-0/+107
| | | | | | | | attribute names
| * Fixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)Matteo Beccati2014-11-062-0/+16
| |
* | Fixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)Matteo Beccati2014-11-062-0/+16
| |
* | Merge branch 'PHP-5.5' into PHP-5.6Matteo Beccati2014-11-012-1/+67
|\ \ | |/ | | | | | | * PHP-5.5: Fixed bug #66584 Segmentation fault on statement deallocation
| * Fixed bug #66584 Segmentation fault on statement deallocationMatteo Beccati2014-11-012-1/+67
| |
* | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2014-10-311-1/+1
|\ \ | |/ | | | | | | * PHP-5.5: fix ZTS build
| * fix ZTS buildAnatol Belski2014-10-311-1/+1
| |
* | Merge branch 'PHP-5.5' into PHP-5.6Matteo Beccati2014-10-312-10/+52
|\ \ | |/ | | | | | | | | * PHP-5.5: Added PGSQL_TEST_CONNSTR env var support for ext/pgsql tests Fixed bug #67462 PDO_PGSQL::beginTransaction() wrongly throws exception when not in transaction
| * Fixed bug #67462 PDO_PGSQL::beginTransaction() wrongly throws exception when ↵Matteo Beccati2014-10-312-10/+52
| | | | | | | | not in transaction
* | Fixed bug #68199 (PDO::pgsqlGetNotify doesn't support NOTIFY payloads)Matteo Beccati2014-10-172-0/+115
| |
* | Merge branch 'PHP-5.5' into PHP-5.6Matteo Beccati2014-05-211-8/+27
|\ \ | |/ | | | | | | * PHP-5.5: Improved test for bug #62479
| * Merge branch 'PHP-5.4' into PHP-5.5Matteo Beccati2014-05-211-8/+27
| |\ | | | | | | | | | | | | * PHP-5.4: Improved test for bug #62479
| | * Improved test for bug #62479Matteo Beccati2014-05-211-8/+27
| | |
* | | Added new PDO::PGSQL_ATTR_DISABLE_PREPARES that uses PQexecParamsMatteo Beccati2014-03-115-3/+81
| | | | | | | | | | | | | | | | | | Faster than prepared statements when queries are run once. Slightly slower than PDO::ATTR_EMULATE_PREPARES but without the potential security implications of embedding parameters in the query itself.
* | | Deprecated PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENTMatteo Beccati2014-03-114-7/+30
| | |
* | | Drop PDO support for extremely old libpq versionsMatteo Beccati2014-03-115-97/+53
| | | | | | | | | | | | | | | | | | | | | | | | configure will now fail if any of the following function is missing: * PQprepare * PQexecParams * PQescapeStringConn * PQescapeByteaConn
* | | Merge branch 'PHP-5.5' into PHP-5.6Stanislav Malyshev2014-01-251-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-5.5: fix test bug62479.phpt
| * | Merge branch 'PHP-5.4' into PHP-5.5Stanislav Malyshev2014-01-251-2/+2
| |\ \ | | |/ | | | | | | | | | * PHP-5.4: fix test bug62479.phpt
| | * fix test bug62479.phptStanislav Malyshev2014-01-251-2/+2
| | |
* | | Merge branch 'PHP-5.5' into PHP-5.6Will Fitch2014-01-182-2/+85
|\ \ \ | |/ / | | | | | | | | | * PHP-5.5: Fix #62479: Some chars not parsed in passwords
| * | Merge branch 'PHP-5.4' into PHP-5.5Will Fitch2014-01-182-2/+85
| |\ \ | | |/ | | | | | | | | | * PHP-5.4: Fix #62479: Some chars not parsed in passwords
| | * Fix #62479: Some chars not parsed in passwordsWill Fitch2014-01-182-2/+85
| | | | | | | | | | | | | | | This fixes an issue where backslashes and spaces aren't correctly parsed for passwords.
| | * Bump yearXinchen Hui2014-01-035-5/+5
| | |
| * | Bump yearXinchen Hui2014-01-035-5/+5
| | |