Anatol Belski
4a4422740f
put missing prototype and fix ts build
2016-08-14 22:35:01 +02:00
Anatol Belski
977cbc2fff
Fixed bug #72759 Regression in pgo_pgsql
...
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.
2016-08-14 19:33:24 +02:00
Matteo Beccati
d3a8e107ac
Clean up FR #72633
2016-08-04 09:28:58 +02:00
Anatol Belski
40b3a031b2
cleanup table after test
2016-08-02 14:35:24 +02:00
Pablo Santiago Sánchez
90c6cbd09b
- lastInsertId using Postgres Lastval() function
2016-08-02 14:34:30 +02:00
Matteo Beccati
219ebcb689
Fixed bug #70313 PDO statement fails to throw exception
2016-07-10 14:33:56 +02:00
Lior Kaplan
49493a2dcf
Happy new year (Update copyright to 2016)
2016-01-01 19:21:47 +02:00
Anatol Belski
b460b530d6
fix test
...
backport from master
2015-08-23 17:27:53 +02:00
Matteo Beccati
b564aa95be
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fix copy/paste error in test
2015-06-13 08:08:21 +02:00
Matteo Beccati
9e4d720825
Fix copy/paste error in test
2015-06-13 08:07:49 +02:00
Matteo Beccati
3bb1a4ffe3
Merge branch 'PHP-5.5' into PHP-5.6
...
* 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
2015-06-12 02:07:02 +02:00
Matteo Beccati
b60efdce9f
Fix bug #69344 (PDO PgSQL Incorrect binding numeric array with gaps)
2015-06-12 02:05:28 +02:00
Matteo Beccati
afa4c3e7c7
Fix bug #69362 (PDO-pgsql fails to connect if password contains a leading single quote)
2015-06-12 00:21:48 +02:00
Matteo Beccati
7c0b8f872e
Fix bug #69362 (PDO-pgsql fails to connect if password contains a leading single quote)
2015-06-12 00:20:33 +02:00
Anatol Belski
702e349df4
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
rework that test to allow delta for rounding errors
2015-06-11 17:06:46 +02:00
Anatol Belski
a037b6de21
rework that test to allow delta for rounding errors
...
If this workout doesn't make travis happy, the patch needs to be
reviewed as the leak might still persist.
2015-06-11 17:05:03 +02:00
Anatol Belski
d777669679
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
improve test
2015-06-11 15:36:30 +02:00
Anatol Belski
dcfd1153ec
improve test
2015-06-11 15:36:02 +02:00
Anatol Belski
effbc87ff1
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
updated NEWS
fix memory leak in pdo_pgsql closeCursor (bug 69752)
2015-06-10 16:41:07 +02:00
Philip Hofstetter
9ba3a4c66a
fix memory leak in pdo_pgsql closeCursor (bug 69752)
...
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.
2015-06-10 16:36:00 +02:00
Anatol Belski
2ac31872ac
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix test
2015-03-14 18:30:32 +01:00
Anatol Belski
c21c8f369d
fix test
2015-03-14 18:29:59 +01:00
Xinchen Hui
0579e8278d
bump year
2015-01-15 23:26:37 +08:00
Xinchen Hui
73c1be2653
Bump year
2015-01-15 23:26:03 +08:00
Matteo Beccati
3de6f80ff5
Ref #68371 - Added support for PDO::PGSQL_ATTR_DISABLE_PREPARES
2015-01-05 11:00:11 +01:00
Matteo Beccati
488d3dac2e
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names
2015-01-05 10:48:18 +01:00
Matteo Beccati
3e4b91ec7f
Fixed bug #68371 PDO#getAttribute() cannot be called with platform-specific attribute names
2014-11-10 08:16:35 +01:00
Matteo Beccati
8fccf0bac9
Fixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)
2014-11-06 16:34:47 +01:00
Matteo Beccati
8fdc4d8797
Fixed bug #68351 (PDO::PARAM_BOOL and ATTR_EMULATE_PREPARES misbehaving)
2014-11-06 15:47:32 +01:00
Matteo Beccati
e12d69df0c
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fixed bug #66584 Segmentation fault on statement deallocation
2014-11-01 19:20:43 +01:00
Matteo Beccati
69f6aee35c
Fixed bug #66584 Segmentation fault on statement deallocation
2014-11-01 19:19:56 +01:00
Anatol Belski
1b1f7c627a
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix ZTS build
2014-10-31 19:53:39 +01:00
Anatol Belski
1fc80d0ca7
fix ZTS build
2014-10-31 19:53:16 +01:00
Matteo Beccati
e797db8909
Merge branch 'PHP-5.5' into PHP-5.6
...
* 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
2014-10-31 18:57:59 +01:00
Matteo Beccati
9580fcfedd
Fixed bug #67462 PDO_PGSQL::beginTransaction() wrongly throws exception when not in transaction
2014-10-31 18:11:32 +01:00
Matteo Beccati
8c5e2e66bc
Fixed bug #68199 (PDO::pgsqlGetNotify doesn't support NOTIFY payloads)
2014-10-17 16:22:52 +02:00
Matteo Beccati
b41ad9bfcb
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Improved test for bug #62479
2014-05-21 18:59:14 +02:00
Matteo Beccati
69d4a0b8d5
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Improved test for bug #62479
2014-05-21 18:59:02 +02:00
Matteo Beccati
00a22d4d06
Improved test for bug #62479
2014-05-21 18:58:14 +02:00
Matteo Beccati
e378348a31
Added new PDO::PGSQL_ATTR_DISABLE_PREPARES that uses PQexecParams
...
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.
2014-03-11 23:10:48 +01:00
Matteo Beccati
d72621ab9e
Deprecated PDO::PGSQL_ATTR_DISABLE_NATIVE_PREPARED_STATEMENT
2014-03-11 23:10:48 +01:00
Matteo Beccati
b1ffea3ccc
Drop PDO support for extremely old libpq versions
...
configure will now fail if any of the following function is missing:
* PQprepare
* PQexecParams
* PQescapeStringConn
* PQescapeByteaConn
2014-03-11 23:10:47 +01:00
Stanislav Malyshev
6d6850b3b8
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
fix test bug62479.phpt
2014-01-25 23:27:21 -08:00
Stanislav Malyshev
ce1e1bb5d8
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
fix test bug62479.phpt
2014-01-25 23:26:29 -08:00
Stanislav Malyshev
4e308abf28
fix test bug62479.phpt
2014-01-25 23:25:39 -08:00
Will Fitch
fb2091b1d4
Merge branch 'PHP-5.5' into PHP-5.6
...
* PHP-5.5:
Fix #62479 : Some chars not parsed in passwords
2014-01-18 19:41:45 -05:00
Will Fitch
98907a96f9
Merge branch 'PHP-5.4' into PHP-5.5
...
* PHP-5.4:
Fix #62479 : Some chars not parsed in passwords
2014-01-18 19:40:54 -05:00
Will Fitch
da83b513b2
Fix #62479 : Some chars not parsed in passwords
...
This fixes an issue where backslashes and spaces aren't
correctly parsed for passwords.
2014-01-18 19:27:40 -05:00
Xinchen Hui
c081ce628f
Bump year
2014-01-03 11:08:10 +08:00
Xinchen Hui
47c9027772
Bump year
2014-01-03 11:06:16 +08:00