Commit Graph

141 Commits

Author SHA1 Message Date
Daniel Beulshausen
0a121f855c make pgsql build under win32 again 2001-04-30 14:23:41 +00:00
Zeev Suraski
6487d08e6b Accept the fix suggestion from bug #9562 2001-04-29 17:33:11 +00:00
Rui Hirokawa
053994b5eb deleted warning output in dbx/pgsql. 2001-04-14 10:32:14 +00:00
Romolo Manfredini
0509957bc3 pg_close not closing right connection. 2001-04-05 12:29:24 +00:00
Thies C. Arntzen
cc48dd2138 make it compile with 6.5.x
postgresql notices are now send to the standard error-log
2001-04-04 21:40:41 +00:00
foobar
8a26918ed1 Renamed the AC_ prefixed macros defined in acinclude.m4 to PHP_* prefixes.
# Heads up people! I tested this before committing but you never know..
2001-03-27 20:35:04 +00:00
Romolo Manfredini
99e5dfd00e pg_close was undefining default_conn even if a ref to it was still there. 2001-03-26 08:00:43 +00:00
Romolo Manfredini
7a102a4669 Solved bugs #9746 and #9937, pg_close was closing twice the default conn. 2001-03-24 18:36:43 +00:00
Daniel Beulshausen
00b8f898e7 fix dsp 2001-03-20 17:45:10 +00:00
Andi Gutmans
eb6ba01d1c - Fix copyright notices with 2001 2001-02-26 06:11:02 +00:00
Daniel Beulshausen
10695935e0 added missing ELS_FETCH() 2001-02-20 15:34:10 +00:00
Sascha Schumann
0eec8cf2f7 Simpler fix for the InvalidOid thing by Tom Lane.
He assured me that InvalidOid has always expanded to (Oid) 0, so this
should be safe.
2001-02-19 16:31:17 +00:00
Sascha Schumann
1e6be5aaf5 Fix incompatibility with PostgreSQL CVS.
We now perform a check whether we need to include <postgres.h> to
succesfully compile.

PR: #9328
2001-02-19 08:14:45 +00:00
Sascha Schumann
b91b1779a5 Fix warning 2001-02-19 07:50:06 +00:00
Sascha Schumann
5db26dd415 Allow passing relative paths to --with-pgsql 2001-02-19 07:49:16 +00:00
Zeev Suraski
c239da7e66 Fix the PostgreSQL fix... 2001-02-15 02:15:36 +00:00
Thies C. Arntzen
9d6f117938 remove stupid PGSQL warning 2001-02-13 20:13:14 +00:00
Thies C. Arntzen
f6925611fb @- PostgreSQL now does a rollback at the end of a request on every
@  persistent connection. This is done by doing an "empty" transaction
@  on the connection (This was advised by someone from the PostgreSQL
@  core-team). If you leave transactions open on your page you will see a
@  "NOTICE:  BEGIN: already a transaction in progress" message in your
@  apache error_log. This message is created by the PostgreSQL libs - we can
@  do nothing about it. (Thies)
2001-02-13 18:28:24 +00:00
Thies C. Arntzen
79a38a1c3a @- fixes PostgeSQL pg_connect() bug. We would sometimes close the default
@  link by acciedent. (Patch by: aja@nlgroup.ca)
2001-02-13 16:54:48 +00:00
Andi Gutmans
0611acb910 - Change unset() functions to null(). unset() is legacy 2001-01-31 21:53:30 +00:00
Sascha Schumann
5d03ac038d Revert last completely broken patch. 2001-01-20 10:10:50 +00:00
Derick Rethans
82d58bdc4a - Added the pg_lolseek function, which allows for arbitrary seeking within
a large object, and the pg_lotell call, which can be used to find the
  current file offset for a large object (Submitted by: Adam Haberlach
  <adam@newsnipple.com>).
@- Added the pg_lolseek and pg_lotell functions (Derick)
2001-01-18 22:17:05 +00:00
Jouni Ahto
abcdb47fc2 Changing my email address... 2001-01-04 11:15:35 +00:00
Sascha Schumann
08d104e040 Don't increase the refcount of id, if we already have increased the refcount
of the same id before.

PR: #8225
2000-12-13 12:26:25 +00:00
Hartmut Holzgraefe
1f6878e912 2nd step towards auto-credits 2000-11-20 10:33:33 +00:00
Zeev Suraski
6d0749a95b Fix msql_close(), pg_close() and sybase_close() (Sybase CT) 2000-11-03 02:46:49 +00:00
Zeev Suraski
e560ecfa47 Fix pg_close() 2000-11-03 00:51:53 +00:00
Andi Gutmans
d0ec3df288 - Use CHECKUID_* #define's instead of cryptic numbers in php_checkuid()
- I did not test for validity of the actual php_checkuid() calls and there
- might be mistakes in the previous code.
2000-11-02 23:08:07 +00:00
Andrei Zmievski
f1dcb32c9f Use zend_register_list_destructors_ex() instead. 2000-10-25 17:44:02 +00:00
Andrei Zmievski
7b4983c8f8 Mega-patch to get better resource information for modules.
* Fixed a bug in zend_rsrc_list_get_rsrc_type()
  * Switched register_list_destructors() to use
    zend_register_list_destructors_ex() instead
  * Updated all relevant modules to provide the resource type name
    to register_list_destructors() call
  * Updated var_dump() to output resource type name instead of number

