Commit Graph

1601 Commits

Author SHA1 Message Date
Thomas G. Lockhart 407cd4ee24 Add a few type conversion functions.
Pass an additional argument for date/time formatting to better handle timezones.
1997-05-11 15:13:49 +00:00
Thomas G. Lockhart 64d9b50893 Fix timezone manipulation code to avoid crashes on some machines.
Add type conversion functions for floating point numbers.
Check for zero in unary minus floating point code (IEEE allows an
 explicit negative zero which looks ugly in a query result!).
Ensure circle type has non-negative radius.
1997-05-11 15:11:47 +00:00
Marc G. Fournier 9190a80ef9 Oops, one of DAvid's patches didn't quite make it in cleanly, so a little
manual intervention required :)
1997-05-11 06:27:07 +00:00
Marc G. Fournier b12241b2aa From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] Documentation update

This patch updates some of the documentation that comes with the
distribution.  The following files are updated:
        COPYRIGHT
        README
        doc/README.flex
        doc/README.support
        doc/bug.template
1997-05-11 06:18:33 +00:00
Marc G. Fournier 498d2d1edc From: Edmund Mergl <E.Mergl@bawue.de>
Subject: [PATCHES] libpq patch

Hi,

here is a small patch which fixes two problems:

1. libpq/libpq-fe.h:

somehow disappeared the line

#define DefaultOption ""

now compilation stops with an error complainig an
unknown DefaultOption (970508).


2. Same patch as I sent already twice, but it never made it
  into the source tree:  there is no default value for
  AuthType and Password. This way any libpq-application
  (i.e. perl-scripts) which use the function PQconnectdb
  will break with PostgreSQL-6.1. The patch simply uses
  an empty string as default value.
1997-05-09 03:28:54 +00:00
Marc G. Fournier 6ef382c621 From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] Patches for boolean, timespan and reltime regression tests.

Hi All,

Here are a couple of patches to the regression tests to introduce
some specific ordering to the results.

I've only made changes to the queries that were exhibiting differences
on my regression runs.

This will also have the side effect of testing the ordering code for
the boolean and some of the time types.
1997-05-09 03:26:56 +00:00
Bruce Momjian 91f4df2f2c Fix typechecking problem pointed out by Thomas. 1997-05-08 02:45:53 +00:00
Bruce Momjian ffb38bd3ae Update for bsdi 1997-05-08 02:30:23 +00:00
Marc G. Fournier 217e50d73c From: David Friend <dfriend@atlsci.atlsci.com>
Subject: [PATCHES] New INSTALL file.

I have created a much more comprehensive version of the
/usr/src/pgsql/INSTALL file.  It should replace the current 970428 version
of this file.
1997-05-07 03:15:36 +00:00
Marc G. Fournier 8217202134 From: "Martin J. Laubach" <mjl@CSlab.tuwien.ac.at>
Subject: [PATCHES] libpq SET var TO patch

  One last, I hope. This one corrects a bogus format string, and
actually sends the contents of PG_DATESTYLE to the backend. That
means, you can do a setenv PG_DATESTYLE 'iso', and your libpq
will pick that up and tell the backend.
1997-05-07 03:13:50 +00:00
Marc G. Fournier 9f2d714620 From: "Paul M. Aoki" <aoki@CS.Berkeley.EDU>
Subject: [PATCHES] port patch: ultrix4

ultrix4 doesn't compile without this.  this also fixes a problem
with dynamic loading (ultrix relocatable objects must be loaded
with -G 0).
1997-05-07 03:12:46 +00:00
Marc G. Fournier a5d7eb90a8 From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] Three small patches.

Hi,

Here are 3 small patches to the postgreSQL source sup'd on
the 6th May 1997.

The 1st 2 fix the shell backslash "c" handling used to suppress
the newline on some unix shells. (The \c needs to be inside quote.)

