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
Sascha Schumann
c2c23ff6df
Avoid allocating resources, if we know that the input array is empty.
...
Also pass tsrmls to do_exec.
2002-04-21 10:44:31 +00:00
Sascha Schumann
bf87992040
speling fix and s/FAILURE/HASH_KEY_NON_EXISTANT/
2002-04-21 10:37:40 +00:00
Sascha Schumann
c6016fcfd2
The default has been changed to assume failure, because there were 5-10
...
cases of failure and one success.
2002-04-21 10:28:01 +00:00
Sascha Schumann
db24a14b9b
Add PGSQL_RETURN_OID which encapsulates the LONG_MAX check etc.
...
Add a few missing smart_str_0's.
Remove a "(" in a probably less-tested #ifdef.. branch
2002-04-21 10:22:31 +00:00
Sascha Schumann
9a7418906c
Also support --disable-shared installations of pgsql
2002-04-21 10:18:34 +00:00
Sascha Schumann
7e597b260a
My patch as posted to php-dev + warnings/errors fixed as seen in
...
Yasuo's reply.
2002-04-21 09:46:29 +00:00
Yasuo Ohgaki
3087b96ece
Make pg_lo_import()/pg_lo_unlink()/pg_lo_open()/pg_lo_export() work with oid 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)
2002-04-20 14:06:47 +00:00
Yasuo Ohgaki
29e3175f97
Added comment to fix large OID value handling later.
...
Fixed wrong conversion specifiers.
2002-04-20 04:17:17 +00:00
Yasuo Ohgaki
3ee7591ae9
Added missing 'd'.
2002-04-20 03:50:21 +00:00
Yasuo Ohgaki
d845ba2077
Some cleanup.
...
More OID range related fixes.
# Need a little more work for OID
2002-04-20 03:37:01 +00:00
Yasuo Ohgaki
07125ea9f4
Fixed OID overflow. If value is larger than MAX_LONG,
...
pg_last_oid() returns string to keep correct value.
2002-04-20 03:03:42 +00:00
Yasuo Ohgaki
04fb5ef2e3
Added API version for C programs
2002-04-20 02:38:30 +00:00
Yasuo Ohgaki
c53c212da6
Remove warnings.
...
Fixed OID overflow bug.
Fixed type convertion bug.
# Thank you Edin.
2002-04-20 02:31:48 +00:00
Yasuo Ohgaki
e64696d729
Fixed pg_insert/update/select/delete overflow.
2002-04-19 13:09:09 +00:00
Yasuo Ohgaki
825e011805
Update tests
2002-04-19 12:24:58 +00:00
Yasuo Ohgaki
7a8ad06121
Added "NOT NULL" check and do not add converted variable when field is NULL and HAS DEFAULT.
...
(php_pgsql_convert)
2002-04-19 12:24:14 +00:00
Yasuo Ohgaki
8d8ca2602b
Changed "default" -> "has default" (metadata)
...
Fixed comment. Do not use magic number.
2002-04-19 12:19:29 +00:00
Yasuo Ohgaki
f463be8408
Leave "" (null string) when converting.
2002-04-19 07:47:53 +00:00
Yasuo Ohgaki
34625daf18
Remove unneeded conversions from pg_convert.
2002-04-08 04:21:04 +00:00
Yasuo Ohgaki
d023a96cc6
Make it compile with ZTS.
...
# Forgot to test with ZTS
2002-04-08 02:01:45 +00:00
Yasuo Ohgaki
8fab36f99c
Update README
2002-04-08 01:50:06 +00:00
Yasuo Ohgaki
4ac70c6821
Added pg_metadate(), pg_convert(), pg_insert(), pg_select(), pg_update()
...
and pg_delete().
@ Added pg_metadate(), pg_convert(), pg_insert(), pg_select(), pg_update()
@ and pg_delete(). (Yasuo)
2002-04-08 01:37:38 +00:00
Yasuo Ohgaki
7d48177f37
Return proper result.
2002-04-08 00:50:44 +00:00
Yasuo Ohgaki
994cdb4b14
Added 2nd parameter for pg_result_status(). PGSQL_STATUS_LONG is for LONG 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)
2002-04-08 00:43:58 +00:00
Yasuo Ohgaki
dbe3dfda5f
Nuke waring with ZTS build
2002-04-07 05:21:43 +00:00
Yasuo Ohgaki
179a52b025
Chages for new pg_last_notice()
2002-04-06 06:42:02 +00:00
Yasuo Ohgaki
b2fce9e893
Make pg_last_notice() work as it is designed. It returns last notice message 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.
2002-04-06 05:52:52 +00:00
Yasuo Ohgaki
1abb9cd02c
Add error message from _notice_handler()
...
# Currently, it always logs whennever notice message is
# recieved. I'll change error log optional later.
2002-04-05 07:57:33 +00:00
Yasuo Ohgaki
7f2446e7de
Fix pg_last_notice() double free.
...
# This should be merged
2002-04-05 06:37:26 +00:00
Yasuo Ohgaki
a9452edac7
Add notice message test
...
# Need to figure out why estrduped string is not null terminated
2002-04-05 06:30:18 +00:00
Yasuo Ohgaki
d84f0e5530
Update message
2002-04-05 06:07:46 +00:00
Yasuo Ohgaki
04691a516b
Add bytea field to test table.
...
Use table name variable.
2002-04-05 06:06:21 +00:00
Yasuo Ohgaki
22007a29de
Add real pg_escape_bytea() test.
2002-04-05 06:05:28 +00:00
Yasuo Ohgaki
24b76bba21
Fix tests
2002-04-04 15:25:46 +00:00
Yasuo Ohgaki
68f8029fbb
Added pg_escape_*() test
2002-04-04 13:59:44 +00:00
Yasuo Ohgaki
fafea27a2d
Clean up pg_escape_*()
2002-04-04 13:54:51 +00:00
Yasuo Ohgaki
186823957a
Fixed crash with pg_escape_*()
...
# I'll MFH later.
2002-04-04 10:25:12 +00:00
Yasuo Ohgaki
266692a59a
Print multibyte and SSL support is compiled in libpq or not.
2002-03-31 01:45:22 +00:00
Yasuo Ohgaki
7ff1412432
Print PostgreSQL version number in phpinfo()
2002-03-31 01:18:32 +00:00
Yasuo Ohgaki
c7d72bb20d
Fix build failure with PostgreSQL 6.5.x
...
# I'll merge this to 4.2.0 branch later
2002-03-29 11:24:54 +00:00
Yasuo Ohgaki
ec0c373992
Remove warnings
2002-03-26 08:49:36 +00:00
Yasuo Ohgaki
c8a3623708
Changed error messages to be consistent with other error messages
2002-03-26 08:43:57 +00:00
Markus Fischer
1d75089d8b
*** empty log message ***
2002-03-21 22:35:02 +00:00
Yasuo Ohgaki
4094513915
Show function name in error message.
2002-03-21 00:06:45 +00:00
Wez Furlong
659a071e3d
Streams are all tracked as resources now.
...
Add some logic that will help track down leaks
when debug is enabled.
2002-03-20 14:21:30 +00:00
Wez Furlong
d2d8762267
Streams now make more use of the memory manager, so tracking down
...
leaking streams should be easier.
# I hate these big commits
2002-03-17 22:50:59 +00:00
Wez Furlong
09213d7bf8
change * formatting
2002-03-16 01:28:57 +00:00
jim winstead
d3400b2b5f
the 'setup' script was removed more than two years ago.
...
these can be safely removed from the 4.2 branch, too.
2002-03-16 00:21:40 +00:00
Wez Furlong
0f65280cb5
New PHP streams...
2002-03-15 21:03:08 +00:00
Andi Gutmans
c8e7db984c
- Allow duality between Engine 1 & 2 using ZEND_STANDARD_CLASS_DEF_PTR
2002-03-12 20:18:01 +00:00
Sascha Schumann
5cba3a99c2
extension converted automatically to PHP_NEW_EXTENSION. Manually confirmed
2002-03-12 16:44:00 +00:00
Yasuo Ohgaki
1718f1bd33
Print function names in error messages
2002-03-11 14:53:59 +00:00
Yasuo Ohgaki
8885f79909
WS and indent
2002-03-11 07:23:07 +00:00
Yasuo Ohgaki
2a6ae3b7db
Add comments for constants. Remove unneeded constants included by mistake.
2002-03-11 07:19:57 +00:00
Yasuo Ohgaki
8b8fcff81b
Fix possible build error under Windows.
...
# Recent libpq under windows supports PQcmdTuples, right?
2002-03-11 07:09:12 +00:00
Derick Rethans
bc7e0b5512
- Make the 2nd parameter to pgsql_fetch_* support NULL in case 3 parameters
...
are supplied, but you do not want to provide a row number yourself.
@- Make the 2nd parameter to pgsql_fetch_* support NULL in case 3
@ parameters are supplied, but you do not want to provide a row number
@ yourself. (Derick)
2002-03-02 19:53:11 +00:00
Yasuo Ohgaki
6ecd17100e
Update doc
2002-03-01 11:52:04 +00:00
Yasuo Ohgaki
fe72f742eb
Fix problem with sesssion_pgsql module
2002-02-15 03:30:15 +00:00
Yasuo Ohgaki
c1507e1e40
Initialize automatic persistent connection reset flag
2002-02-12 10:01:08 +00:00
Yasuo Ohgaki
39ad453266
Clean up code.
...
Removed PHP_PGSQL_API macro.
Define pgsql_globals_id
# Need a little more clean up
2002-02-06 07:25:51 +00:00
Yasuo Ohgaki
b42f0b0d43
Make module specified functions to static.
...
Added TSRMLS_D/C, get rid of one TSRMLS_FETCH.
2002-02-06 07:16:10 +00:00
Yasuo Ohgaki
1ea87faeb1
Added "auto_reset_presistent" ini entry.
2002-01-25 00:43:50 +00:00
Yasuo Ohgaki
c815a20aee
Revert last 2 commit. Instead, make php_pgsql_do_connect() to catch
...
broken connection always.
# I think this is better than check&reset connection when query
# functions are called.
2002-01-24 09:27:43 +00:00
Yasuo Ohgaki
448dbd72cd
Add a little more fault tolerance for pg_host, pg_tty and more.
2002-01-24 06:40:10 +00:00
Yasuo Ohgaki
ddee00da0e
No more httpd restart is required when PostgreSQL is rebooted.
...
# Works for pg_query()/pg_send_query()
2002-01-24 06:20:33 +00:00
Yasuo Ohgaki
ae64c5cec3
Fixed typo and proto
2002-01-21 00:36:22 +00:00
Yasuo Ohgaki
7d819fc0cf
Fix bug in test script
2002-01-10 06:44:02 +00:00
Uwe Steinmann
990c27a23a
- fixed typo in deprecated functionname
2002-01-09 08:09:16 +00:00
Yasuo Ohgaki
d9149f023d
Added when experimental functions are added.
2001-12-20 02:31:44 +00:00
Yasuo Ohgaki
806f578365
Updated README. Module will not cancel queued query sent.
2001-12-19 05:57:57 +00:00
Yasuo Ohgaki
4ae3af8a3c
Do not cancel queued query automatically.
2001-12-19 05:41:26 +00:00
Yasuo Ohgaki
8e52216b2e
More proper error message.
...
Remove old lines that aren't needed.
2001-12-18 23:52:55 +00:00
Yasuo Ohgaki
ee012b03c1
Get rid of useless path from seach path
2001-12-18 23:47:12 +00:00
Hartmut Holzgraefe
a16b64b7aa
yet another proto fix
2001-12-17 12:14:46 +00:00
Hartmut Holzgraefe
eb42e4a847
proto fixes
2001-12-17 11:53:38 +00:00
Hartmut Holzgraefe
67d9cd6975
proto fix
2001-12-17 11:48:07 +00:00
Yasuo Ohgaki
3778705036
Actually drop test table.
...
# name is dropdb since it may be changed to actually destory test db
2001-12-17 02:20:43 +00:00
Yasuo Ohgaki
0f12a9ca33
Use database named test for testing
2001-12-17 02:09:07 +00:00
Yasuo Ohgaki
1fc2a27fa5
Funtion rename:
...
Functions are renamed accoding to coding stanard. Some functions has
completely different name now.
New functions:
pg_copy_to()/pg_copy_from() - by Youichi Iwakiri <yiwakiri@st.rim.or.jp>
pg_lo_tell()/pg_lo_seek()/pg_result_error()/pg_result_status()
pg_escape_string()/pg_escape_bytea() - Only pgsql 7.2 or later.
Fixed:
Wrong mode when clean up connection resource.
Compiler warning for pg_encoding_to_char().
# Please do not document new functions, yet.
# For new functions and other info, please read README
# in module dir.
2001-12-17 00:24:59 +00:00
Yasuo Ohgaki
9a40810c85
Added test files
2001-12-17 00:16:48 +00:00
Yasuo Ohgaki
13dbb1553c
README update
...
Raise error for bogus installation path for --with-pgsql
Added check for pg_escape_*
2001-12-16 15:36:33 +00:00
Hartmut Holzgraefe
afba31f440
proto fixes
2001-12-16 09:56:01 +00:00
Sebastian Bergmann
38933514e1
Update headers.
2001-12-11 15:32:16 +00:00
Yasuo Ohgaki
02c1e81a54
More README update.
2001-12-11 08:15:25 +00:00