summaryrefslogtreecommitdiff
path: root/ext/pgsql
Commit message (Collapse)AuthorAgeFilesLines
* Added test for pg_fetch_*() functionsYasuo Ohgaki2002-04-252-0/+61
|
* Revert last 2 commits.Yasuo Ohgaki2002-04-251-14/+9
| | | | | # Most PostgreSQL users should enable multibyte support ;)
* Fix version in messageYasuo Ohgaki2002-04-251-1/+1
|
* pg_client_encoding/pg_set_client_encoding should be compiled always.Yasuo Ohgaki2002-04-252-10/+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-239-266/+199
| | | | | | 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
* Also support --disable-shared installations of pgsqlSascha Schumann2002-04-211-1/+1
|
* My patch as posted to php-dev + warnings/errors fixed as seen inSascha Schumann2002-04-211-689/+214
| | | | | Yasuo's reply.
* Make pg_lo_import()/pg_lo_unlink()/pg_lo_open()/pg_lo_export() work with oid ↵Yasuo Ohgaki2002-04-202-76/+194
| | | | | | | larger than 2^31. @Added large OID value (2^31 to 2^32) support for pg_lo_import()/pg_lo_unlink()/pg_lo_open()/pg_lo_export(). (Yasuo)
* Added comment to fix large OID value handling later.Yasuo Ohgaki2002-04-201-7/+10
| | | | | Fixed wrong conversion specifiers.
* Added missing 'd'.Yasuo Ohgaki2002-04-201-4/+4
|
* Some cleanup.Yasuo Ohgaki2002-04-201-25/+23
| | | | | | More OID range related fixes. # Need a little more work for OID
* Fixed OID overflow. If value is larger than MAX_LONG,Yasuo Ohgaki2002-04-201-8/+16
| | | | | pg_last_oid() returns string to keep correct value.
* Added API version for C programsYasuo Ohgaki2002-04-201-0/+2
|
* Remove warnings.Yasuo Ohgaki2002-04-201-17/+18
| | | | | | | Fixed OID overflow bug. Fixed type convertion bug. # Thank you Edin.
* Fixed pg_insert/update/select/delete overflow.Yasuo Ohgaki2002-04-191-18/+15
|
* Update testsYasuo Ohgaki2002-04-194-22/+26
|
* Added "NOT NULL" check and do not add converted variable when field is NULL ↵Yasuo Ohgaki2002-04-191-13/+191
| | | | | | | and HAS DEFAULT. (php_pgsql_convert)
* Changed "default" -> "has default" (metadata)Yasuo Ohgaki2002-04-191-5/+7
| | | | | Fixed comment. Do not use magic number.
* Leave "" (null string) when converting.Yasuo Ohgaki2002-04-191-1/+1
|
* Remove unneeded conversions from pg_convert.Yasuo Ohgaki2002-04-081-3/+0
|
* Make it compile with ZTS.Yasuo Ohgaki2002-04-081-27/+27
| | | | | # Forgot to test with ZTS
* Update READMEYasuo Ohgaki2002-04-081-8/+39
|
* Added pg_metadate(), pg_convert(), pg_insert(), pg_select(), pg_update()Yasuo Ohgaki2002-04-0818-14/+2233
| | | | | | | and pg_delete(). @ Added pg_metadate(), pg_convert(), pg_insert(), pg_select(), pg_update() @ and pg_delete(). (Yasuo)
* Return proper result.Yasuo Ohgaki2002-04-081-3/+3
|
* Added 2nd parameter for pg_result_status(). PGSQL_STATUS_LONG is for LONG ↵Yasuo Ohgaki2002-04-081-8/+22
| | | | | | | | result status. PGSQL_STATUS_STRING is for SQL command name successfully executed for this result. @ Added 2nd parameter for pg_result_status() to specify return type. (Yasuo)
* Nuke waring with ZTS buildYasuo Ohgaki2002-04-071-1/+1
|
* Chages for new pg_last_notice()Yasuo Ohgaki2002-04-062-3/+13
|
* Make pg_last_notice() work as it is designed. It returns last notice message ↵Yasuo Ohgaki2002-04-061-23/+50
| | | | | | | | | | | for connection resource specified. Added "pgsql.ignore_notice" ini entry. Added "pgsql.log_notice" ini entry. @ Make pg_last_notice() work as it is designed. It returns notice message PostgreSQL connection resource specified. @ Added "pgsql.ignore_notice" ini entry. @ Added "pgsql.log_notice" ini entry.
* Add error message from _notice_handler()Yasuo Ohgaki2002-04-051-0/+2
| | | | | | # Currently, it always logs whennever notice message is # recieved. I'll change error log optional later.
* Fix pg_last_notice() double free.Yasuo Ohgaki2002-04-051-1/+1
| | | | | # This should be merged
* Add notice message testYasuo Ohgaki2002-04-052-0/+23
| | | | | # Need to figure out why estrduped string is not null terminated
* Update messageYasuo Ohgaki2002-04-051-2/+2
|
* Add bytea field to test table.Yasuo Ohgaki2002-04-053-3/+3
| | | | | Use table name variable.
* Add real pg_escape_bytea() test.Yasuo Ohgaki2002-04-053-2/+31
|
* Fix testsYasuo Ohgaki2002-04-042-6/+7
|
* Added pg_escape_*() testYasuo Ohgaki2002-04-042-0/+38
|
* Clean up pg_escape_*()Yasuo Ohgaki2002-04-041-17/+9
|
* Fixed crash with pg_escape_*()Yasuo Ohgaki2002-04-041-1/+5
| | | | | # I'll MFH later.
* Print multibyte and SSL support is compiled in libpq or not.Yasuo Ohgaki2002-03-311-2/+12
|
* Print PostgreSQL version number in phpinfo()Yasuo Ohgaki2002-03-313-0/+10
|
* Fix build failure with PostgreSQL 6.5.xYasuo Ohgaki2002-03-292-11/+29
| | | | | # I'll merge this to 4.2.0 branch later
* Remove warningsYasuo Ohgaki2002-03-261-2/+0
|