summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #73959 - lastInsertId fails to throw an exception in pdsqlandrewnester2017-01-202-1/+27
|
* Update copyright headers to 2017Sammy Kaye Powers2017-01-045-5/+5
|
* make timing check more forgiving in these testsAnatol Belski2016-12-151-2/+2
| | | | | | | | Particularly on slower VMs, the sporadic fails can still happen. The timing is kept in an uncritical range, but allows the tests pass there. Mayby, it'd make sense to introduce a new group for this kind of tests, so tests requiring exact time measurement can be avoided on unsuitable environments.
* Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-08-141-0/+2
|\ | | | | | | | | * PHP-5.6: put missing prototype and fix ts build
| * put missing prototype and fix ts buildAnatol Belski2016-08-141-1/+3
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2016-08-141-0/+14
|\ \ | |/ | | | | | | * PHP-5.6: Fixed bug #72759 Regression in pgo_pgsql
| * 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.
* | Merge branch 'bug72788' of https://github.com/keyurdg/php-src into PHP-7.0Xinchen Hui2016-08-091-1/+2
|\ \ | | | | | | | | | | | | | | | * 'bug72788' of https://github.com/keyurdg/php-src: Remove typo'd commit Fix bug 72788: Invalid memory access when database_object_handle is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
| * | Fix bug 72788: Invalid memory access when database_object_handleKeyur2016-08-091-1/+2
| | | | | | | | | | | | | | | is undefined. Also fix memory leak in dbh_free when using persistent PDO connections.
* | | Merge branch 'PHP-5.6' into PHP-7.0Matteo Beccati2016-08-043-6/+5
|\ \ \ | | |/ | |/| | | | | | | * PHP-5.6: Clean up FR #72633
| * | 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
| | |
* | | cleanup the table after the test runAnatol Belski2016-07-271-1/+4
| | |
* | | Implemented FR #72633 Postgres PDO lastInsertId() should work without ↵root2016-07-274-21/+58
| | | | | | | | | | | | specifying a sequence
* | | fix test outAnatol Belski2016-07-191-1/+1
| | | | | | | | | | | | this test also affected by #70313 which is not in the release branch
* | | Merge branch 'PHP-7.0.9' into PHP-7.0Stanislav Malyshev2016-07-191-2/+2
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0.9: Partial fix for bug #72613 - do not allow reading past error read update NEWS Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders Fix bug #72551 and bug #72552 - check before converting size_t->int Fix bug #72541 - size_t overflow lead to heap corruption fix possible optimization bug set versions Conflicts: configure.in ext/pdo_pgsql/tests/bug72570.phpt main/php_version.h
| * | Fixed bug #72570 Segmentation fault when binding parameters on a query ↵Matteo Beccati2016-07-142-0/+31
| | | | | | | | | | | | | | | | | | without placeholders Special commit for 7.0.9
* | | Fixed bug #72570 Segmentation fault when binding parameters on a query ↵Matteo Beccati2016-07-102-0/+31
| | | | | | | | | | | | without placeholders
* | | Merge branch 'PHP-5.6' into PHP-7.0Matteo Beccati2016-07-102-1/+38
|\ \ \ | |/ / |/| / | |/ | | * PHP-5.6: Fixed bug #70313 PDO statement fails to throw exception
| * Fixed bug #70313 PDO statement fails to throw exceptionMatteo Beccati2016-07-102-1/+38
| |
* | Add test for bug #72294Anatol Belski2016-06-011-0/+149
| |
* | Fixed bug #72294 Segmentation fault/invalid pointer in connection with ↵Anatol Belski2016-06-011-11/+15
| | | | | | | | pgsql_stmt_dtor
* | Fixed test (keyword is local related)Xinchen Hui2016-05-312-6/+6
| |
* | Fixed bug #71573 (Segfault (core dumped) if paramno beyond bound)Xinchen Hui2016-05-112-0/+27
| |
* | fix merge mistakeAnatol Belski2016-04-061-1/+1
| |
* | fix testsAnatol Belski2016-04-062-20/+92
| |
* | PostgreSQL's PDOStatement::getColumnMeta() fills in table's name.Petr Sýkora2016-04-061-0/+35
| |
* | fix indentAnatol Belski2016-04-061-40/+40
| |
* | add 32-bit specific variont for #62498Anatol Belski2016-04-061-0/+185
| |
* | skip test on 32-bitAnatol Belski2016-04-061-1/+2
| | | | | | | | The Postgres INT8 datatype is handled as string on 32-bit
* | fix and extend testAnatol Belski2016-04-051-22/+103
| |
* | Don't roundtrip to the database to get the column type if you already know itJoe Bylund2016-04-052-25/+159
| | | | | | | | | | | | | | | | add_assoc_string now takes just three args nikic's fix to move pqclear outside the if, would be a possible memory leak inside the if (joe) check behavior of getColumnMeta
* | Do not edit the value in place (might be relates to #71261)Xinchen Hui2016-01-041-4/+3
| |
* | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-015-5/+5
|\ \ | |/ | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-015-5/+5
| |
| * fix testAnatol Belski2015-08-231-2/+4
| | | | | | | | backport from master
* | add test for bug #70861Anatol Belski2015-11-051-0/+46
| |
* | fix test redirection when run not from source rootAnatol Belski2015-10-231-1/+1
| |
* | Removed or simplified incorrect SEPARATE_*() macros usage.Dmitry Stogov2015-09-291-3/+3
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-302-6/+6
| | | | | | | | semantick changes).
* | Fix more proto commentsRasmus Lerdorf2015-06-231-1/+1
| |
* | Merge branch 'PHP-5.6'Matteo Beccati2015-06-131-1/+1
|\ \ | |/ | | | | | | * PHP-5.6: Fix copy/paste error in test
| * 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.6'Matteo Beccati2015-06-122-2/+46
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: 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_statement.c
| * | 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)
* | | Merge branch 'PHP-5.6'Matteo Beccati2015-06-122-31/+91
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | * PHP-5.6: 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 win32/install.txt