Commit Graph

462 Commits

Author SHA1 Message Date
Yasuo Ohgaki
f028fcecb5 restore E_WARNING in correct place 2006-03-29 01:10:27 +00:00
Yasuo Ohgaki
0821437bdb remove pg_execute() E_WARNING error when query plan is not defined 2006-03-27 02:59:41 +00:00
Ilia Alshanetsky
87d97c8423 Simplify and optimize code. 2006-03-22 17:32:21 +00:00
Edin Kadribasic
5db1a8cad0 Added pg_field_table() as per req: #36750 2006-03-16 14:58:56 +00:00
Pierre Joye
bb1ec86f9d - remove magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase
(calling ini_set('magic_....') returns 0|false
- get_magic_quotes_gpc, get_magic_quotes_runtime are kept but always return false
- set_magic_quotes_runtime raises an E_CORE_ERROR
2006-03-08 00:43:32 +00:00
Marcus Boerger
81954dcf78 - Fixed #36625 pg_trace() does not work 2006-03-06 20:16:34 +00:00
Antony Dovgal
94566f39f1 fix #36606 (pg_query_params() changes arguments type to string) 2006-03-05 13:33:28 +00:00
Andi Gutmans
1efe984d08 - Get rid of using ENFORCE_SAFE_MODE. 2006-02-19 04:29:42 +00:00
Andi Gutmans
e94e25e621 Start nuking safe_mode. Still a lot of work to do... 2006-02-19 00:55:22 +00:00
foobar
1afd9d6ea0 - Fixed bug #35911 (HAVE_PG_CONFIG_H set incorrectly) 2006-01-05 21:53:07 +00:00
foobar
251c5173fd bump year and license version 2006-01-01 13:10:10 +00:00
Marcus Boerger
08bccb4a72 - Fix tests 2005-12-31 17:42:27 +00:00
Marcus Boerger
7ffe23c515 - MFB Get rid of warnings 2005-12-20 21:12:13 +00:00
foobar
a208d9a966 - Nuke php3 legacy 2005-12-06 02:28:26 +00:00
foobar
34ad5ab731 - list_entry -> zend_rsrc_list_entry 2005-12-05 23:31:09 +00:00
Marcus Boerger
66a9b0b6ae - Fix Bug #32223 weird behaviour of pg_last_notice 2005-11-07 12:56:23 +00:00
Marcus Boerger
1626dba133 -MFB Fix parameter parsing 2005-11-06 12:01:42 +00:00
Ilia Alshanetsky
9c5a8bac1c Fixed bug #33167 (Possible crash inside pg_fetch_array()). 2005-10-11 16:18:40 +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
Sebastian Bergmann
52b001cc05 ZTS fixes. 2005-08-12 14:08:28 +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