@- Made resource type names visible, e.g. var_dump() and
@  get_resource_type() display "file" for file resources. (Andrei)
2000-10-20 18:25:16 +00:00
Zeev Suraski
ac0880fd8f Remove conflict 2000-10-11 18:00:18 +00:00
Zeev Suraski
8fc4200414 Old PostgreSQL fix I forgot to commit, and NEWS consistency update 2000-10-11 13:27:21 +00:00
Rasmus Lerdorf
b189759bcd Clean up the alignment of configure --help output 2000-10-02 17:36:01 +00:00
Daniel Beulshausen
eba5d76078 removed ignoring msvcrt(d) libary 2000-09-28 20:25:03 +00:00
Andi Gutmans
526d45e95f - The Sprit of PHP is to have descriptive function names and not
necessarily short ones. Maybe we should have some FAQ for this?
2000-09-13 04:13:36 +00:00
Rui Hirokawa
4ffaf35556 updated some functions'name using obsolete name convention. 2000-09-12 23:19:58 +00:00
Jouni Ahto
0c1620840f - Renamed functions so that this extension finally starts to follow the
recommended naming scheme of PHP.
2000-09-11 21:28:47 +00:00
Jouni Ahto
d9e180b9b7 - Use the same check for existence of a valid link as the other functions.
- Return TRUE if everything went OK.
- Fixed the number of arguments to pg_endcopy.
- Removed unused variables.
- Indentation, changed spaces to tabs.
2000-09-11 18:34:06 +00:00
Derick Rethans
68611e2d55 - Added functions pg_putline and pg_endcopy (thanks to Dirk Elmendorf
<delmendo@rackspace.com>)
@ Added functions pg_putline and pg_endcopy (Dirk Elmendorf)
2000-09-11 15:34:14 +00:00
Jouni Ahto
20fe0a5685 Fixed #6627. Wrong logic... 2000-09-09 09:40:16 +00:00
Daniel Beulshausen
b6f0d041f9 deleted a few unnecceasary defines and added the Release_TS_Inline path to the libpath 2000-08-24 17:48:30 +00:00
Daniel Beulshausen
5d09d7d811 some fixes 2000-08-22 18:13:53 +00:00
Jouni Ahto
e85ba0901a - Return NULL type when column is NULL, now that we have it in PHP4.
- Fixed a bug in handling NULL columns, PQgetvalue() doesn't return a NULL
  pointer in this case, but a pointer to a string of 0 length...
2000-08-16 01:03:20 +00:00
Jouni Ahto
3d1b363967 Fix #5817 and really, really check what gets passed further... 2000-07-29 06:07:26 +00:00
Jouni Ahto
ecb7b4d271 Removed an extra tab, it caused problems for Digital Unix' poor native make... 2000-07-29 04:45:38 +00:00
Jouni Ahto
d88fe953ae This should fix #5826. 2000-07-29 04:24:11 +00:00
Sascha Schumann
b74e079ce7 The official product name is PostgreSQL, so s/PostgresSQL/PostgreSQL/ 2000-07-11 12:38:06 +00:00
Jouni Ahto
344955d020 - Still one misssing zend_list_addref() and small fix in pg_close.
Fixes #5349 (but not the way reporter wants...).

# There's something in the way database_connect/close functions behave when
# implemented the way as in mysql module that I find a bit strange... because
# of that extra zend_list_addref() there to prevent default link disappearing
# if it's not assigned to variable, when it is, I guess its' reference count
# is at this point 2, I can do: open a db link and assign it to a variable,
# close the link and still use it afterwards.
2000-07-05 22:17:30 +00:00
Jouni Ahto
bcb7639fb3 - Test pg_encoding_to_char instead (it's existence in libpq means that
PostgreSQL was compiled with multibyte support and client encoding
  functions do something meaningful). Fixes #5417.
2000-07-05 21:28:16 +00:00
Sascha Schumann
16017f6d78 Change header protection macros to conform to standard.
Draft 3 of IEEE 1003.1 200x, "2.2 The Compilation Environment"

  All identifiers that begin with an underscore and either an uppercase
  letter or another underscore are always reserved for any use by the
  implementation.
2000-07-02 23:46:51 +00:00