summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_statement.c
Commit message (Collapse)AuthorAgeFilesLines
* Allow drivers to omit error codeNikita Popov2020-12-101-4/+2
| | | | | | | And thus generate error messages that match what PDO emulation would generate. This fixes the error message regression from the previous commit.
* Fixed bug #79131Nikita Popov2020-12-101-2/+4
| | | | | | | | | | | | When a driver reports an error during EVT_ALLOC (and some over EVTs), make sure we handle it as usual, i.e. warn or throw. This requires some adjustments in PDO PgSQL to stop manually doing this through an impl error. Unfortunately the PDO PgSQL error messages regress because of this, as they now include a completely arbitrary error code. There doesn't seem to be an ability to skip it right now.
* Fix #80027 Terrible performance using $query->fetch on queries with many ↵Matteo Beccati2020-08-311-1/+1
| | | | | | | | | | bind parameters Added new flags that allow skipping param_evt(s) that are not used by drivers, in a backwards and forward compatible manner. Updated the pgsql, mysql, sqlite and oci drivers to properly use the new flags. I've left out pdo_dblib, which doesn't have a param_hook, and pdo_firebird, which seems to be using PARAM_EVT_NORMALIZE in a wrong context (param type vs event type).
* Fix [-Wundef] warning in PDO PostgreSQL extensionGeorge Peter Banyard2020-05-201-1/+1
|
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-251-2/+0
| | | | Closes GH-4732.
* Fix PDO pgsql memory leak with scrollable cursorsNikita Popov2019-09-091-1/+1
|
* Fix type mismatch in two get_col callbacksNikita Popov2019-06-121-1/+1
|
* Remove local variablesPeter Kokot2019-02-031-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Remove yearly range from copyright noticeZeev Suraski2019-01-301-1/+1
|
* Clean up unnecessary ternary expressions and simplify some returnsGabriel Caruso2018-12-031-1/+1
| | | | | | | - Simplify conditions - Use ZEND_HASH_APPLY_* instead of hard-coded booleans - Use ZEND_NORMALIZE_BOOL - Drop sign in favor of ZEND_NORMALIZE_BOOL
* Merge branch 'PHP-7.2'Anatol Belski2018-07-301-0/+6
|\ | | | | | | | | * PHP-7.2: Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL option
| * Fixed bug #75402 Possible Memory Leak using PDO::CURSOR_SCROLL optionAnatol Belski2018-07-301-0/+6
| |
* | Remove unused Git attributes identPeter Kokot2018-07-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The $Id$ keywords were used in Subversion where they can be substituted with filename, last revision number change, last changed date, and last user who changed it. In Git this functionality is different and can be done with Git attribute ident. These need to be defined manually for each file in the .gitattributes file and are afterwards replaced with 40-character hexadecimal blob object name which is based only on the particular file contents. This patch simplifies handling of $Id$ keywords by removing them since they are not used anymore.
* | Merge branch 'PHP-7.2'Anatol Belski2018-03-121-1/+4
|\ \ | |/ | | | | | | * PHP-7.2: Fix heap use after free
| * Fix heap use after freeAnatol Belski2018-03-121-1/+4
| | | | | | | | | | The value may only be used until PGresult was destroyed, thus it needs to be copied.
| * year++Xinchen Hui2018-01-021-1/+1
| |
| * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| |
* | Use OBJ_FLAGS() macro to access object flags (even if they are currently ↵Dmitry Stogov2018-01-221-1/+1
| | | | | | | | stored together with GC_FLAGS)
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | Turn "pdo_stmt_methods" into constants.Dmitry Stogov2017-12-141-1/+1
| |
* | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
|/
* Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2016-08-091-1/+2
|\ | | | | | | | | | | | | * PHP-7.0: Fixed bug #72788 (Invalid memory access when using persistent PDO connection) 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-7.0'Matteo Beccati2016-07-101-1/+4
|\ \ | |/ | | | | | | | | * PHP-7.0: Fixed bug #72570 Segmentation fault when binding parameters on a query without placeholders Fixed bug #70313 PDO statement fails to throw exception
| * Fixed bug #72570 Segmentation fault when binding parameters on a query ↵Matteo Beccati2016-07-101-0/+3
| | | | | | | | without placeholders
| * Merge branch 'PHP-5.6' into PHP-7.0Matteo Beccati2016-07-101-1/+1
| |\ | | | | | | | | | | | | * PHP-5.6: Fixed bug #70313 PDO statement fails to throw exception
| | * Fixed bug #70313 PDO statement fails to throw exceptionMatteo Beccati2016-07-101-1/+1
| | |
* | | Added ZEND_ATTRIBUTE_FORMAT to some middind functions.Dmitry Stogov2016-06-211-2/+2
|/ / | | | | | | | | "%p" replaced by ZEND_LONG_FMT to avoid compilation warnings. Fixed most incorrect use cases of format specifiers.
* | Fixed bug #72294 Segmentation fault/invalid pointer in connection with ↵Anatol Belski2016-06-011-11/+15
| | | | | | | | pgsql_stmt_dtor
* | Fixed bug #71573 (Segfault (core dumped) if paramno beyond bound)Xinchen Hui2016-05-111-0/+6
| |
* | fix merge mistakeAnatol Belski2016-04-061-1/+1
| |
* | PostgreSQL's PDOStatement::getColumnMeta() fills in table's name.Petr Sýkora2016-04-061-0/+35
| |
* | fix indentAnatol Belski2016-04-061-40/+40
| |
* | Don't roundtrip to the database to get the column type if you already know itJoe Bylund2016-04-051-25/+56
| | | | | | | | | | | | | | | | 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
* | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
|\ \ | |/ | | | | | | * PHP-5.6: Happy new year (Update copyright to 2016)
| * Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-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-301-3/+3
| | | | | | | | semantick changes).
* | Merge branch 'PHP-5.6'Matteo Beccati2015-06-121-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | * 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-121-2/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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-121-2/+2
| | |
* | | Merge branch 'PHP-5.6'Anatol Belski2015-06-101-1/+7
|\ \ \ | |/ / | | | | | | | | | | | | | | | * PHP-5.6: updated NEWS updated NEWS fix memory leak in pdo_pgsql closeCursor (bug 69752)
| * | Merge branch 'PHP-5.5' into PHP-5.6Anatol Belski2015-06-101-1/+7
| |\ \ | | |/ | | | | | | | | | | | | * 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-101-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | * Bump yearXinchen Hui2015-01-151-1/+1
| | |
| | * Fixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)Matteo Beccati2014-11-061-0/+1
| | |
| * | bump yearXinchen Hui2015-01-151-1/+1
| | |
| * | Fixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)Matteo Beccati2014-11-061-0/+1
| | |
* | | Use zend_string to represent pdo_column_data.name and avoid duplication.Dmitry Stogov2015-05-051-3/+4
| | |
* | | bump yearXinchen Hui2015-01-151-1/+1
| | |