Michael Meskes
2fabb99388
Fixed parser bug concerning octal numbers in single quotes.
2002-06-17 13:23:27 +00:00
Michael Meskes
0f865e17e2
Applied Lee Kindness' patch to fix one of memory allocation with floating point numbers.
2002-06-12 12:06:53 +00:00
Jan Wieck
469cb65aca
Katherine Ward wrote:
...
> Changes to avoid collisions with WIN32 & MFC names...
> 1. Renamed:
> a. PROC => PGPROC
> b. GetUserName() => GetUserNameFromId()
> c. GetCurrentTime() => GetCurrentDateTime()
> d. IGNORE => IGNORE_DTF in include/utils/datetime.h & utils/adt/datetim
>
> 2. Added _P to some lex/yacc tokens:
> CONST, CHAR, DELETE, FLOAT, GROUP, IN, OUT
Jan
2002-06-11 13:40:53 +00:00
Michael Meskes
7f660adeb1
- Fixed some parser bugs.
...
- Removed some simple rules to work arounf bison limit for now.
- Update c_keywords.c to reflect changes in keywords.c.
2002-05-20 09:29:41 +00:00
Michael Meskes
f35ced3de9
- Fixed reduce/reduce conflict in parser.
...
- Synced preproc.y with gram.y.
- Synced pgc.l with scan.l.
- Synced keywords.c.
2002-05-19 20:00:53 +00:00
Michael Meskes
c8996f9c6b
- Synced yet again.
...
- Fixed a typo in a comment printed by ecpg.
2002-04-28 17:20:03 +00:00
Michael Meskes
75c33220ad
Synced preproc.y and keywords.c.
2002-04-22 18:54:43 +00:00
Thomas G. Lockhart
3fab49325d
Include stdio.h and stdlib.h for completeness.
2002-04-21 19:51:44 +00:00
Peter Eisentraut
ff4281472a
Add missing include.
2002-04-20 03:46:16 +00:00
Michael Meskes
cc592ed8ea
Fixed typo in preproc/type.h
2002-04-16 07:03:56 +00:00
Michael Meskes
70fb71f487
- Synced preproc.y with gram.y
...
- Fixed one bug in structure handling resulting in using sizeof indicator instead of variable.
2002-04-14 08:59:16 +00:00
Bruce Momjian
811f7df274
When a macro is replaced by the preprocessor, pgc.l reaches a end of
...
file, which is not the actual end of the file. One side effect of that
is that if you are i n a ifdef block, you get a wrong error telling you
that a endif is missing.
This patch corrects pgc.l and also adds a test of this problem to
test1.pgc. To convince you apply the patch to test1.pgc first then try
to compile the test the n apply the patch to pgc.l.
The patch moves the test of the scope of an ifdef block to the end of
the file b eeing parsed, including all includes files, ... .
Nicolas Bazin
2002-04-05 11:39:47 +00:00
Tom Lane
5eed835b9a
Indenting #if commands is not portable, is it?
2002-03-24 18:22:21 +00:00
Tom Lane
6137ed1b59
Fix minor syntax error.
2002-03-21 18:28:07 +00:00
Michael Meskes
73b92d10c6
Added typedef patches and a new option '-c' to automatically create C typedefs from SQL ones.
2002-03-21 09:42:52 +00:00
Michael Meskes
8e9b215fdf
Just one more test case.
2002-03-20 21:00:24 +00:00
Bruce Momjian
f5810bb8a5
Add missing trailing semicolons to ecpg rules.
...
Neil Conway
2002-03-19 12:56:38 +00:00
Bruce Momjian
efd45bc68f
Manually clean up indenting of ecpg lex/yacc files, OK'ed by Michael
...
Meskes. These files are not touched by pgindent so this has to be
manually done.
2002-03-15 21:46:59 +00:00
Michael Meskes
9f9e3c9803
Changed the version numbers, but did not commit the Makefiles.
2002-03-11 12:56:02 +00:00
Michael Meskes
7f7fb4e64c
Fixed two bugs in define command in pgc.l
2002-03-10 12:09:54 +00:00
Bruce Momjian
ee27436f6c
Disable brackets in multi-statement rules, as discussed.
2002-03-10 06:00:15 +00:00
Michael Meskes
5ca7c8e314
Synced parser with backend.
2002-03-06 10:10:52 +00:00
Bruce Momjian
92288a1cf9
Change made to elog:
...
o Change all current CVS messages of NOTICE to WARNING. We were going
to do this just before 7.3 beta but it has to be done now, as you will
see below.
o Change current INFO messages that should be controlled by
client_min_messages to NOTICE.
o Force remaining INFO messages, like from EXPLAIN, VACUUM VERBOSE, etc.
to always go to the client.
o Remove INFO from the client_min_messages options and add NOTICE.
Seems we do need three non-ERROR elog levels to handle the various
behaviors we need for these messages.
Regression passed.
2002-03-06 06:10:59 +00:00
Peter Eisentraut
0055a39390
Add -Wno-error to CFLAGS, so the rest of the tree can compile with
...
-Werror.
2002-02-23 04:16:04 +00:00
Peter Eisentraut
673b48becb
Remove warning about automatic inclusion of sqlca.
2002-02-15 17:46:57 +00:00
Michael Meskes
cb8961ab47
Added patch to temporarily disable locale for descriptors too (Christof)
2002-01-23 16:34:06 +00:00
Michael Meskes
2ab3a88879
Accept subsequent commits. This should have been just a warning anyway. I
...
cannot see a reason why it should be an error.
2002-01-18 15:51:00 +00:00
Tom Lane
eab6776358
Ensure that ecpg/test is cleaned by higher-level 'make clean'.
2002-01-14 17:49:56 +00:00
Michael Meskes
7138a1e5fc
- Fixed variable handling for struct members.
...
- Removed check for array input. An attribut might store the
complete array.
2002-01-13 08:52:09 +00:00
Michael Meskes
051a4f233f
Added Christof's fixes.
2002-01-11 14:43:11 +00:00
Michael Meskes
7955f98774
Include sqlca.h automatically.
2002-01-10 10:42:54 +00:00
Tom Lane
92a2598f97
The result of getopt() should be compared to -1, not EOF, per
...
pgsql-hackers discussion of this date.
2002-01-10 01:11:45 +00:00
Tom Lane
d079c419d2
Fix include paths for case of VPATH build.
2002-01-09 00:06:42 +00:00
Tom Lane
a34f313223
Fix copy-and-paste mistake exposed by gcc warning.
2002-01-08 23:34:47 +00:00
Peter Eisentraut
154ccb6040
Revert last change (CFLAGS+=-g). Probably was a mistake...
2002-01-08 20:41:28 +00:00
Tom Lane
61dd8b6dc4
Remove shift/reduce conflicts introduced by last change.
2002-01-08 19:02:51 +00:00
Michael Meskes
1e15f9e119
Fixed array pointers, no longer using void * in arithmetics.
2002-01-08 14:25:06 +00:00
Michael Meskes
54452833ef
Fixed parser to accept initializing expressions starting with "(".
2002-01-07 16:25:45 +00:00
Peter Eisentraut
731204e090
Editorial review
2002-01-07 02:29:15 +00:00
Michael Meskes
988fdce5d1
- Removed space_or_nl and line_end from pgc.l.
...
- Fixed several bugs concerning arrays of structs including a memory
allocation bug.
2001-12-23 12:17:41 +00:00
Michael Meskes
0a7a8256b8
committed the missing files
2001-12-10 14:55:47 +00:00
Michael Meskes
a4420c4970
Fixed several bugs concerning indicators and added error messages instead of segfaults.
2001-12-09 15:27:49 +00:00
Michael Meskes
d6fbb10556
Fix ecpg to allow pointer to structs.
2001-12-08 20:43:35 +00:00
Michael Meskes
9992f2b104
- Removed debug message from preproc.y.
...
- Fixed some bugs in exec sql var and exec sql type command.
2001-12-06 14:46:20 +00:00
Michael Meskes
ee14711ce8
- Fixed variable handling in AT statement.
...
- Fixed bug that caused segfault when given incorrect DB name.
- Fixed bug in ecpglib causing indicator to list the size of the
variable instead of the size of the data.
2001-12-05 15:32:07 +00:00
Michael Meskes
388008cdd7
Fixed dumping of structs without indicators.
2001-12-04 12:33:15 +00:00
Tom Lane
6c134eb6f1
Spell 'precedes', 'preceding' correctly in various places.
2001-11-21 22:57:01 +00:00
Bruce Momjian
16cb347eee
// -> /* */, per Tatsuo.
2001-11-21 05:03:16 +00:00
Tom Lane
100e7f0c9d
Once again, Michael has overwritten someone else's patch ...
2001-11-16 17:01:48 +00:00
Peter Eisentraut
aff53b27f0
Make the yacc rules safe for parallel make. See discussion on pgsql-patches
...
and comment in src/backend/parser/Makefile for the technical details.
2001-11-16 16:32:33 +00:00