Commit Graph

8931 Commits

Author SHA1 Message Date
Peter Eisentraut ad81c99984 Update since left and right are no longer key words. 2001-12-02 11:36:04 +00:00
Tom Lane ac06a7a21f Try to make genbki.sh a little more bulletproof, per trouble report
from Paul Stavrides.
2001-11-30 20:21:06 +00:00
Tom Lane c31bcbc8d6 Repair failure to mark an inserted Materialize node with the appropriate
extParam/locParam lists.  Per bug #526.
2001-11-30 19:24:15 +00:00
Peter Eisentraut 22a6a7e371 updates 2001-11-30 18:04:23 +00:00
Tom Lane 8830ce54d6 Tweak plpgsql's expression reader to be smarter about parentheses and
to give more useful error messages.  Stephen Szabo's example of this
morning ('loop' used as a variable name inside a subselect) works
correctly now, and a FOR that is misinterpreted as an integer FOR will
draw 'missing .. at end of SQL expression', which is at least
marginally helpful.
2001-11-29 22:57:37 +00:00
Tom Lane 636a939fe5 Fix array_out's failure to backslash backslashes, per bug# 524. Also,
remove brain-dead rule that double quotes are needed if and only if the
datatype is pass-by-reference; neither direction of the implication holds
water.  Instead, examine the actual data string to see if it contains
any characters that force us to quote it.
Add some documentation about quoting of array values, which was previously
explained nowhere AFAICT.
2001-11-29 21:02:41 +00:00
Peter Eisentraut 0556f7ca87 NLS updates, most notably fixed zh_TW translations 2001-11-29 18:59:28 +00:00
Peter Eisentraut 15a028b1f5 Fix results to work with normal systems again. 2001-11-29 18:57:31 +00:00
Tom Lane 3312b8ed3c Load netmsg.dll locally in winsock_strerror, to avoid actual and
potential problems discussed in pgsql-interfaces.
2001-11-28 19:40:29 +00:00
Bruce Momjian f6e1ebb166 No longer need define test in md5.h because of Hiroshi's win_md5.c. 2001-11-28 00:16:53 +00:00
Tom Lane e7257b8eb2 Fix nasty memory leak in pg_restore: _PrintData called inflateInit but
never did inflateEnd, thus leaking some tens of KB per call.  Which
added up *real fast* when dealing with, say, thousands of BLOBs.
Thanks to Lane Rollins for the bug report.
2001-11-27 23:48:12 +00:00
Tom Lane b3ff03b5d4 strcat should obviously be strcpy here. 2001-11-27 18:21:51 +00:00
Bruce Momjian 0f74fb7871 Chinese PO patch
Laser.
2001-11-27 17:51:54 +00:00
Tom Lane d7decc61d9 Fix various bogosities in usage message. 2001-11-26 23:10:36 +00:00
Bruce Momjian ea4f08ed49 Rename make_keywords.README to make_keywords. 2001-11-26 22:41:58 +00:00
Tom Lane 8e75b36aeb Fix unportable, non-spec-compliant use of offsetof() with a nonconstant
member offset.
2001-11-26 22:31:08 +00:00
Bruce Momjian 07c3f00b14 Rename find_baddefs to find_badmacros 2001-11-26 21:42:24 +00:00
Tom Lane 2337780e0e Change display of FieldSelect nodes from arg.field to field(arg),
per bug report from Stefan Hadjistoytchev.  There are some cases
where the dot notation works, but there are more where it doesn't.
Eventually ought to consider fixing the parser to allow cases like
func().field, but for now this is the simplest patch.
2001-11-26 21:15:14 +00:00
Bruce Momjian be545eaf73 Fix for "--" options. Allow --xxx as a valid flag, from NetBSD fix. 2001-11-26 19:30:58 +00:00
Bruce Momjian b6cb91023e Chinese for psql and pg_dump.
laser
2001-11-26 17:56:32 +00:00
Tom Lane e59334994e Repair problem with listing rules that have a WHERE condition and
have an INSERT...SELECT as the first or only action.  Per bug report
from Sergio Pili.
2001-11-26 00:29:15 +00:00
Barry Lind 4bc8c8dd95 This patch fixes a bug reported by Graham Leggett (minfrin@sharp.fm).
The bug was that any insert or update would fail if the returned oid was
larger than a signed int.  Since OIDs are unsigned int's it was
a bug that the code used a java signed int to deal with the values.  The bug
would result in the error message: "Unable to fathom update count".
While fixing the bug, it became apparent that other code made a similar
assumption about OIDs being signed ints.  Therefore some methods that returned
or took OIDs are arguements also needed to be changed.
Since we are so close to the 7.2 release I have added new methods that
return longs and deprecated the old methods returning ints.  Therefore all
old code should still work without requiring a code change to cast from long to int.  Also note that the methods below are PostgreSQL specific extensions to
the JDBC api are are not part of the spec from Sun, thus it is unlikely that
they are used much or at all.

The deprecated methods are:
  ResultSet.getInsertedOID()
  Statement.getInsertedOID()
  Serialize.store()
  Connection.putObject()
and are replaced by:
  ResultSet.getLastOID()
  Statement.getLastOID()
  Serialize.storeObject()
  Connection.storeObject()
