Commit Graph

484 Commits

Author SHA1 Message Date
Marcus Boerger
20a40063c5 - avoid sprintf 2007-02-24 16:25:58 +00:00
Antony Dovgal
9e5d731619 MFB: PQfreemem() checks 2007-02-19 19:46:36 +00:00
Edin Kadribasic
5182530587 MFB 2007-02-19 17:28:26 +00:00
Antony Dovgal
8190ad4661 make sure the string is non-empty and use strlcpy() & strlcat() 2007-01-11 16:45:27 +00:00
Sebastian Bergmann
3717df72ae Bump year. 2007-01-01 09:29:37 +00:00
Ilia Alshanetsky
df5d843c99 MFB: Fixed bug #39971 (pg_insert/pg_update do not allow now() to be used for
timestamp fields).
2006-12-29 00:34:53 +00:00
Ilia Alshanetsky
c42fb0033d MFB: Added buffer length checks 2006-12-28 15:21:32 +00:00
Ilia Alshanetsky
2dbfe66e4a MFB: safety checks 2006-12-26 17:40:20 +00:00
Ilia Alshanetsky
460e59a1b5 MFB: 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:47:41 +00:00
Ilia Alshanetsky
cae55a69eb MFB: Fixed bug #36812 (pg_execute() modifies input array). 2006-11-13 22:11:02 +00:00
Edin Kadribasic
ed0e78fb78 MFB: Sync with Unix build 2006-10-11 11:00:37 +00:00
Ilia Alshanetsky
8b596a4f84 MFB: Make pg_escape_bytea() use PQescapeByteaConn() whenever possible. 2006-10-06 21:45:35 +00:00
Hannes Magnusson
34fb6fc12e MFB:
- nuke unused variable
- "prefer" two arguments
- only print "wrong parameter count" once
2006-10-05 16:08:12 +00:00
Edin Kadribasic
5cdef2aaf7 MFB: Added PQescapeStringConn support to windows too 2006-10-05 11:14:17 +00:00
Ilia Alshanetsky
dbc2dc9dcf MFB: Added support for character sets in pg_escape_string() for PostgreSQL
8.1.4 and higher.
2006-10-04 23:27:17 +00:00
Hannes Magnusson
96297ff0c7 MFB: pg_send_prepare(), pg_send_query_params() & pg_send_execute() do not throw "Wrong parameter count" 2006-10-03 15:22:54 +00:00
Ilia Alshanetsky
71eac85de0 MFB: Added a check for PQftable() function 2006-09-15 19:48:55 +00:00
Antony Dovgal
b08f8ed0c1 fix leak in pg_copy_to() when invalid resource was passed 2006-09-06 12:40:47 +00:00
Dmitry Stogov
943960c324 Added automatic module globals management 2006-06-13 13:12:20 +00:00
Michael Wallner
4ce0141713 - new output control code
# scan README.NEW-OUTPUT-API to get a grasp
# tree has been tagged with BEFORE_NEW_OUTPUT_API
#
# TODO:
#  - improve existing output handlers
#  - move zlib.output_compression cruft from SAPI.c to zlib.c
#  - output_encoding handling was ambigious, resp. is undefined yet
#  - more tests
2006-06-02 19:51:43 +00:00
Marcus Boerger
f3d39723c7 - Better order for SEGV prevention 2006-04-10 19:50:56 +00:00
Marcus Boerger
40678e7f81 - Fix possible SEGV 2006-04-10 19:48:27 +00:00
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