The 3rd may or may not be the correct way to fix the missing
define of INDEX_MAX_KEYS in pg_dump.h
1997-05-07 02:59:59 +00:00
Marc G. Fournier 505a4709e2 From: Erich Stamberger <eberger@gewi.kfunigraz.ac.at>
Subject: [PATCHES] oracle_compat functions core dumping on NULL-fields
1997-05-07 02:46:45 +00:00
Thomas G. Lockhart d464e31593 Remove valid pointer checks for returns from palloc() since palloc() will not
return if storage is not allocated. Ref: Vadim 97/05/01
1997-05-06 07:27:51 +00:00
Thomas G. Lockhart 36d18351aa Change dummy array dimensions from [0] to [1] to keep non-gcc compilers happy.
No real change in the support code is required since the actual size
 of the structures is calculated using offsetof() rather than sizeof().
1997-05-06 07:24:42 +00:00
Thomas G. Lockhart 6e27af13eb Rename LOread() and LOwrite() to loread() and lowrite() to allow use by
case-insensitive SQL parser.
1997-05-06 07:20:53 +00:00
Thomas G. Lockhart ef2821d0d6 Change LOread() and LOwrite() to loread() and lowrite() to allow use
with case-insensitive SQL parser.
1997-05-06 07:19:04 +00:00
Thomas G. Lockhart fad56c5211 Change LOread() and LOwrite() to loread() and lowrite() to allow use
by case-insensitive SQL parser.
1997-05-06 07:16:21 +00:00
Thomas G. Lockhart 94123219bf Rename LOread() and LOwrite() to be lower case to allow use
in case-insensitive SQL. Define LOread() and LOwrite() as macros
 to avoid having to update calls everywhere.
1997-05-06 07:14:34 +00:00
Vadim B. Mikheev a65dd5290e 1. Multi-column indices support.
2. Fix for function indices with more than 1 attrs.
1997-05-06 05:20:21 +00:00
Vadim B. Mikheev 13f41aa90b mdcreate():
fd = FileNameOpenFile(path, O_RDWR|O_CREAT|O_EXCL, 0600);

    /*
     *  If the file already exists and is empty, we pretend that the
     *  create succeeded.  During bootstrap processing, we skip that check,
     *  because pg_time, pg_variable, and pg_log get created before their
     *  .bki file entries are processed.
     *
>    *  As the result of this pretence it was possible to have in
>    *  pg_class > 1 records with the same relname. Actually, it
>    *  should be fixed in upper levels, too, but... -  vadim 05/06/97
>    */
1997-05-06 02:03:20 +00:00
Vadim B. Mikheev b45128f1c3 Kill re-incarnated bug arround
Assert ( --Vnpages > 0 );
	and
Assert ( --Fnpages > 0 );
1997-05-05 10:01:02 +00:00
Vadim B. Mikheev 3e1933bc05 There is no more _CWD_ tag in sources... 1997-05-05 06:53:36 +00:00
Vadim B. Mikheev 7cbfb19c46 WARN:parser: parser error ...
changed to
WARN:parser: syntax error ...
1997-05-05 06:50:28 +00:00
Vadim B. Mikheev 62d1d23b6b If SELECT uses index (btree) then ordered results are returned. 1997-05-05 06:47:47 +00:00
Vadim B. Mikheev fb100e6bf2 There is no partial index onek2_u1_prtl in tests... 1997-05-05 06:43:59 +00:00
Vadim B. Mikheev c3b51e0d67 Bug: backend crashes in btbeginscan()->btrescan()->_bt_orderkeys()
when btree used in innerscan with run-time key which value
passed by pointer.

Fix: keys ordering stuff moved to _bt_first().