All the deprecated methods returned int, while their replacements return long

This patch also fixes two comments in MD5Digest that the author Jeremy Wohl
submitted.

--Barry
2001-11-25 23:26:59 +00:00
Peter Eisentraut 23b5ca91aa Encoding isn't necessarily multibyte 2001-11-25 22:19:30 +00:00
Bruce Momjian b1a40bfe51 Backend /po patch.
http://laser.zhengmai.com.cn/download/backend_zh_CN.po.diff.gz

Weiping He
2001-11-25 18:25:54 +00:00
Tom Lane 2ec958721d Tweak int8in to accept -9223372036854775808, per recent discussion in
pgsql-patches.
2001-11-24 19:57:06 +00:00
Bruce Momjian 215f096431 Make initdb --help not line wrap. 2001-11-24 18:55:53 +00:00
Tom Lane 3e8b887e9d Remove extraneous space that somehow got into expected alter_table.out.
The default diff switches prevented regression tests from complaining,
but that doesn't make it correct.
2001-11-24 04:10:47 +00:00
Tom Lane cd255bb070 Fix boundary condition in btbulkdelete: don't examine high key in case
where rightmost index page splits while we are waiting to obtain exclusive
lock on it.  Not clear this would actually hurt (probably the callback
would always fail), but better safe than sorry.
Also, improve comments describing concurrency considerations in this code.
2001-11-23 23:41:54 +00:00
Hiroshi Inoue 535d92877e Remove compile errors of psql.exe and libpq.dll under
Multibyte mode.
2001-11-22 10:18:52 +00:00
Tom Lane 6c134eb6f1 Spell 'precedes', 'preceding' correctly in various places. 2001-11-21 22:57:01 +00:00
Tom Lane 82bad53cf5 Insert CommandCounterIncrement call into SPI_cursor_open. 2001-11-21 18:30:58 +00:00
Tom Lane dcdf9119a8 Tweak interval_avg support to avoid coredump with Alpha/Tru64 compiler.
Per report from Bernd Tegge.
2001-11-21 18:29:48 +00:00
Tom Lane 52ca149b36 Update regress tests to reflect removal of 'current'. 2001-11-21 18:27:25 +00:00
Thomas G. Lockhart 90e757c17d Add a few new time zones, and list every time zone mentioned in my
Linux box's time zone database.
Do not allow 'current' as a date/time input value.
2001-11-21 05:58:51 +00:00
Thomas G. Lockhart 4bedbd061c Repair swapped sign for time minus time routine (time_mi_time()).
Problem reported by Manuel Sugawara (masm@fciencias.unam.mx).
2001-11-21 05:57:33 +00:00
Thomas G. Lockhart d90b5d06ba Allow 'PostgreSQL' as a date/time formatting style. Formerly, recognized
'Postgres' only, but now accepts both.
2001-11-21 05:55:18 +00:00
Bruce Momjian 2985286eb4 I think it's patch's size problem that I can't
send patches to pgsql-patches list.
the zh_CN NLS patch is about 80K,
but sended twice and still can emerge on list.
so I've put it at:

http://laser.zhengmai.com.cn/download/zh_CN.po.diff.tar.gz

If possible, please download it and apply it.
(for current CVS).

    regards   laser
2001-11-21 05:45:31 +00:00
Bruce Momjian 16cb347eee // -> /* */, per Tatsuo. 2001-11-21 05:03:16 +00:00
Tom Lane e1c0bc1b26 Bruce's octet_length change breaks this regression test. 2001-11-20 22:22:24 +00:00
Bruce Momjian d83cadb314 Add mention of template1 usage. 2001-11-20 18:23:37 +00:00
Tom Lane 604f54cd27 Some minor tweaks of REINDEX processing: grab exclusive lock a little
earlier, make error checks more uniform.
2001-11-20 02:46:13 +00:00
Tatsuo Ishii 933761e7b1 Simplify pg_convert() in that it calls pg_convert2 using new fmgr interface. 2001-11-20 01:32:29 +00:00
Tom Lane 1436b212cc Double quotes in ln command to guard against spaces in path. 2001-11-20 00:27:13 +00:00
Bruce Momjian 28e92b89f4 Change 'return ;' to 'return;'; remove space. 2001-11-19 23:19:21 +00:00
Bruce Momjian 09634eafe1 Indent jdbc case labels using pgjindent. 2001-11-19 23:16:46 +00:00
Bruce Momjian 6c8120d68c More jdbc comment cleanups. Code looks very nice now. 2001-11-19 22:43:13 +00:00
Bruce Momjian 46d50783bf Update pgindent README so it gets *.java.in files. 2001-11-19 22:36:11 +00:00
Bruce Momjian f3148bef9f JDBC indenting, comment cleanups. 2001-11-19 22:33:39 +00:00
Tom Lane ed1ff84750 Tweak format_type so that we get good behavior for both column type
display (with a typemod) and function arg/result type display (without
a typemod).
2001-11-19 19:51:20 +00:00
Bruce Momjian 40015cdaae Fix arg coerect match text type, per Tom. 2001-11-19 19:15:07 +00:00