summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg
AgeCommit message (Collapse)Author
2004-08-11Fix broken parsing of CREATE TABLE AS (looks like a mis-sync with mainTom Lane
parser).
2004-08-04Fix syntax error by adding a space.Bruce Momjian
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-13Cause libpq and ecpg libraries to be built as proper shared librariesTom Lane
(.dylib format) on Mac OS X, while not messing up loadable modules for the backend (which are the same kind of animal as a shared library on every other platform, but not here). Also get the naming convention to match OS X practice, viz libFOO.version.so not libFOO.so.version. In support of that last, refactor code in Makefile.shlib to make it easier to have platform-specific shlib naming conventions. This patch is loosely based on the Fink project's current postgresql.patch. Tested by yours truly on OS X 10.3.4; does anyone have 10.2.* to check it on?
2004-07-05Added free() calls against memory leak in interval.c.Michael Meskes
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-07-01Removed unused variable and added a typecast.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-28Arrays can be read as arrays or as character strings now.Michael Meskes
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-31Suppress compile warnings on machines where the INT64CONST() decorationTom Lane
is actually needed. Per Oliver Elphick.
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-26Recent commits added created files that weren't getting deleted byTom Lane
'make clean'.
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-25Add FRONTEND to ecpglib.Bruce Momjian
2004-05-25Add exec.c to ecpg library because path.c now uses it.Bruce Momjian
2004-05-24Remove a few $filter() calls that were not needed.Bruce Momjian
2004-05-21Handle inclusion of port modules 'correctly', viz the same way libpqTom Lane
does it. Fixes OS X, which needs path.c. It may be that Win32 needs some more port modules, but they are easily added.
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-21Add mention of why -lpgport is needed in ecpglib (dllwrap).Bruce Momjian
2004-05-21Add -lpgport to ecpglib link only on win32. Other platforms haveBruce Momjian
problems with it.
2004-05-21Revert addition of -lpgport, which breaks the build on platforms thatTom Lane
are sticky about non-PIC code in shared libraries. Windows will have to find another solution (probably similar to the way libpq does it).
2004-05-19Re-add elog() to exec.c, per Tom.Bruce Momjian
2004-05-19Win32 needs -lpgport for dll creation of ecpglib.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-15The "cvs add" of test_thread_implicit.pgc seems to have been missed,Bruce Momjian
i've attached this again. Additionally I include a small patch to remove mutex locking when a DEFAULT/NULL connection is being retrieved. This is consistent with libpq. Lee Kindness
2004-03-14Fix ecpg_sqlca_key_destructor to return void.Bruce Momjian
2004-03-14- Fixed Informix compat math functions to cope with the situationsMichael Meskes
where one argument takes the result. - Applied thread patches by Lee Kindness
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.