summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg/preproc
AgeCommit message (Collapse)Author
2004-08-11Fix broken parsing of CREATE TABLE AS (looks like a mis-sync with mainTom Lane
parser).
2004-07-26SQL defines are only used in SQL space in Informix mode.Michael Meskes
2004-07-20Synced parser and keyword list.Michael Meskes
Fixed handling of cyclic defines.
2004-07-05- Fixed indicator in SET DESCRIPTOR.Michael Meskes
- Added special handling of descriptor header information. - Some code cleanup.
2004-07-04Made sure SET DESCRIPTOR accepts all data types including constants.Michael Meskes
2004-06-30Added SET DESCRIPTOR command.Michael Meskes
Note that this still has some bugs. The functionality is there though, it's just a matter of fixing the bugs now. Cleaned up error handling in preprocessor.
2004-06-27- Only use typedefs inside their scope.Michael Meskes
- Variables that are out of scope, were not removed all the time. - Make a varchar NULL set everything to 0 when not using indicators. - Synced parser.
2004-06-20Synced parser and keyword list.Michael Meskes
2004-06-17Added patch by ISHIDA Akio to allow indicators in execute statements.Michael Meskes
2004-06-11ECPG preprocessor for PostgreSQL 7.4.1, 7.4.2 doubles const,Bruce Momjian
volatile, static, and register keywords before variables, declared as VARCHAR. Sergey N. Yatskevich
2004-06-10Attached is a patch that takes care of the PATHSEP issue. I made a moreBruce Momjian
extensive change then what was suggested. I found the file path.c that contained a lot of "Unix/Windows" agnostic functions so I added a function there instead and removed the PATHSEP declaration in exec.c altogether. All to keep things from scattering all over the code. I also took the liberty of changing the name of the functions "first_path_sep" and "last_path_sep". Where I come from (and I'm apparently not alone given the former macro name PATHSEP), they should be called "first_dir_sep" and "last_dir_sep". The new function I introduced, that actually finds path separators, is now the "first_path_sep". The patch contains changes on all affected places of course. I also changed the documentation on dynamic_library_path to reflect the chagnes. Thomas Hallgren
2004-05-30Use the new List API function names throughout the backend, and disable theNeil Conway
list compatibility API by default. While doing this, I decided to keep the llast() macro around and introduce llast_int() and llast_oid() variants.
2004-05-26This patch implement the TODO [ALTER DATABASE foo OWNER TO bar].Bruce Momjian
It was necessary to touch in grammar and create a new node to make home to the new syntax. The command is also supported in E CPG. Doc updates are attached too. Only superusers can change the owner of the database. New owners don't need any aditional privileges. Euler Taveira de Oliveira
2004-05-24Remove a few $filter() calls that were not needed.Bruce Momjian
2004-05-21- Fixed DEALLOCATE PREPARE to use correct function callMichael Meskes
- Made sure connect statement does not accept single char variable, but only strings.
2004-05-19Re-add elog() to exec.c, per Tom.Bruce Momjian
2004-05-18Move find_my_exec() way up into main.c so it is available to theBruce Momjian
timezone code and other places. Remove elog() calls from find_my_exec; do fprintf(stderr) instead. We can then remove the exec.c handling in the makefile because it doesn't have to be built to suppress elog calls.
2004-05-17Reorganize code to allow path-relative installs.Bruce Momjian
Create new get_* functions to access compiled-in paths and adjust if relative installs are to be used. Clean up substitute_libpath_macro() code.
2004-05-12Rename find_my_binary/find_other_binary toBruce Momjian
find_my_exec/find_other_exec(). Remove passing of progname to these functions as they can find that out from argv[0], which they already have. Make get_progname return const char *, and update all progname variables to be const char *.
2004-05-10- Argh, just another bug in adjust_informix.Michael Meskes
- Added "extern C" flags for C++ compiler. Hopefully I got that one right.
2004-05-07- Added additional test case.Michael Meskes
- Fixed bug that reversed string length in typedefs. - Added portability file to pgtypeslib.
2004-05-07Solve the 'Turkish problem' with undesirable locale behavior for caseTom Lane
conversion of basic ASCII letters. Remove all uses of strcasecmp and strncasecmp in favor of new functions pg_strcasecmp and pg_strncasecmp; remove most but not all direct uses of toupper and tolower in favor of pg_toupper and pg_tolower. These functions use the same notions of case folding already developed for identifier case conversion. I left the straight locale-based folding in place for situations where we are just manipulating user data and not trying to match it to built-in strings --- for example, the SQL upper() function is still locale dependent. Perhaps this will prove not to be what's wanted, but at the moment we can initdb and pass regression tests in Turkish locale.
2004-05-05- Fixed bug in adjust_informix that treated arrays as simple variables.Michael Meskes
- Synced parser again. - Synced lexer.
2004-04-30Minor adjustments to enable public-domain timezone library to be calledBruce Momjian
from our code.
2004-04-29Synced parser and keyword list.Michael Meskes
2004-04-26Add $(X) for cross-compiling. Seems the mingw compiler running onBruce Momjian
FreeBSD doesn't add .EXE to links. Michiel Ephraim
2004-04-25Make thread flags CFLAGS, not CPPFLAGS.Bruce Momjian
2004-04-23Add new auto-detection of thread flags.Bruce Momjian
Allow additional thread flags to be added via port templates. Change thread flag names to PTHREAD_CFLAGS and PTHREAD_LIBS to match new configure script.
2004-04-23Fixed memory misusage in variable handling.Michael Meskes
2004-03-29Fixed possible segfault in type.c (by Juergen Cappel)Michael Meskes
2004-03-04- Fixed segfault due to missing check for variable declaration.Michael Meskes
- Added check for multidimensional array usage.
2004-03-02Added partly missing VOLATILE keyword.Michael Meskes
2004-02-24Add %option nodefault to all our flex lexers. Fix a couple of rule gapsTom Lane
exposed thereby. AFAICT these would not lead to any worse problems than junk emitted on the backend's stdout, but we should have the option to catch possible worse errors in future.
2004-02-23Fixed incorrect output of indicator structs using the name of the data struct.Michael Meskes
2004-02-18Added missing rule for DOUBLE variables.Michael Meskes
2004-02-16- Cleaned up parser a little bit. It does not make sense to allow aMichael Meskes
typename to be typedef'ed that cannot be parsed as variable type. - Allowed some SQL keywords to be used as C variable names.
2004-02-15- Allowed some C keywords to be used as SQL column names.Michael Meskes
2004-02-15 - Added missing braces to array parsing.Michael Meskes
- Set ecpg version to 3.1.1. - Removed that old debugging output that I forgot the last time.
2004-01-28Fix typo.Tom Lane
2004-01-28Removed some debugging output.Michael Meskes
2004-01-28- Issue a warning if a cursor is declared but not opened.Michael Meskes
- Fixed prototype for ECPGprepared_statement to not moan about "const char" - Fixed parsing of nested structures. - Added option to parse header files.
2004-01-21Added WHENEVER NOT_FOUND to SELECT/INSERT/UPDATE/DELETE.Michael Meskes
2004-01-04Fixed bug in GRANT OPTION FOR parsing.Michael Meskes
2003-12-29Added missing whitespaces to array argument parsing.Michael Meskes
2003-12-24Fixed segfault in parsing of EXEC SQL SELECT * FROM foo() AS TBL( c int, i int);Michael Meskes
2003-12-18Move Informix compatibility include files out of the way. compatlib.hPeter Eisentraut
was integrated into ecpg_informix.h, the other ones go into their own subdirectory that is automatically considered by the embedded preprocessor when in Informix mode.
2003-12-17- Added just another patch by Dave that fixes a reversed order inMichael Meskes
variable listing for output variables in cursor definitions - Fixed incorrect if call in long=>numeric conversion.
2003-11-30Bump all version numbers and version stamps mentioned in RELEASE_CHANGES.Bruce Momjian
2003-11-29$Header: -> $PostgreSQL Changes ...PostgreSQL Daemon
2003-11-19Fixed typo in create schema parsing.Michael Meskes