1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-22 02:52:08 +03:00
Commit Graph

36069 Commits

Author SHA1 Message Date
f10b639237 Add SQL92 "constants" CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP,
CURRENT_USER.
Add syntax for primary and foreign keys.
Change optional syntax in CREATE INDEX to avoid parsing conflict with
 TIMESTAMP WITH TIME ZONE data type (use USING <class> rather than WITH...).
Decouple various categories of data type syntax to allow the most possible
 non-ambiguous extensions to SQL92 for column names and labels. This should
 make the parser a bit more understandable, or at least easier to find
 where and how the data types are handled.
Support syntax for IN and EXISTS clauses with subselects.
Support SQL92 syntax for IS TRUE/IS FALSE/IS NOT TRUE/IS NOT FALSE.
1997-10-25 05:56:41 +00:00
27d0d1a159 Add SQL92 reserved words for primary and foreign keys.
Add keywords for national character types.
Shorted date/time keyword token names for convenience.
Add SQL3 reserved words TRUE and FALSE.
1997-10-25 05:44:11 +00:00
60fee0d67c Add conversion routines for int2, int4, and oid to and from text.
Change a few routine names to ensure <= 16 characters in name
 to fit correctly into pg_proc.
1997-10-25 05:40:43 +00:00
7f06f34636 Change column number constant to reflect change in column name
from "action" to "ev_action".
1997-10-25 05:38:52 +00:00
e9bb359d3e Change embedded query to reflect column name change from "action"
to "ev_action".
1997-10-25 05:37:07 +00:00
c5173fc58c Rename "TYPE" parser keyword token from P_TYPE to TYPE_P to conform
to changes in parser.
1997-10-25 05:34:07 +00:00
d8e260646e Reassign cash/float4 arithmetic operator oids to avoid duplicate oids. 1997-10-25 05:31:55 +00:00
a9a91b54c6 Add conversion functions for int2, int4, oid to and from text.
Shorten a few routine names to <= 16 characters long to fit in table.
1997-10-25 05:29:48 +00:00
b5f582b7ab Rename column to avoid "action" SQL92 reserved word. 1997-10-25 05:25:10 +00:00
4fa25b8c99 Shorten routine names to <= 16 characters to fit in pg_proc table. 1997-10-25 05:22:58 +00:00
c0087c9faf Add conversion routines for oid to and from text. 1997-10-25 05:21:54 +00:00
08b1a09ee0 Clean up comments. 1997-10-25 05:21:10 +00:00
317acd0818 Add conversions for int2 and int4 to and from text. 1997-10-25 05:19:22 +00:00
2c1557a2ff Fix occasional uninitialized variable fractional seconds
in DecodeTimeOnly(). Only present when seconds are not specified
 for input.
1997-10-25 05:18:17 +00:00
9f99e4c6b6 Add conversion from datetime to time data type.
Rename date+time conversion to datetime to ensure less than 16 characters
 in routine name (required to fit in pg_proc table).
1997-10-25 05:16:09 +00:00
0d6facbad6 Modify one last line to complete changes for StrNCpy() macro addition.
Before, char16 was missing last character for output.
1997-10-25 05:12:38 +00:00
4677f0a255 Add debugging statement enabled by CASHDEBUG symbol definition. 1997-10-25 05:11:06 +00:00
3eb1bc67b1 Check explicitly for valid input strings for both TRUE and FALSE.
Allow true/false, yes/no, 1/0. Throw elog warning if anything else.
Allow shorter strings, so "t", "tr", "tru" and "true" match "true".
Old behavior accepted anything starting with "t" as TRUE,
 everything else as FALSE.
1997-10-25 05:09:58 +00:00
789d075021 StrNCpy cleanup. 1997-10-25 02:14:22 +00:00
f3af1368bd Rename strNcpy to StrNCpy, and change third parameter. 1997-10-25 01:10:58 +00:00
8b53f6e5b6 Fix alignment of source. 1997-10-24 15:51:37 +00:00
eca199d7b0 Debug stuff added to BlowawayRelationBuffers(). 1997-10-22 19:04:43 +00:00
bd305f3f06 Fix multi-column index scans in internal pages. 1997-10-22 19:02:52 +00:00
8f4559d0e1 Fix \. in manual page. 1997-10-22 02:08:38 +00:00
8a1a39c390 Update for 6.2.1 1997-10-18 16:59:06 +00:00
9620c7566f DEFAULT fixed 1997-10-17 11:35:33 +00:00
fcfb4d1df6 Changes due to fixed DEFAULT behaviour. 1997-10-17 09:59:09 +00:00
962c8bd66d Accept additional values for TRUE: y, Y, 1.
Leave all other input values to return FALSE.
In next version, do more checking for valid inputs for both TRUE and FALSE.
1997-10-17 05:38:32 +00:00
9c800b8e48 Fix delta time decoding for 12 AM/PM. 1997-10-17 05:36:01 +00:00
b268758a3b New function PQcmdTuples. 1997-10-17 02:11:49 +00:00
ed966c4617 Updates for 6.2.1. Update pgaccess to 0.61. Add to HISTORY. 1997-10-16 17:32:07 +00:00
05a436b327 DROP TRIGGER. 1997-10-16 06:59:23 +00:00
9b10d6ffda Ignore copies of columns specified in ORDER/GROUP BY 1997-10-16 06:58:38 +00:00
a805635d21 Cleanups for 6.2.1. 1997-10-16 04:14:30 +00:00
78351f422b Fix for backward cursors with ORDER BY. 1997-10-15 06:36:36 +00:00
b0df88745d Include SQL/92 string continuation across newlines.
Allows the following example:
  select 'first string'
  '---'
  'last string';
 to be output as 'first string---last string'.
1997-10-15 01:12:21 +00:00
ba2358896a Fix final function for cash avg() aggregate.
Wrong function referenced in previous versions.
1997-10-15 01:08:25 +00:00
14f81d8d34 Decrement relation reference count incremented in
RelationIdCacheGetRelation() to flush relations from cache
in commit time.
1997-10-12 07:12:03 +00:00
defb10a450 DEFAULT is handled by analyze.c now. 1997-10-12 07:09:20 +00:00
c927f80fe4 Use P_TYPE rather than TYPE_P (which will be the name in the next release). 1997-10-09 05:43:59 +00:00
0f66d799a3 Allow both TIME and TYPE as column and table names. 1997-10-09 05:35:30 +00:00
070d494464 Clean up function declarations for the boolean type package
to use bool as the type for arguments and return values.
1997-10-09 05:07:25 +00:00
a21c3e353a Allow 't', 'T', and even/odd ASCII characters to denote true/false
rather than just 't' and 'T'.  This allows yes/no and 1/0
 to be interpreted as one might expect.
Clean up function declarations to use bool as the type for arguments
 and return values.
1997-10-09 05:06:12 +00:00
8fe55efd7b Support special values 'now', 'current', etc on output. 1997-10-09 05:02:17 +00:00
f54cc390e1 Allow TIME in column and table names (SQL/92 non-reserved word). 1997-10-09 05:00:54 +00:00
8bd813d6be Fix error in ordering of arguments. 1997-10-09 04:59:37 +00:00
577b0584aa Update to version 0.51. 1997-10-03 23:11:26 +00:00
f1bfc520c0 We never do remember to up the PG_VERSION number, do we? :( 1997-10-03 17:31:29 +00:00
4aab22fcda Update to 0.5. 1997-10-03 15:47:17 +00:00
83cd375cd2 Linux/alpha patch from Dan Maynard 1997-10-03 15:27:18 +00:00