summaryrefslogtreecommitdiff
path: root/ext/pdo_pgsql/pgsql_statement.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |
* | | trailing whitespace removalStanislav Malyshev2015-01-101-1/+1
| | |
* | | first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-10/+10
| | |
* | | fixed compilation errorDmitry Stogov2014-11-071-1/+1
| | |
* | | Fixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)Matteo Beccati2014-11-061-7/+2
| | |
* | | Merge branch 'PHP-5.6'Matteo Beccati2014-11-011-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-5.6: Fixed bug #66584 Segmentation fault on statement deallocation
| * | Merge branch 'PHP-5.5' into PHP-5.6Matteo Beccati2014-11-011-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-5.5: Fixed bug #66584 Segmentation fault on statement deallocation
| | * Fixed bug #66584 Segmentation fault on statement deallocationMatteo Beccati2014-11-011-1/+1
| | |
| | * Bump yearXinchen Hui2014-01-031-1/+1
| | |
* | | s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
| | |
* | | master renames phase 3Anatol Belski2014-08-251-4/+4
| | |
* | | master renames phase 1Anatol Belski2014-08-251-8/+8
| | |
* | | ported from pdo - pgsql, odbc, mysql, firebirt, dblibAnatol Belski2014-08-191-12/+13
| | |
* | | basic macro replacements, all at onceAnatol Belski2014-08-191-2/+2
| | |
* | | Finish ext/pdo_pgsql (3 tests fail, 1 due to knew issue, 2 also fails in trunk)Xinchen Hui2014-05-161-4/+4
| | |
* | | Fixed several test failedXinchen Hui2014-05-161-17/+31
| | |
* | | fix void* ptr arithmeticPierre Joye2014-05-151-1/+1
| | |
* | | Made a little clean upXinchen Hui2014-05-151-9/+8
| | |
* | | add support for pdo-pgsql in phpng refactoringnikita22062014-05-151-25/+22
| | |
* | | Merge mainstream 'master' branch into refactoringDmitry Stogov2014-04-261-44/+42
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During merge I had to revert: Nikita's patch for php_splice() (it probably needs to be applyed again) Bob Weinand's patches related to constant expression handling (we need to review them carefully) I also reverted all our attempts to support sapi/phpdbg (we didn't test it anyway) Conflicts: Zend/zend.h Zend/zend_API.c Zend/zend_ast.c Zend/zend_compile.c Zend/zend_compile.h Zend/zend_constants.c Zend/zend_exceptions.c Zend/zend_execute.c Zend/zend_execute.h Zend/zend_execute_API.c Zend/zend_hash.c Zend/zend_highlight.c Zend/zend_language_parser.y Zend/zend_language_scanner.c Zend/zend_language_scanner_defs.h Zend/zend_variables.c Zend/zend_vm_def.h Zend/zend_vm_execute.h ext/date/php_date.c ext/dom/documenttype.c ext/hash/hash.c ext/iconv/iconv.c ext/mbstring/tests/zend_multibyte-10.phpt ext/mbstring/tests/zend_multibyte-11.phpt ext/mbstring/tests/zend_multibyte-12.phpt ext/mysql/php_mysql.c ext/mysqli/mysqli.c ext/mysqlnd/mysqlnd_reverse_api.c ext/mysqlnd/php_mysqlnd.c ext/opcache/ZendAccelerator.c ext/opcache/zend_accelerator_util_funcs.c ext/opcache/zend_persist.c ext/opcache/zend_persist_calc.c ext/pcre/php_pcre.c ext/pdo/pdo_dbh.c ext/pdo/pdo_stmt.c ext/pdo_pgsql/pgsql_driver.c ext/pgsql/pgsql.c ext/reflection/php_reflection.c ext/session/session.c ext/spl/spl_array.c ext/spl/spl_observer.c ext/standard/array.c ext/standard/basic_functions.c ext/standard/html.c ext/standard/mail.c ext/standard/php_array.h ext/standard/proc_open.c ext/standard/streamsfuncs.c ext/standard/user_filters.c ext/standard/var_unserializer.c ext/standard/var_unserializer.re main/php_variables.c sapi/phpdbg/phpdbg.c sapi/phpdbg/phpdbg_bp.c sapi/phpdbg/phpdbg_frame.c sapi/phpdbg/phpdbg_help.c sapi/phpdbg/phpdbg_list.c sapi/phpdbg/phpdbg_print.c sapi/phpdbg/phpdbg_prompt.c
| * | Added new PDO::PGSQL_ATTR_DISABLE_PREPARES that uses PQexecParamsMatteo Beccati2014-03-111-1/+11
| | | | | | | | | | | | | | | | | | 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.
| * | Drop PDO support for extremely old libpq versionsMatteo Beccati2014-03-111-43/+31
| | | | | | | | | | | | | | | | | | | | | | | | configure will now fail if any of the following function is missing: * PQprepare * PQexecParams * PQescapeStringConn * PQescapeByteaConn