- 07 Apr, 2000 1 commit
-
-
Thomas G. Lockhart authored
Add a random number generator and seed setter (random(), SET SEED) Fix up the interval*float8 math to carry partial months into the time field. Add float8*interval so we have symmetry in the available math. Fix the parser and define.c to accept SQL92 types as field arguments. Fix the parser to accept SQL92 types for CREATE TYPE, etc. This is necessary to allow... Bit/varbit support in contrib/bit cleaned up to compile and load cleanly. Still needs some work before final release. Implement the "SOME" keyword as a synonym for "ANY" per SQL92. Implement ascii(text), ichar(int4), repeat(text,int4) to help support the ODBC driver. Enable the TRUNCATE() function mapping in the ODBC driver.
-
- 31 Mar, 2000 1 commit
-
-
Tom Lane authored
from gcc. Which wasn't actually a code bug, but I don't like warnings.
-
- 30 Mar, 2000 1 commit
-
-
Thomas G. Lockhart authored
single integers, and lists of names, without surrounding them with quotes. Remove all tokens which are defined as operators from ColID and ColLabel to avoid precedence confusion. Thanks to Tom Lane for catching this.
-
- 27 Mar, 2000 1 commit
-
-
Thomas G. Lockhart authored
Move CREATE FUNCTION/WITH clause to end of statement to get around shift/reduce conflicts with type names containing "WITH". Add lots of tokens as allowed ColId's and/or ColLabel's, so this should be a complete set for the v7.0 release.
-
- 24 Mar, 2000 1 commit
-
-
Tom Lane authored
keys lists of Constraint nodes. This eliminates a type pun that would probably have caused trouble someday, and eliminates circular references in the parsetree that were causing trouble now. Also, change parser's uses of strcasecmp() to strcmp(). Since scan.l has downcased any unquoted identifier, it is never correct to check an identifier with strcasecmp() in the parser. For example, CREATE TABLE FOO (f1 int, UNIQUE("F1")); was accepted, which is wrong, and xlateSqlFunc did more than it should: select datetime(); ERROR: Function 'timestamp()' does not exist (good) select "DateTime"(); ERROR: Function 'timestamp()' does not exist (bad)
-
- 21 Mar, 2000 1 commit
-
-
Thomas G. Lockhart authored
is available yet. Remove redundant call to xlateSqlType() in the character type handling code.
-
- 20 Mar, 2000 2 commits
-
-
Tom Lane authored
-
Hiroshi Inoue authored
-
- 18 Mar, 2000 2 commits
-
-
Tom Lane authored
prefix operator :-(. Bad enough that we have no implementation of unary plus, but at least with this fix the grammar will take it.
-
Bruce Momjian authored
-
- 15 Mar, 2000 1 commit
-
-
Tom Lane authored
the pain of updating apps to 7.0. Should we also translate some of the 'datetime_foo' functions that exist in 6.* ?
-
- 14 Mar, 2000 1 commit
-
-
Thomas G. Lockhart authored
Implement TIME WITH TIME ZONE type (timetz internal type). Remap length() for character strings to CHAR_LENGTH() for SQL92 and to remove the ambiguity with geometric length() functions. Keep length() for character strings for backward compatibility. Shrink stored views by removing internal column name list from visible rte. Implement min(), max() for time and timetz data types. Implement conversion of TIME to INTERVAL. Implement abs(), mod(), fac() for the int8 data type. Rename some math functions to generic names: round(), sqrt(), cbrt(), pow(), etc. Rename NUMERIC power() function to pow(). Fix int2 factorial to calculate result in int4. Enhance the Oracle compatibility function translate() to work with string arguments (from Edwin Ramirez). Modify pg_proc system table to remove OID holes.
-
- 12 Mar, 2000 2 commits
-
-
Tom Lane authored
set of SQL-standard type names that we accept.
-
Tom Lane authored
gone, replaced by plain a_expr. The few places where we needed to distinguish NULL from a_expr are now handled by tests inside the actions rather than by separate productions. This allows us to accept queries like 'SELECT 1 + NULL' without requiring parentheses around the NULL.
-
- 01 Mar, 2000 1 commit
-
-
Tom Lane authored
as independent clauses in the grammar. analyze.c takes care of putting the data where it belongs and complaining about invalid combinations. Also, make TEMP (and TEMPORARY) non-reserved words.
-
- 26 Feb, 2000 1 commit
-
-
Tom Lane authored
refer to the single-byte char type. 7.0 was taking it as bpchar(1).
-
- 24 Feb, 2000 2 commits
-
-
Bruce Momjian authored
from previous release.
-
Tom Lane authored
and produce either FLOAT8 or NUMERIC output depending on whether the value fits in a float8 or not. This is almost back to the way the code was before I changed T_Float, but there is a critical difference: now, when a numeric constant doesn't fit in float8, it will be treated as type NUMERIC instead of type UNKNOWN.
-
- 22 Feb, 2000 1 commit
-
-
Tom Lane authored
failed to negate a negative value back to positive, so '- - 123.45' did the wrong thing.
-
- 21 Feb, 2000 1 commit
-
-
Tom Lane authored
integers) to be strings instead of 'double'. We convert from string form to internal representation only after type resolution has determined the correct type for the constant. This eliminates loss-of-precision worries and gets rid of the change in behavior seen at 17 digits with the previous kluge.
-
- 20 Feb, 2000 1 commit
-
-
Tom Lane authored
Revised code probably accepts some silly combinations, but that's better than not accepting valid ones.
-
- 19 Feb, 2000 2 commits
-
-
Tom Lane authored
compliance. Wish they were all that easy...
-
Thomas G. Lockhart authored
-
- 18 Feb, 2000 1 commit
-
-
Hiroshi Inoue authored
-
- 16 Feb, 2000 1 commit
-
-
Thomas G. Lockhart authored
Transform datetime and timespan into timestamp and interval. Deprecate datetime and timespan, though translate to new types in gram.y. Transform all datetime and timespan catalog entries into new types. Make "INTERVAL" reserved word allowed as a column identifier in gram.y. Remove dt.h, dt.c files, and retarget datetime.h, datetime.c as utility routines for all date/time types. date.{h,c} now deals with date, time types. timestamp.{h,c} now deals with timestamp, interval types. nabstime.{h,c} now deals with abstime, reltime, tinterval types. Make NUMERIC a known native type for purposes of type coersion. Not tested.
-
- 15 Feb, 2000 1 commit
-
-
Thomas G. Lockhart authored
Add "SESSION_USER" as SQL92 keyword; equivalent to CURRENT_USER for now. Implement column aliases (aka correlation names) and more join syntax. Fix up indenting and tabbing.
-
- 07 Feb, 2000 2 commits
-
-
Bruce Momjian authored
-
Jan Wieck authored
Jan
-
- 04 Feb, 2000 1 commit
-
-
Jan Wieck authored
Added constraint dumping capability to pg_dump (also from Stephan) Fixed DROP TABLE -> RelationBuildTriggers: 2 record(s) not found for rel error. Fixed little error in gram.y I made the last days. Jan
-
- 02 Feb, 2000 1 commit
-
-
Jan Wieck authored
actions performed by analyse.c when creating table constraints. Jan
-
- 29 Jan, 2000 1 commit
-
-
Peter Eisentraut authored
Initdb help correction Changed end/abort to commit/rollback and changed related notices Commented out way old printing functions in libpq Fixed a typo in alter table / alter column
-
- 27 Jan, 2000 1 commit
-
-
Tom Lane authored
SELECT DISTINCT ON (expr [, expr ...]) targetlist ... and there is a check to make sure that the user didn't specify an ORDER BY that's incompatible with the DISTINCT operation. Reimplement nodeUnique and nodeGroup to use the proper datatype-specific equality function for each column being compared --- they used to do bitwise comparisons or convert the data to text strings and strcmp(). (To add insult to injury, they'd look up the conversion functions once for each tuple...) Parse/plan representation of DISTINCT is now a list of SortClause nodes. initdb forced by querytree change...
-
- 26 Jan, 2000 1 commit
-
-
Bruce Momjian authored
* Portions Copyright (c) 1996-2000, PostgreSQL, Inc to all files copyright Regents of Berkeley. Man, that's a lot of files.
-
- 23 Jan, 2000 1 commit
-
-
Tatsuo Ishii authored
Since --with-mb has been removed from configure, previous messages were not appropriate.
-
- 22 Jan, 2000 1 commit
-
-
Peter Eisentraut authored
-
- 20 Jan, 2000 1 commit
-
-
Tom Lane authored
allows casts without specific length requirements to continue to work as they did before; that is, x::char will not truncate the value of x, whereas x::char(1) will. Likewise for NUMERIC precision/scale. The column length defaults of char(1) and numeric(30,6) are now inserted in analyze.c's processing of CREATE TABLE.
-
- 18 Jan, 2000 3 commits
-
-
Peter Eisentraut authored
-
Bruce Momjian authored
complete source checked out so I cannot commit it myself. Michael
-
Bruce Momjian authored
CONSTRAINT Oliver Elphick
-
- 17 Jan, 2000 1 commit
-
-
Tom Lane authored
SQL cast constructs can be performed during expression transformation instead of during parsing. This allows constructs like x::numeric(9,2) and x::int2::float8 to behave as one would expect.
-