summaryrefslogtreecommitdiff
path: root/ext/pgsql/pgsql.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Added async message function - pg_get_notify()Yasuo Ohgaki2002-10-171-0/+40
|
* Fixed proto. Clean up.Yasuo Ohgaki2002-10-131-2/+2
|
* Need to init connstring when there are 2 args.Yasuo Ohgaki2002-10-131-0/+1
|
* Introduce connect_type option to pg_connect().Yasuo Ohgaki2002-10-131-6/+12
| | | | | | | 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.
* Enable pg_escape_bytea().Yasuo Ohgaki2002-10-131-0/+1
|
* Rename pg_data_seek() to pg_result_seek().Yasuo Ohgaki2002-10-031-3/+3
| | | | | Added mysql_result_seek() which is alias of mysql_data_seek().
* Fixed pg_escape_typea()Yasuo Ohgaki2002-10-021-2/+2
|
* Clean up a little.Yasuo Ohgaki2002-10-021-4/+2
|
* Added pg_unescape_bytea(). Fixed pg_data_seek().Yasuo Ohgaki2002-10-021-2/+128
| | | | | php_pgsql_unescape_bytea(PQunescapeBytea) is shamelessly stolen from PostgreSQL 7.3 :)
* Added pg_data_seek().Yasuo Ohgaki2002-10-021-0/+32
| | | | | pg_result_seek() woudl be better name, but there is mysql_data_seek()...
* Added pg_ping()Yasuo Ohgaki2002-10-021-1/+33
|
* Rename pg_metadata() to pg_meta_data() to confirm naming standardYasuo Ohgaki2002-10-021-10/+10
|
* Added pg_fetch_assoc(). Fixed proto. Added/fixed comments.Yasuo Ohgaki2002-09-301-5/+20
| | | | | # It seems last attempt was failed. Try committing again.
* Use PGSQL_CONV_FORCE_NULL as it is supposed.Yasuo Ohgaki2002-09-301-1/+6
| | | | | | PGSQL_CONV_FORCE_NULL inserts NULL to field instead of NULL string for string type tuples.
* Use of PGSQL_CONV_INGORE_NOT_NULL as it is supposed. Change comment a little.Yasuo Ohgaki2002-09-301-3/+3
|
* Fix TODO descYasuo Ohgaki2002-09-301-1/+1
|
* Remove unused def. Add TODO.Yasuo Ohgaki2002-09-301-4/+1
|
* Improve error message. Fix proto.Yasuo Ohgaki2002-09-301-11/+12
|
* php_error -> php_error_docrefYasuo Ohgaki2002-09-041-219/+115
|
* Changed ↵Yasuo Ohgaki2002-08-241-22/+16
| | | | | | | 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)
* Fixed typoYasuo Ohgaki2002-08-241-1/+1
|
* Make pg_result_status() a little more useufl by ignoring invalidYasuo Ohgaki2002-08-241-3/+9
| | | | | | parameter and return FALSE. (i.e. pg_query() may return FALSE instead of result resource)
* ws fixfoobar2002-08-231-3/+3
|
* Unify error messagesYasuo Ohgaki2002-07-281-109/+109
|
* Copy empty_string, fixed crash.Yasuo Ohgaki2002-07-221-1/+1
| | | | | # I thought efree() won't free empty_string...
* Added pg_fetch_all() that fetch all rows in result.Yasuo Ohgaki2002-07-211-0/+25
| | | | | | Useful and faster when there is enough memory. @Added pg_fetch_all() that fetch all rows in result. (Yasuo)
* Fixed php_pgsql_convert's bool type handling.Yasuo Ohgaki2002-07-201-9/+6
|
* Hmm. My PostgreSQL returns "bool" for boolean now.Yasuo Ohgaki2002-07-201-1/+1
|
* Fixed convetion when null string is passed to php_pgsql_convert()Yasuo Ohgaki2002-07-201-2/+1
|
* Fixed crash.Yasuo Ohgaki2002-07-201-1/+1
|
* Fixed build.Yasuo Ohgaki2002-07-171-2/+2
|
* Added safe_mode & open_basedir checks for pg_lo_export()Yasuo Ohgaki2002-07-171-0/+8
| | | | | @Added safe_mode & open_basedir checks for pg_lo_export() (Yasuo)
* Added open_basedir check.Yasuo Ohgaki2002-07-171-0/+4
| | | | | @ Added open_basedir check for pg_lo_import() (Yasuo)
* Clean up code a little (Remove a use of magic number)Yasuo Ohgaki2002-07-151-12/+12
| | | | | Change/add appropriate comments.
* added mbstring.language option in ext/mbstring.Rui Hirokawa2002-07-111-3/+3
|
* Fixed possible pg_lo_write() overflow and make it more fail safe.Yasuo Ohgaki2002-05-201-1/+11
|
* Improve large object performance. pg_lo_read() and pg_lo_read_all() should ↵Yasuo Ohgaki2002-05-201-9/+8
| | | | | | | | perform much better now. Fixed Old API support for pg_lo_import().
* Reduce number of realloc calls.Yasuo Ohgaki2002-05-111-0/+2
|
* Revert last 2 commits.Yasuo Ohgaki2002-04-251-14/+9
| | | | | # Most PostgreSQL users should enable multibyte support ;)
* pg_client_encoding/pg_set_client_encoding should be compiled always.Yasuo Ohgaki2002-04-251-8/+13
| | | | | | | | | | 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.
* Remove result_type from pg_fetch_object() proto.Yasuo Ohgaki2002-04-241-1/+1
| | | | | | It still accepts 3rd argument, but passing 3rd argument does not make sense for pg_fetch_object().
* It does not make any sense to have a PGSQL_BOTH as a default for ↵Yasuo Ohgaki2002-04-241-1/+1
| | | | | | | pg_fetch_object() Noticed by c@cornelia-boenigk.de
* Make pg_convert/pg_insert/pg_select/pg_update/pg_delete a bit more flexible.Yasuo Ohgaki2002-04-231-235/+161
| | | | | | pg_convert() may ignore, NOT NULL and/or DEFAULT. pg_insert/pg_update/pg_select/pg_update may return query string.
* hash keys lengths include the NUL-byte, so we need to copy one byte less.Sascha Schumann2002-04-221-2/+4
| | | | | | | also add missing commas in the INSERT clause. Noticed by: Yasuo Ohgaki
* refactoring in pgsql_do_connect and some "leaner" code in pgsql_add_quotesSascha Schumann2002-04-211-118/+80
|
* Avoid allocating resources, if we know that the input array is empty.Sascha Schumann2002-04-211-21/+21
| | | | | Also pass tsrmls to do_exec.
* speling fix and s/FAILURE/HASH_KEY_NON_EXISTANT/Sascha Schumann2002-04-211-3/+3
|
* The default has been changed to assume failure, because there were 5-10Sascha Schumann2002-04-211-1/+1
| | | | | cases of failure and one success.
* Add PGSQL_RETURN_OID which encapsulates the LONG_MAX check etc.Sascha Schumann2002-04-211-25/+17
| | | | | | | Add a few missing smart_str_0's. Remove a "(" in a probably less-tested #ifdef.. branch
* My patch as posted to php-dev + warnings/errors fixed as seen inSascha Schumann2002-04-211-689/+214
| | | | | Yasuo's reply.