Felipe Pena
e6194c69f0
- Fixed:
...
. Memory leak in pg_delete() when using PGSQL_DML_STRING.
. Bug #24679 (pg_insert problem!)
. Bug #35996 (pg_meta_data should take the schema into account)
. Bug #40808 (pg_insert problem)
. Bug #42078 (pg_meta_data mix tables metadata from different schemas)
- Improved:
. Error messages
- Added
. Tests
2008-10-16 00:36:49 +00:00
Felipe Pena
ee5494ac9e
- Fixed bug #37100 (data is returned truncated with BINARY CURSOR)
...
Patch by Tony
2008-10-13 13:41:16 +00:00
Hartmut Holzgraefe
d11e0df7ad
MFB + Unicode:
...
added support for object ids in pg_lo_create() and pg_lo_import()
where available (based on code provided by Tatsuo Ishii)
2008-07-23 09:27:01 +00:00
Felipe Pena
effcd82e54
- MFB: New parameter parsing API
...
- Fixed tests
2008-06-30 01:59:35 +00:00
Ilia Alshanetsky
1e6e22885d
MFB: Fixed bug #42783 (pg_insert() does not accept an empty list for
...
insertion)
2007-10-03 23:31:04 +00:00
Antony Dovgal
ccd97f3a21
fix test names
2007-05-07 17:23:53 +00:00
Marcus Boerger
81954dcf78
- Fixed #36625 pg_trace() does not work
2006-03-06 20:16:34 +00:00
Marcus Boerger
08bccb4a72
- Fix tests
2005-12-31 17:42:27 +00:00
Marcus Boerger
66a9b0b6ae
- Fix Bug #32223 weird behaviour of pg_last_notice
2005-11-07 12:56:23 +00:00
Marcus Boerger
8f4f012a2c
- Apply workaround for test until someone fixes the issue (which is unrelated to pg_*())
2005-10-09 16:05:01 +00:00
Marcus Boerger
6355dc71df
- Make test check for PlPgSQL before using it
2005-10-09 15:57:40 +00:00
Marcus Boerger
362ea7143e
- Add new test
2005-10-09 15:13:25 +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
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
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
e4570cdbd2
Add regression tests for pg_transaction_status and pg_result_error_field
2005-03-19 09:20:52 +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
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
Ilia Alshanetsky
20d64aa24e
Make test work with PostgreSQL 7.4
2003-12-23 17:33:06 +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
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
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
Marcus Boerger
ec9ae45e2f
Add reson
2003-07-22 23:01:24 +00:00
Marcus Boerger
db86597e88
Add test for bug #24499
2003-07-20 20:27:43 +00:00
Marcus Boerger
f970724d79
Do not test postgres settings
2003-06-30 18:00:30 +00:00
Marcus Boerger
a7d485143c
Update
2003-05-31 12:54:20 +00:00
Marcus Boerger
1eec984976
Fix handling of default links
2003-05-30 16:51:00 +00:00
Marcus Boerger
3dbe16cac4
Fix notice handling
2003-05-30 15:42:46 +00:00
Marcus Boerger
680653fecb
- Fix ini handling in ZTS mode
2003-05-30 15:07:02 +00:00
Marcus Boerger
daded6e633
Reorganized tests
2003-05-20 00:14:46 +00:00
Marcus Boerger
8579756c05
Test for bug #14383
2002-11-14 20:30:53 +00:00
Yasuo Ohgaki
5693bd4cdf
Added tests for new functions
2002-10-18 07:52:09 +00:00
Yasuo Ohgaki
f8f11ac0a2
Rename pg_metadata() to pg_meta_data() to confirm naming standard
2002-10-02 02:11:27 +00:00
Yasuo Ohgaki
c5b4a507fe
Added test for pg_fetch_*() functions
2002-04-25 07:52:01 +00:00
Yasuo Ohgaki
e7e0eddadd
Make pg_convert/pg_insert/pg_select/pg_update/pg_delete a bit more flexible.
...
pg_convert() may ignore, NOT NULL and/or DEFAULT.
pg_insert/pg_update/pg_select/pg_update may return query string.
2002-04-23 03:42:26 +00:00
Yasuo Ohgaki
3087b96ece
Make pg_lo_import()/pg_lo_unlink()/pg_lo_open()/pg_lo_export() work with oid larger than 2^31.
...
@Added large OID value (2^31 to 2^32) support for pg_lo_import()/pg_lo_unlink()/pg_lo_open()/pg_lo_export(). (Yasuo)
2002-04-20 14:06:47 +00:00
Yasuo Ohgaki
825e011805
Update tests
2002-04-19 12:24:58 +00:00
Yasuo Ohgaki
4ac70c6821
Added pg_metadate(), pg_convert(), pg_insert(), pg_select(), pg_update()
...
and pg_delete().
@ Added pg_metadate(), pg_convert(), pg_insert(), pg_select(), pg_update()
@ and pg_delete(). (Yasuo)
2002-04-08 01:37:38 +00:00
Yasuo Ohgaki
179a52b025
Chages for new pg_last_notice()
2002-04-06 06:42:02 +00:00
Yasuo Ohgaki
1abb9cd02c
Add error message from _notice_handler()
...
# Currently, it always logs whennever notice message is
# recieved. I'll change error log optional later.
2002-04-05 07:57:33 +00:00
Yasuo Ohgaki
a9452edac7
Add notice message test
...
# Need to figure out why estrduped string is not null terminated
2002-04-05 06:30:18 +00:00
Yasuo Ohgaki
d84f0e5530
Update message
2002-04-05 06:07:46 +00:00
Yasuo Ohgaki
04691a516b
Add bytea field to test table.
...
Use table name variable.
2002-04-05 06:06:21 +00:00
Yasuo Ohgaki
22007a29de
Add real pg_escape_bytea() test.
2002-04-05 06:05:28 +00:00
Yasuo Ohgaki
24b76bba21
Fix tests
2002-04-04 15:25:46 +00:00