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
Yasuo Ohgaki
f4eff912d9
README update
2001-12-11 07:57:48 +00:00
Yasuo Ohgaki
35cc422378
Added README file for pgsql module
...
Added my self to CREDIT
2001-12-11 07:44:46 +00:00
Yasuo Ohgaki
9b405fa636
Fix proto
2001-12-10 06:14:03 +00:00
Yasuo Ohgaki
db8bb9f23c
Added async query functions
2001-12-10 04:02:08 +00:00
foobar
f1397d5339
Unified the configure messages.
2001-11-30 19:00:13 +00:00
Stig Bakken
689252082c
* zend_module_entry change: apino, debug and zts are moved first,
...
see README.EXTENSIONS file for upgrade help.
@Introduced extension version numbers (Stig)
2001-10-11 23:33:59 +00:00
Zeev Suraski
dd01c11ee3
Fix pg_last_notice()
2001-09-26 21:44:48 +00:00
Jeroen van Wolffelaar
c033288573
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
2001-09-25 21:58:48 +00:00
Derick Rethans
78747bd2df
- Don't wrap lines... this is annoying while coding.
2001-09-09 13:29:31 +00:00
foobar
601b4727b6
If the header file is not found, bail out.
2001-08-14 08:53:48 +00:00
Andi Gutmans
9a3d4e736c
- More ZE2 fixes
2001-08-13 16:13:25 +00:00
Sascha Schumann
23b9300fd1
more tsrm cleanup
2001-08-06 03:50:52 +00:00
Sascha Schumann
b349df6364
some more eliminate-fetches-or-escalate-them-at-least
2001-08-05 16:21:33 +00:00
foobar
474da88b4c
more ZTS fixes.
2001-07-31 23:47:35 +00:00
Zeev Suraski
b1de7fc900
More TSRMLS_FETCH annihilation. Enough for today...
2001-07-31 07:09:49 +00:00
Zeev Suraski
aa1772ca72
More TSRMLS_FETCH annihilation
2001-07-31 05:44:11 +00:00
Zeev Suraski
d76cf1da18
More TSRMLS_FETCH work
2001-07-31 04:53:54 +00:00
Zeev Suraski
c43806f415
Zend compatibility patch
2001-07-30 08:24:42 +00:00
Zeev Suraski
797a079a95
More TSRMLS_FETCH work, and a bit of cleanup
2001-07-30 06:18:13 +00:00
Jon Parise
a0fa32b646
Fix typo.
2001-07-29 01:46:37 +00:00
Zeev Suraski
d87cc976e1
Redesigned thread safety mechanism - nua nua
2001-07-28 11:36:37 +00:00
Zeev Suraski
fe6f8712a4
- Get rid of ELS_*(), and use TSRMLS_*() instead.
...
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
2001-07-27 10:16:41 +00:00
Rasmus Lerdorf
b9325a36a8
Fix for #11941
2001-07-13 17:13:00 +00:00
foobar
bc3482d65f
Fixed bug: #11728 . Error message was cleared before outputted in pg_pconnect()
2001-06-29 03:12:06 +00:00
Jon Parise
dbd51aaf61
Allow the PostgreSQL driver to do internal row counting when iterating
...
through a result set.
Submitted by: Georg von Zezschwitz <gvz@2scale.net>
2001-06-19 18:10:08 +00:00
Rasmus Lerdorf
81e2cf03ac
Fix folding and clean up some extensions
2001-06-06 13:06:12 +00:00
Rasmus Lerdorf
25c3a3a39d
vim-6 does folding - clean up a bunch of missing folding tags plus
...
some misguided RINIT and RSHUTDOWN calls in a few fringe extensions
2001-06-05 13:12:10 +00:00
foobar
d1a382a1e8
Fixed bug: #11265
2001-06-04 08:06:07 +00:00
Sterling Hughes
687a1c1abe
ws fix
2001-05-28 03:30:11 +00:00
foobar
49d18d9f25
Fix by Sterling Hughes. Fixes bugs: #10939 , #10756 , #10324
2001-05-27 23:26:58 +00:00
foobar
02400e339b
remove ws, kill one compile warning.
2001-05-27 22:54:54 +00:00
Egon Schmid
3ceeb1ff40
Fix some protos.
2001-05-27 01:21:30 +00:00
Sterling Hughes
04908b1415
@ Made the length argument (argument 2) to pg_loread() optional,
...
@ if not specified data will be read in 1kb chunks. (Sterling)
@ Added a third argument to pg_lowrite() which is the length of
@ the data to write. (Sterling)
2001-05-27 01:10:36 +00:00
Stig Bakken
1beda9ee1e
* include "config.h" if HAVE_CONFIG_H is defined (for standalone dso build)
2001-05-24 10:07:29 +00:00
Sascha Schumann
afdaee9e47
Nuke more quotes
2001-05-12 11:09:05 +00:00
Egon Schmid
58d2b0a52b
Corrected one proto.
2001-05-06 06:33:48 +00:00
Rasmus Lerdorf
4f059abacf
Add pg_last_notice() function
2001-05-06 01:34:56 +00:00
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