Pointed by Thomas Lockhart.
1997-05-05 03:41:19 +00:00
Thomas G. Lockhart 917abdd140 Add substitution from output/.. to input/.. to match templates from inputs. 1997-05-02 13:43:14 +00:00
Thomas G. Lockhart 50f058e26f Update to work with new regression tests and directory structure. 1997-05-02 13:13:44 +00:00
Thomas G. Lockhart f550efa237 New test data for aggregate functions. 1997-05-02 13:08:11 +00:00
Vadim B. Mikheev fe91ceb62b Fix old bug in _hash_first() for scan without keys:
if 1st bucket chain is empty then need to continue scan in the rest buckets.
1997-04-30 06:31:16 +00:00
Vadim B. Mikheev 3055eeff93 More informative NOTICEs in tuple checks. 1997-04-30 03:05:43 +00:00
Edmund Mergl 0aba92a2c5 creation for postgresql-6.1 1997-04-29 19:37:10 +00:00
Thomas G. Lockhart a2fd844c3b Reorder tests and move aggregate table data to data/. 1997-04-29 14:29:16 +00:00
Thomas G. Lockhart 1594bf2a93 Added initial set of expected outputs for new regression testing.
Modified a few tests to match results on RedHat Linux/gcc for v6.1beta.
1997-04-29 14:23:51 +00:00
Vadim B. Mikheev de97e7fae8 SET geqo TO ON|OFF 1997-04-29 04:38:58 +00:00
Vadim B. Mikheev a4792bd3d6 #ifdef GEQO
bool _use_geqo_ = true;
#else
bool _use_geqo_ = false;
#endif

_use_geqo_ is settable via SET var TO ...
1997-04-29 04:37:22 +00:00
Vadim B. Mikheev a1fbd470a9 Fix GroupBy: enable functions over aggregates and GroupBy-ed fields
in target list.
1997-04-29 04:32:50 +00:00
Marc G. Fournier f4279c46e7 Fix configure so that installbsd gets -c also
From: Lee Roth <roth@tpusa.com>
1997-04-28 22:40:35 +00:00
Marc G. Fournier 81acad4932 Add a netbsd template file and update linux-elf and .similar 1997-04-28 16:19:50 +00:00
Marc G. Fournier d938b755dc From: "D'Arcy J.M. Cain" <darcy@druid.net>
Subject: [HACKERS] Inputting money

I notice that I have to put single quotes around money amounts if there
is a decimal point in the value.  I appears to be happening because there
is something changing things like "123.45" to "123.450000" and the code
has a problem with that.  There may be a better way to fix this but here
is a simple change to cash.c that lets it accept trailing zeroes.
1997-04-28 16:15:13 +00:00
Thomas G. Lockhart 36712e8808 Provide template for the misc tests which contain path names. 1997-04-27 19:28:23 +00:00
Thomas G. Lockhart 9cdc80899a Fix path name templates. 1997-04-27 19:27:34 +00:00
Thomas G. Lockhart ff5edbd9e6 Update SQL query results for lists of operators and functions.
Add a little info on count().
1997-04-27 19:26:24 +00:00
Thomas G. Lockhart 0a95a17da2 Change mixed-case routines to lower-case for case-insensitive SQL.
Add mixed-case #define synonyms to avoid changing more source code.
Add comparison operators for boolean.
Add aggregate min() and max() for datetime and timespan.
1997-04-27 19:24:16 +00:00
Thomas G. Lockhart 1d1c9ff211 Change mixed-case routines to lower-case in pg_proc.h
Add comparison operators for boolean.
Add aggregate min() and max() for datetime and timespan.
Fix duplicate OID in pg_proc.h
1997-04-27 19:22:45 +00:00
Thomas G. Lockhart d831e9ce19 Change mixed-case routines to lower-case if referenced in pg_proc.h 1997-04-27 19:21:06 +00:00
Thomas G. Lockhart 812d5c9b68 Change mixed-case routines to lower-case if referenced in pg_proc.h
Add comparison operators to boolean and smaller/larger operators to datetime
and timespan. Fix int4 overflow math problem in timespan comparison operators.
1997-04-27 19:20:16 +00:00
Thomas G. Lockhart ee2f8e0472 Modify references to function manager to use lower-case calls. 1997-04-27 19:16:44 +00:00
Marc G. Fournier 65973e3f35 From: Keith Parks <emkxp01@mtcc.demon.co.uk>
Subject: [PATCHES] to make regress.sh shell friendly to echo.

Hi,

I needed to make the following change to regress.sh to make it more
shell friendly.

The Solaris /bin/sh, and others, use \c to supress the newline.
1997-04-27 18:55:37 +00:00