Andrey Hristov
5fcc682ebc
proto fixes
2003-07-19 19:23:34 +00:00
Marcus Boerger
f970724d79
Do not test postgres settings
2003-06-30 18:00:30 +00:00
Ilia Alshanetsky
77f11b9f45
Fixed bug #24284 (Fixed memory leak inside pg_ping())
2003-06-22 16:46:24 +00:00
James Cox
f68c7ff249
updating license information in the headers.
2003-06-10 20:04:29 +00:00
Marcus Boerger
a7d485143c
Update
2003-05-31 12:54:20 +00:00
Marcus Boerger
95530c61bf
Better fix for default connection handling.
...
# Problems noticed by Jay with the help of Sascha's nice little script.
2003-05-30 19:12:26 +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
Ilia Alshanetsky
ab0e80d42f
emalloc -> safe_emalloc
...
Fixed possible buffer overflow in pg_lo_read()
2003-04-25 21:59:58 +00:00
Jay Smith
3fbb4dbdc0
Fix some segfaults in some of the pg_lo_* functions.
2003-04-17 16:54:43 +00:00
Jay Smith
dcf0c70950
Fix 'timestamp without timezone', too.
2003-04-01 23:56:16 +00:00
Marcus Boerger
ccfcd0d411
Fix 'time with timezone', too
2003-04-01 23:34:11 +00:00
Jay Smith
cff236c4a6
Fixed bug #23009 (pg_select with timestamp)
2003-04-01 23:26:10 +00:00
David Hill
a7b84ac7cb
Correcting int/long mismatched - 64bit issues.
2003-03-10 20:30:33 +00:00
foobar
3c9155e0cb
Renamed OnUpdateInt -> OnUpdateLong to prevent further misunderstandings.
...
# Intentionally left out any 'alias' for it, this way 3rd party extension
# maintainers will really NOTICE the change.
2003-03-07 05:15:28 +00:00
David Hill
5c90216d2c
64-bit correction to variables passed to zend_parse_parameters
...
@64-bit correction to variables passed to zend_parse_parameters (Dave)
2003-03-06 23:07:28 +00:00
Justin Erenkrantz
9d89ef3295
Remove C++-style comment. (Breaks Sun Forte compiler.)
2003-02-20 21:48:58 +00:00
foobar
0f593f899f
Fixed bug: #22306 (pg_lo_seek($h, 0, PGSQL_SEEK_SET) succeeds but returns false)
2003-02-20 07:10:07 +00:00
Jon Parise
1b8755994e
Correct the spelling of 'supported'.
2003-02-10 15:46:47 +00:00
Yasuo Ohgaki
7f81a4a62f
Fixed one more improper row offset handling.
2003-02-09 07:50:16 +00:00
Yasuo Ohgaki
ac16adae0a
Fixed improper result offset handling.
...
Prevent error when connection is broken. (optional)
2003-02-09 07:24:18 +00:00
Ilia Alshanetsky
a89a651a46
Made the row parameter in pg_result_seek() non-optional, the current
...
implementation would result in random behavior if the 2nd argument is not
passed.
Fixed bug #22042 (pg_result_seek() would never seek to the 1st row in the
result due to always seeking to row next to the one requested).
Removed dead code from pg_result_seek().
2003-02-04 18:34:00 +00:00
Ilia Alshanetsky
72b356c1bc
Removed pointless memory allocation checks.
2003-01-18 19:28:10 +00:00
Yasuo Ohgaki
345ada81c8
Fixed proto
2003-01-15 10:21:15 +00:00
Anantha Kesari H Y
b3d80fe441
Removed #ifdef NetWare and made the necessary changes in the directory structure of NetWare.
2003-01-06 10:28:34 +00:00
Anantha Kesari H Y
f58016b348
Makefile added newly and modified the header file for NetWare.
2003-01-06 09:05:03 +00:00
Derick Rethans
6439ad7640
- Fixed bug #21232 (Unresolved references to PQsetnonblocking). (Patch by
...
Floyd <floyd@studiodust.com>)
2003-01-04 12:33:46 +00:00
Sebastian Bergmann
b506f5c8f8
Bump year.
2002-12-31 16:08:15 +00:00
Derick Rethans
16e5459f94
MFB: Fix typo
2002-12-21 17:48:37 +00:00
Ilia Alshanetsky
f620fdbed3
A better memory leak patch.
2002-12-16 07:46:36 +00:00
Ilia Alshanetsky
078dfe8d57
Fixed a memory leak.
2002-12-15 06:44:30 +00:00
Yasuo Ohgaki
e4be6b3ac2
Fixed problem with PostgreSQL 7.3
2002-11-29 17:18:01 +00:00
Yasuo Ohgaki
f0b6f5450c
Remove a warning
2002-11-26 02:13:35 +00:00
Yasuo Ohgaki
5c851cba19
Cleanup state=4 and avoid using sscanf()
2002-11-25 01:38:29 +00:00
Sascha Schumann
3f6b470770
Use proper form of NUL
...
Drop superfluous checks for NULL results
2002-11-24 16:23:37 +00:00
Sterling Hughes
490903da5a
null after the erealloc()
2002-11-24 15:11:43 +00:00
Yasuo Ohgaki
5c2fda30b2
Added missing '\0'
2002-11-24 07:45:26 +00:00
Marcus Boerger
8579756c05
Test for bug #14383
2002-11-14 20:30:53 +00:00
Yasuo Ohgaki
f482ac4011
Speed up pg_escape_bytea, from O(n^2) => O(n). My test script speed up
...
from 50 sec to 5 sec. (sscanf is too slow at least under my linux, I
might write better function that unescape values later)
Use emalloc/erealloc for bundled PQescapeBytea(php_pgsql_escape_bytea)
2002-11-12 09:07:36 +00:00
Ilia Alshanetsky
41a77bccba
Fix compile warning.
2002-11-05 14:28:32 +00:00
Marcus Boerger
15b2e277a4
fix compiler warning
2002-10-24 19:15:40 +00:00
Derick Rethans
8998bce403
- Style polizei =)
2002-10-19 12:58:41 +00:00
Yasuo Ohgaki
572b2a5a5a
Revert invalid patch. It seems the real problem is in php error
...
function(s). It exits with return code -1 when php_error_docref()
is called.
There is custom error handler and without custom error handler,
it is working.
2002-10-19 06:05:16 +00:00
Yasuo Ohgaki
29a53a47f6
Skip field when there is obvious error.
...
Fixed freeing of wrong zval.
2002-10-19 04:46:19 +00:00
Yasuo Ohgaki
98ab76d23c
Fixed typo.
2002-10-19 04:01:27 +00:00
Yasuo Ohgaki
5693bd4cdf
Added tests for new functions
2002-10-18 07:52:09 +00:00
Yasuo Ohgaki
7094b48b23
Added pg_get_pid()
2002-10-17 23:41:34 +00:00
Yasuo Ohgaki
601a507ad6
Added async message function - pg_get_notify()
2002-10-17 07:58:46 +00:00
Yasuo Ohgaki
1917f5f382
Fixed proto. Clean up.
2002-10-13 09:48:18 +00:00
Yasuo Ohgaki
a6de0807ae
Need to init connstring when there are 2 args.
2002-10-13 09:41:35 +00:00
Yasuo Ohgaki
2c23e56c7f
Introduce connect_type option to pg_connect().
...
pg_connect(conn_str, conn_type) is allowed.
@Added PGSQL_CONNECT_FORCE_NEW option to pg_connect() (Yasuo)
# If you have better idea about constant name(s), let me know.
2002-10-13 09:37:27 +00:00
Yasuo Ohgaki
6edd9d2f72
Enable pg_escape_bytea().
2002-10-13 03:00:48 +00:00
Yasuo Ohgaki
1b675aa690
Rename pg_data_seek() to pg_result_seek().
...
Added mysql_result_seek() which is alias of mysql_data_seek().
2002-10-03 02:32:09 +00:00
Yasuo Ohgaki
2300bddb9c
Fixed pg_escape_typea()
2002-10-02 06:30:40 +00:00
Yasuo Ohgaki
520486e8b1
Clean up a little.
2002-10-02 06:22:52 +00:00
Yasuo Ohgaki
69957c56b3
Added pg_unescape_bytea(). Fixed pg_data_seek().
...
php_pgsql_unescape_bytea(PQunescapeBytea) is shamelessly stolen from PostgreSQL 7.3 :)
2002-10-02 04:03:21 +00:00
Yasuo Ohgaki
2745e8b9b2
Add some example functions for mysql users.
2002-10-02 03:32:27 +00:00
Yasuo Ohgaki
b8fdd3c7ae
Added pg_data_seek().
...
pg_result_seek() woudl be better name, but there is mysql_data_seek()...
2002-10-02 03:16:35 +00:00
Yasuo Ohgaki
2728440fdc
Added pg_ping()
2002-10-02 02:41:21 +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
545f894524
Added pg_fetch_assoc(). Fixed proto. Added/fixed comments.
...
# It seems last attempt was failed. Try committing again.
2002-09-30 09:07:57 +00:00
Yasuo Ohgaki
5a6703484d
Use PGSQL_CONV_FORCE_NULL as it is supposed.
...
PGSQL_CONV_FORCE_NULL inserts NULL to field instead of
NULL string for string type tuples.
2002-09-30 07:35:41 +00:00
Yasuo Ohgaki
788e4070b6
Use of PGSQL_CONV_INGORE_NOT_NULL as it is supposed. Change comment a little.
2002-09-30 07:24:41 +00:00
Yasuo Ohgaki
dbd1a45d70
Fix TODO desc
2002-09-30 04:15:39 +00:00
Yasuo Ohgaki
b7d1a58e25
Remove unused def. Add TODO.
2002-09-30 04:15:01 +00:00
Yasuo Ohgaki
90fc47f4d1
Improve error message. Fix proto.
2002-09-30 03:51:54 +00:00
Yasuo Ohgaki
9e252a9616
php_error -> php_error_docref
2002-09-04 22:25:13 +00:00
Yasuo Ohgaki
798236bc93
Changed pg_connection_info()/pg_connection_reset()/pg_connection_busy()/pg_result_status()/pg_result_error() silently return FALSE when resource is not passed to them.
...
@ Changed pg_connection_info()/pg_connection_reset()/pg_connection_busy()/pg_result_status()/pg_result_error() silently return FALSE when resource is not passed to them. (Yasuo)
2002-08-24 22:28:28 +00:00
Yasuo Ohgaki
e4f9053061
Fixed typo
2002-08-24 07:19:40 +00:00
Yasuo Ohgaki
488a1e7399
Make pg_result_status() a little more useufl by ignoring invalid
...
parameter and return FALSE.
(i.e. pg_query() may return FALSE instead of result resource)
2002-08-24 07:18:15 +00:00
foobar
06c6a96721
ws fix
2002-08-23 20:57:30 +00:00
Yasuo Ohgaki
05aa532310
Unify error messages
2002-07-28 11:17:57 +00:00
Yasuo Ohgaki
882f83cf81
Copy empty_string, fixed crash.
...
# I thought efree() won't free empty_string...
2002-07-22 06:38:36 +00:00
Yasuo Ohgaki
36e80ddc15
Added pg_fetch_all() that fetch all rows in result.
...
Useful and faster when there is enough memory.
@Added pg_fetch_all() that fetch all rows in result. (Yasuo)
2002-07-21 07:25:10 +00:00
Yasuo Ohgaki
78a2781936
Fixed php_pgsql_convert's bool type handling.
2002-07-20 07:45:01 +00:00
Yasuo Ohgaki
0b7f2da4cf
Hmm. My PostgreSQL returns "bool" for boolean now.
2002-07-20 07:24:15 +00:00
Yasuo Ohgaki
06c969e68a
Fixed convetion when null string is passed to php_pgsql_convert()
2002-07-20 07:08:17 +00:00
Yasuo Ohgaki
c0306424fa
Fixed crash.
2002-07-20 06:45:35 +00:00
Yasuo Ohgaki
ba670fb19d
Fixed build.
2002-07-17 07:50:32 +00:00
Yasuo Ohgaki
a6384b3685
Added safe_mode & open_basedir checks for pg_lo_export()
...
@Added safe_mode & open_basedir checks for pg_lo_export() (Yasuo)
2002-07-17 05:01:58 +00:00
Yasuo Ohgaki
166ace3fa9
Added open_basedir check.
...
@ Added open_basedir check for pg_lo_import() (Yasuo)
2002-07-17 04:58:58 +00:00
Yasuo Ohgaki
a1f37648b3
Clean up code a little (Remove a use of magic number)
...
Change/add appropriate comments.
2002-07-15 10:04:01 +00:00
Rui Hirokawa
555ca8eedd
added mbstring.language option in ext/mbstring.
2002-07-11 15:45:35 +00:00
Derick Rethans
f9b21c4b7d
- Fix typo
2002-06-26 13:07:40 +00:00
Edin Kadribasic
16e9e77e2a
Fix for #17315 . Requires client library 7.2 or greater to compile.
2002-05-21 01:03:13 +00:00
Yasuo Ohgaki
62b8c29083
Fixed possible pg_lo_write() overflow and make it more fail safe.
2002-05-20 01:40:22 +00:00
Yasuo Ohgaki
c6873da401
Improve large object performance. pg_lo_read() and pg_lo_read_all() should perform
...
much better now.
Fixed Old API support for pg_lo_import().
2002-05-20 01:02:29 +00:00
Yasuo Ohgaki
f314d24d03
Reduce number of realloc calls.
2002-05-11 03:01:08 +00:00
Edin Kadribasic
51cb237aa6
Fix win32 build.
2002-05-10 02:39:37 +00:00
Yasuo Ohgaki
c5b4a507fe
Added test for pg_fetch_*() functions
2002-04-25 07:52:01 +00:00
Yasuo Ohgaki
b4c943ee7b
Revert last 2 commits.
...
# Most PostgreSQL users should enable multibyte support ;)
2002-04-25 07:09:45 +00:00
Yasuo Ohgaki
534ba498e3
Fix version in message
2002-04-25 02:40:58 +00:00
Yasuo Ohgaki
c65a20df4a
pg_client_encoding/pg_set_client_encoding should be compiled always.
...
Recent libpq has PQclientEncoding/PQsetClientEncoding regarless of
multibyte support enabled or not.
Reported by c@cornelia-boenigk.de
# This should be merged, but need a little more testing.
2002-04-25 01:42:23 +00:00
Yasuo Ohgaki
48ea7057e4
Remove result_type from pg_fetch_object() proto.
...
It still accepts 3rd argument, but passing 3rd argument
does not make sense for pg_fetch_object().
2002-04-24 23:03:48 +00:00
Yasuo Ohgaki
cf7f465ef9
It does not make any sense to have a PGSQL_BOTH as a default for pg_fetch_object()
...
Noticed by c@cornelia-boenigk.de
2002-04-24 22:57:21 +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
Sascha Schumann
ebd957f69e
hash keys lengths include the NUL-byte, so we need to copy one byte less.
...
also add missing commas in the INSERT clause.
Noticed by: Yasuo Ohgaki
2002-04-22 08:18:19 +00:00
Sascha Schumann
d1a1f17628
refactoring in pgsql_do_connect and some "leaner" code in pgsql_add_quotes
2002-04-21 11:29:17 +00:00