Ilia Alshanetsky
79d524dc1e
Fixed bug #39971 (pg_insert/pg_update do not allow now() to be used for
...
timestamp fields).
2006-12-29 00:34:30 +00:00
Ilia Alshanetsky
794845234e
Added buffer length checks
2006-12-28 15:21:21 +00:00
Ilia Alshanetsky
52d53543ac
Allocation safety checks
2006-12-25 22:36:57 +00:00
Hannes Magnusson
f4e63cbece
Fix test
2006-12-12 09:15:25 +00:00
Ilia Alshanetsky
bfa4af46e1
Fixed bug #39663 (Memory leak in pg_get_notify() and a possible memory
...
corruption on Windows in pgsql and pdo_pgsql extensions).
2006-11-29 15:45:59 +00:00
Ilia Alshanetsky
b28cbe8b6f
Fixed bug #36812 (pg_execute() modifies input array).
2006-11-13 22:10:37 +00:00
Edin Kadribasic
9f5de3bb5c
Sync with Unix build
2006-10-11 11:00:03 +00:00
Ilia Alshanetsky
fab29dcbcf
Make pg_escape_bytea() use PQescapeByteaConn() whenever possible.
2006-10-06 21:45:10 +00:00
Hannes Magnusson
93909bb30e
- nuke unused variable
...
- "prefer" two arguments
- only print "wrong parameter count" once
2006-10-05 16:02:29 +00:00
Edin Kadribasic
a290cef01c
Added PQescapeStringConn support to windows too
2006-10-05 11:13:31 +00:00
Ilia Alshanetsky
e8c70bfa99
Added support for character sets in pg_escape_string() for PostgreSQL
...
8.1.4 and higher.
2006-10-04 23:27:03 +00:00
Hannes Magnusson
9bff1e24b5
pg_send_prepare(), pg_send_query_params() & pg_send_execute() do not throw "Wrong parameter count"
2006-10-03 15:21:47 +00:00
Ilia Alshanetsky
2cc1f53f3b
Added a check for PQftable() function
2006-09-15 19:47:50 +00:00
Antony Dovgal
37635d93e6
fix leak in pg_copy_to() when invalid resource was passed
2006-09-06 12:40:56 +00:00
Dmitry Stogov
1dbaae2795
Added automatic module globals management
2006-06-15 18:33:09 +00:00
Marcus Boerger
77c1b56cd7
- Update after api changes
2006-05-10 00:00:13 +00:00
Edin Kadribasic
18eb480dd2
MFH: Added pg_field_table() as per req: #36750
2006-05-07 00:28:32 +00:00
Marcus Boerger
8bbf3a00dc
- MFH Fix potenbtioal SEGV
2006-04-10 19:51:55 +00:00
Yasuo Ohgaki
cdbe8b4fd8
reenable pg_execute E_WARNING
2006-03-28 00:28:02 +00:00
Yasuo Ohgaki
82376269fd
remove pg_execute() E_WARNING error when query plan is not defined
2006-03-27 02:59:55 +00:00
Marcus Boerger
0bcd459300
- bug #36625 fix
2006-03-13 22:56:20 +00:00
Antony Dovgal
0b12f7307e
MFH: fix #36606 (pg_query_params() changes arguments type to string)
2006-03-05 13:35:52 +00:00
foobar
8c56ee5cb6
MFH: - Fixed bug #35911 (HAVE_PG_CONFIG_H set incorrectly)
2006-01-05 21:53:19 +00:00
foobar
5bd93221a8
bump year and license version
2006-01-01 12:51:34 +00:00
Marcus Boerger
8479546920
- MFH Fix tests
2005-12-31 17:42:39 +00:00
Marcus Boerger
81c25d8700
- Get rid of compiler warnings (both postgres an dphp use these defines)
2005-12-20 21:10:43 +00:00
Ilia Alshanetsky
6654b31e26
fixed test for ZTS
2005-12-18 14:22:48 +00:00
foobar
3e669bc950
MFH: nuke php3 legacy
2005-12-06 02:28:41 +00:00
foobar
a3af52c11e
MFH: list_entry -> zend_rsrc_list_entry
2005-12-05 23:38:04 +00:00
Marcus Boerger
ae1d56d098
- MFH Bug #32223 weird behaviour of pg_last_notice
2005-11-07 12:57:49 +00:00
Marcus Boerger
71ad4dd19b
- Fix parameter parsing
2005-11-06 11:58:34 +00:00
Ilia Alshanetsky
ea4734926e
MFH: Fixed bug #33167 (Possible crash inside pg_fetch_array()).
2005-10-11 16:19:14 +00:00
Marcus Boerger
91682f88e4
- MFH Make test check for PlPgSQL before using it
2005-10-09 15:58:13 +00:00
Marcus Boerger
a8c5828ce0
- MFH Add new test
2005-10-09 15:14:22 +00:00
Edin Kadribasic
d327027ea9
Use free() instead of PQfreemem() to maintain compabitibility with older
...
PostgreSQL client libraries (bug #33813 ).
2005-08-16 09:55:44 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
foobar
03897956b2
revert fix that did not fix anything
2005-07-22 22:00:55 +00:00
Yasuo Ohgaki
813bd67320
fix build with older postgresql
2005-07-22 18:48:14 +00:00
Ilia Alshanetsky
ef7bd06657
Added pg_fetch_all_columns() function to fetch all values of a column from
...
a result cursor.
2005-07-08 00:40:32 +00:00
Edin Kadribasic
312a8eede3
Properly detect when the copy command fails
2005-07-05 14:49:22 +00:00
Derick Rethans
17b877a772
- Fixed memory corruption in pg_copy_from() in case the as_null parameter was
...
passed. (Derick)
2005-07-05 12:45:39 +00:00
Wez Furlong
e9d474dc01
fixes for #33251
2005-06-05 19:25:01 +00:00
foobar
a20383ba06
- Unify the "configure --help" texts
2005-05-29 23:17:16 +00:00
Antony Dovgal
fcf14f1795
use & and check for the right value of result_type
2005-05-10 23:12:31 +00:00
Antony Dovgal
38a7ef5fe6
fix #32904 (pg_get_notify() ignores result_type parameter)
2005-05-10 20:13:24 +00:00
Ilia Alshanetsky
bdbce01588
Prevent double free.
2005-05-03 22:50:00 +00:00
Antony Dovgal
2c511712f7
disable pg_cmdtuples() too, if there is no pg_affected_rows()
2005-04-13 22:11:35 +00:00
Derick Rethans
cba30657d9
- MFH43: Fixed bug #32699 (pg_affected_rows() was defined when it was not
...
available).
2005-04-13 21:48:33 +00:00
Antony Dovgal
1c4eb9b684
fix typo
2005-04-03 13:06:08 +00:00
Christopher Kings-Lynne
030ebaaa45
(PHP pg_unescape_bytea) Use libpq version of PQunescapeBytea if it exists.
...
# The version in libpq is newer and faster than the one in PHP, but it is
# necessary for me to add a string copy for freeing purposes. This copy
# is only needed in Windows AFAIK, how can I detect that?
2005-03-25 06:26:31 +00:00
Ilia Alshanetsky
e8bd3b9b4f
Slightly safer code.
2005-03-25 00:30:43 +00:00
Christopher Kings-Lynne
63ed4a1996
- Ensure that ext/pgsql tests work when linked against 7.2 or lower libpq
2005-03-23 03:24:41 +00:00
Christopher Kings-Lynne
e2b87e6230
Tweak some #if's to be more orthogonal.
...
(PHP pg_set_error_verbosity) New function to set PostgreSQL error verbosity
(PHP pg_copy_from) Use non-deprecated API if it is available
(PHP pg_copy_to) Use non-deprecated API if it is available
2005-03-22 08:51:23 +00:00
foobar
4d46234912
- Fixed a warning (might also be an error with some exotic compiler)
2005-03-20 02:57:10 +00:00
Christopher Kings-Lynne
721d34bebc
Two of the diagnostic definitions were added in 8.0. Add appropriate #ifdefs.
2005-03-20 02:46:02 +00:00
Marcus Boerger
d23781e08d
- Add missing skipif part
2005-03-19 10:58:44 +00:00
Christopher Kings-Lynne
3dd44c3018
Another oversight - make sure constants related to pg_result_error_field are #if'd as well as the function itself
2005-03-19 09:21:51 +00:00
Christopher Kings-Lynne
e4570cdbd2
Add regression tests for pg_transaction_status and pg_result_error_field
2005-03-19 09:20:52 +00:00
Christopher Kings-Lynne
28ec3abf87
Minor oversight in #if for an internal function
2005-03-19 09:07:20 +00:00
Christopher Kings-Lynne
1168c30635
Added several new functions to support the PostgreSQL v3 protocol
...
introduced in PostgreSQL 7.4.
(PHP pg_transaction_status) New function to get in-transaction status of
a database connection.
(PHP pg_query_params) New function to allow execution of parameterized
queries.
(PHP pg_prepare) New function to allow preparing named queries.
(PHP pg_execute) New function to allow execution of named prepared
queries.
(PHP pg_send_query_params) New function that is the async equivalent of
pg_query_params.
(PHP pg_send_prepare) New function that is the async equivalent of
pg_prepare.
(PHP pg_send_execute) New function that is the async equivalent of
pg_execute.
(PHP pg_result_error_field) New function that allows highly detailed
error information, most importantly the
SQLSTATE error code
# Regression tests are included for all but 2 functions, the rest will
# follow shortly. Docs will also follow shortly.
2005-03-19 08:46:56 +00:00
Edin Kadribasic
4a133ae725
ws fix
2005-02-14 23:40:24 +00:00
Edin Kadribasic
70e0849416
Added pg_field_type_oid() function
2005-02-14 23:36:16 +00:00
Edin Kadribasic
84a6e90b7d
Added missing defines ( #31751 )
2005-02-14 23:01:57 +00:00
foobar
69eec3f3b9
MFB_4_3: Quote macro names in AC_DEFUN()
2004-12-30 07:08:39 +00:00
Joe Orton
2685ca935f
Update extensions to use /path/to/$PHP_LIBDIR rather than /path/to/lib
...
to support multi-ABI platforms.
2004-11-03 14:32:52 +00:00
Andi Gutmans
56f8195fe5
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
...
used to return "" and not bool(false). It's not worth keeping it because
STR_FREE() and zval_dtor() always have to check for it and it slows down
the general case. In addition, it seems that empty_string has been abused
quite a lot, and was used not only for setting zval's but generally in
PHP code instead of "", which wasn't the intention. Last but not least,
nuking empty_string should improve stability as I doubt every place
correctly checked if they are not mistakenly erealloc()'ing it or
calling efree() on it.
NOTE: Some code is probably broken. Each extension maintainer should
check and see that my changes are OK. Also, I haven't had time to touch
PECL yet. Will try and do it tomorrow.
2004-07-19 07:19:50 +00:00
Ilia Alshanetsky
ca5c6a1e91
Fixed bug #28374 (Possible unterminated loop inside
...
_php_pgsql_trim_message()).
2004-05-12 16:49:47 +00:00
Ilia Alshanetsky
8694cd135d
Fixed possible crash inside pg_copy_(to|from) function if delimiter is more
...
then 1 character long.
2004-04-22 00:31:55 +00:00
Ilia Alshanetsky
5442d722c3
Fixed bug #27300 (Improved regex for pg_convert()).
...
# Patch by benjcarson at digitaljunkies dot ca
2004-03-18 01:34:58 +00:00
Marcus Boerger
b83663e0f2
Keep BC of pg_fetch_object
2004-03-15 20:16:59 +00:00
Marcus Boerger
0ace9f4885
Bugfix #27597 pg_fetch_array not returning false .
2004-03-15 19:47:18 +00:00
Marcus Boerger
1651be020a
Show the connect result
2004-03-09 14:37:49 +00:00
Ard Biesheuvel
81f05c18f5
Wordsize fixes
2004-02-25 20:16:27 +00:00
Zeev Suraski
30171a7590
zend_default_classes.h -> zend_exceptions.h
2004-02-12 10:43:27 +00:00
Ilia Alshanetsky
194509f093
Fixed bug #27007 (missing connection closure when connect fails in pgsql).
2004-01-29 02:54:30 +00:00
foobar
f4983c0d3f
- Renamed all *php4* files to *php5*, changed all php4/PHP4 to php5/PHP5
2004-01-17 13:00:38 +00:00
Ilia Alshanetsky
3b7da77480
Fixed bug #26864 (pg_(update|delete) ignore PGSQL_DML_EXEC option).
2004-01-11 21:18:19 +00:00
Marcus Boerger
b460ae868e
Use pg_config if it can be found.
2004-01-09 18:44:33 +00:00
foobar
ccfc46b0aa
- Happy new year and PHP 5 for rest of the files too..
...
# Should the LICENSE and Zend/LICENSE dates be updated too?
2004-01-08 17:33:29 +00:00
Andi Gutmans
dbeb4158d2
- A belated happy holidays and PHP 5
2004-01-08 08:18:22 +00:00
Ilia Alshanetsky
fae56fca30
Removed a useless define.
2003-12-29 15:58:01 +00:00
Ilia Alshanetsky
20d64aa24e
Make test work with PostgreSQL 7.4
2003-12-23 17:33:06 +00:00
Ilia Alshanetsky
57b7eb9dc3
Missing bit for bug #26625 .
2003-12-22 15:56:51 +00:00
Ilia Alshanetsky
82ec523a75
Fixed Bug #26625 (pg_convert sets NULL incorrectly for character data
...
types).
2003-12-16 01:00:34 +00:00
Edin Kadribasic
c7ad4d1e4d
MFB: Use standard header locations
2003-12-11 11:19:15 +00:00
Ilia Alshanetsky
669b421c11
Removed unused variable.
2003-12-07 18:39:09 +00:00
Marcus Boerger
4b9a4509c4
MFB: PHP_PQ_ERROR() change
2003-12-06 21:36:21 +00:00
Marcus Boerger
37bcfda978
#args, reinsert skipif for extension check
2003-12-06 20:41:07 +00:00
Marcus Boerger
4a66bd9394
Do not dynamically load the extension in skipif
2003-12-06 20:35:41 +00:00
Edin Kadribasic
32eb4f78c2
Get rid of PHPAPI usage.
...
Enable shared build in the new php5 build system
Check for the correct header.
2003-12-05 01:03:35 +00:00
Wez Furlong
9555db802d
Make this build using new build system
2003-12-04 15:32:31 +00:00
Marcus Boerger
f6239c33bc
Modify pg_fetch_object() to be able to instantiate a selected class and pass
...
parameters to the constructor. Update tests and add a test for these features.
2003-09-06 18:34:55 +00:00
Marcus Boerger
5d1dbdbfd2
Bugfix #25404
2003-09-06 15:30:28 +00:00
Marcus Boerger
d2f39fc11e
format string fix and number of arguments
2003-08-28 23:04:27 +00:00
Andrey Hristov
189e2d8862
this is the right parameter
2003-08-28 21:06:44 +00:00
Andrey Hristov
b2eb454171
format string fixes
2003-08-28 21:00:24 +00:00
Ilia Alshanetsky
bf82857475
Fixed bug #25109 (Possible crash when fetching field name)
2003-08-28 00:31:36 +00:00
Ilia Alshanetsky
e5879a5060
Fixed tests that failed in ZTS due to incorrect file paths.
...
Fixed test that failed due to new array dimension property being fetched.
2003-08-28 00:29:44 +00:00
Ilia Alshanetsky
249e8d5fa8
Fixed bug #22243 (make pg_meta_data fetch array dimentions)
...
m-lesser[at]better-com.de
2003-08-27 00:04:19 +00:00
Ilia Alshanetsky
38a98c55f7
Fixed bug #25093 (Various leaks due to non-freed queries)
2003-08-14 17:49:08 +00:00