Bruce Momjian
4a5b781d71
Break parser functions into smaller files, group together.
1997-11-25 22:07:18 +00:00
Bruce Momjian
3aff4011c7
Remove gram problems with archive.
1997-11-24 16:55:22 +00:00
Bruce Momjian
49656346b8
Move dbcommands.c to commands/. It should not be in the parser directory.
1997-11-24 05:32:56 +00:00
Bruce Momjian
36e3df0767
Move dbcommands.c to commands/. It should not be in the parser directory.
1997-11-24 05:21:03 +00:00
Bruce Momjian
f7f2e18f8e
Remove tqual.h includes not needed.
1997-11-24 05:09:50 +00:00
Bruce Momjian
3fa2bb316c
Remove archive stuff.
1997-11-21 18:12:58 +00:00
Bruce Momjian
e9e1ff226f
Remove all time travel stuff. Small parser cleanup.
1997-11-20 23:24:03 +00:00
Bruce Momjian
d0471244e6
Remove 16 char limit on system table/index names. Rename system indexes.
1997-11-17 16:59:36 +00:00
Thomas G. Lockhart
4b19101fc3
Update UNION and subselect syntax.
...
Support SQL92 syntax for type coersion of strings (type 'typeval').
Example: "DATETIME 'now'". This works only for string constants and can
not replace the CAST and ::type syntax which behave identically in this
context.
1997-11-17 16:37:24 +00:00
Thomas G. Lockhart
6df962668a
Update generated source for scan.l.
1997-11-17 16:33:21 +00:00
Thomas G. Lockhart
3d4d1e14f8
Implement SQL92 binary and hexadecimal string decoding (b'10' and x'1F').
...
Check decoding of integer in x - y syntax (already done for most ints).
1997-11-17 16:31:39 +00:00
Bruce Momjian
1c32d285a6
Remove pg_magic, defaults, server, hosts, and demon tables. unused.
1997-11-15 20:58:05 +00:00
Thomas G. Lockhart
0f2189efff
Include flex output in the standard distribution to fix problems with
...
old AT&T lexers and exclusive states (Solaris has trouble and probably
others).
1997-11-14 15:50:22 +00:00
Thomas G. Lockhart
6eaafef1df
Supress cleaning scan.c since we will try to include it in the distribution.
...
This should help Solaris and (presumably) other distributions with
old AT&T-descended lex programs which can't handle "exclusive states".
1997-11-14 15:48:19 +00:00
Thomas G. Lockhart
97d2b92384
Add flag to supress one compiler warning regarding unused "unput" function
...
in flex-specific code.
1997-11-14 15:43:27 +00:00
Bruce Momjian
430169a5ea
FIx for indexing regex stuff. Change rowoid to objoid.
1997-11-14 06:09:07 +00:00
Bruce Momjian
ea4223c45f
FIx for indexing regex stuff. Change rowoid to objoid.
1997-11-14 05:57:46 +00:00
Thomas G. Lockhart
25e950fca4
Change messages regarding "TimeRange" to say that time travel is no longer
...
available.
Remove lots of #ifdef'd debugging print statements.
1997-11-10 15:22:36 +00:00
Thomas G. Lockhart
ced2ee8210
Clean up path handling esp. when interpreting environment variables.
...
Remove unused old code.
1997-11-10 15:17:44 +00:00
Thomas G. Lockhart
acc2843025
Implement CREATE DATABASE/WITH LOCATION=.
...
Implement SET keyword = DEFAULT and SET TIME ZONE DEFAULT.
Re-enable JOIN= option in CREATE OPERATOR statement (damaged for v6.2).
Allow more SQL and/or Postgres reserved words as column identifiers
or, if there are shift/reduce problems, at least as column labels.
1997-11-07 07:02:10 +00:00
Thomas G. Lockhart
7d1f2f8a27
Support alternate database locations.
1997-11-07 06:38:51 +00:00
Vadim B. Mikheev
32cd09ac6d
Good Bye, Time Travel!
1997-11-02 15:27:14 +00:00
Bruce Momjian
1e7ba76e43
Indexes for LIKE and ~, !~ operations.
1997-10-31 00:50:39 +00:00
Thomas G. Lockhart
770352d279
Add support for SQL92 delimited identifiers.
...
Add support for SQL3 IS TRUE and IS FALSE.
Augment support for SQL92 SET TIME ZONE...
1997-10-30 16:39:27 +00:00
Thomas G. Lockhart
0a9be2db9b
Add support for delimited identifiers. Include new exclusive state "xd".
...
Remove unused ScanString variable and code.
1997-10-30 16:36:39 +00:00
Thomas G. Lockhart
0175759e17
Fix up elog messages for consistant usage of quotes around arguments.
1997-10-30 16:34:22 +00:00
Bruce Momjian
80440a51fa
Fix for international identifiers, from Tatsuo Ishii
1997-10-30 15:28:25 +00:00
Bruce Momjian
d48006180c
Generate error on large integer.
1997-10-30 01:55:49 +00:00
Vadim B. Mikheev
7bff4c5078
Now we are able to CREATE PROCEDURAL LANGUAGE (Thanks, Jan).
1997-10-28 15:11:45 +00:00
Thomas G. Lockhart
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
Thomas G. Lockhart
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
Bruce Momjian
f3af1368bd
Rename strNcpy to StrNCpy, and change third parameter.
1997-10-25 01:10:58 +00:00
Vadim B. Mikheev
9b10d6ffda
Ignore copies of columns specified in ORDER/GROUP BY
1997-10-16 06:58:38 +00:00
Thomas G. Lockhart
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
Vadim B. Mikheev
defb10a450
DEFAULT is handled by analyze.c now.
1997-10-12 07:09:20 +00:00
Thomas G. Lockhart
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
Thomas G. Lockhart
0f66d799a3
Allow both TIME and TYPE as column and table names.
1997-10-09 05:35:30 +00:00
Thomas G. Lockhart
f54cc390e1
Allow TIME in column and table names (SQL/92 non-reserved word).
1997-10-09 05:00:54 +00:00
Vadim B. Mikheev
5a447b4a26
MOVE implementation.
1997-09-29 05:59:16 +00:00
Thomas G. Lockhart
b105324f7e
Fix SUBSTRING(str FROM int TO int) parsing.
1997-09-26 15:09:11 +00:00
Thomas G. Lockhart
5004b99e92
Tatsuo's patch to fix alignment problems in structure for RISC machines.
1997-09-25 14:11:42 +00:00
Thomas G. Lockhart
e008c68408
One more change to recover v6.1.1 escaped-text input behavior.
...
Should be changed for v6.3!
1997-09-25 14:10:23 +00:00
Thomas G. Lockhart
16d65f5c25
Add SQL/92 "constants" current_date, current_time, and current_timestamp.
...
Add SQL/92 types decimal and numeric (temporary for syntax support).
These types need more support in the backend to be really implemented,
and the parser will need to be changed at that time.
Adjust limits on precision parameters for FLOAT(p) to match IEEE-compliant
arithmetic. Perhaps these limits should be processor-specific or obtained
from system include files instead.
1997-09-24 17:53:53 +00:00
Thomas G. Lockhart
ba8763c500
Add SQL/92 types decimal and numeric.
...
Add SQL/92 "constants" current_date, current_time, and current_timestamp.
1997-09-24 17:49:56 +00:00
Thomas G. Lockhart
53ad0aa262
Restore proper behavior for escaped quotes and for escaped literals
...
like newline inside quoted strings.
1997-09-24 17:48:25 +00:00
Vadim B. Mikheev
f79b7a56b4
Allow use functions with no arguments in DEFAULT
...
Allow use IDENT as arguments of trigger functions
1997-09-24 08:31:04 +00:00
Thomas G. Lockhart
3bb89a27ee
Add support for FLOAT(p) SQL/92 data type.
...
Allow ALTER TABLE ADD ( column ) syntax.
1997-09-20 16:11:44 +00:00
Bruce Momjian
3f365ba0fc
Inline memset() as MemSet().
1997-09-18 20:22:58 +00:00
Vadim B. Mikheev
4948a51d74
Convert sequence names tolower.
1997-09-18 14:32:15 +00:00
Thomas G. Lockhart
c407a38742
Add syntax and warnings for unsupported ALTER TABLE commands
...
including DROP COLUMN, SET CONSTRAINT, etc.
1997-09-18 03:46:18 +00:00