summaryrefslogtreecommitdiff
path: root/src/interfaces/ecpg
AgeCommit message (Collapse)Author
2006-01-15When using GCC on AMD64 and PPC, ECPGget_variable() takes a va_list *, notNeil Conway
a va_list. Christof Petig's previous patch made this change, but neglected to update ecpglib/descriptor.c, resulting in a compiler warning (and a likely runtime crash) on AMD64 and PPC.
2005-12-06ecpg/pgtypeslib seems to need snprintf.c pulled in, too.Tom Lane
2005-12-06Make Win32 build use our port/snprintf.c routines, instead of dependingTom Lane
on libintl which may or may not provide what we need. Make a few marginal cleanups to ensure this works. Andrew Dunstan and Tom Lane.
2005-12-02Added special handling of CONNECTION variable that is used by ECPG instead ↵Michael Meskes
of given to the backend. I failed to notice that CONNECTION had become a keyword in 8.1.
2005-11-30- Made several variables "const char *" instead of "char *" as proposed by ↵Michael Meskes
Qingqing Zhou <zhouqq@cs.toronto.edu>. - Replaced all strdup() calls by ECPGstrdup().
2005-11-27Add missing semicolon. Recent versions of bison seem to choke on this,Tom Lane
per buildfarm report from platypus, even though older versions let it pass.
2005-11-22Re-run pgindent, fixing a problem where comment lines after a blankBruce Momjian
comment line where output as too long, and update typedefs for /lib directory. Also fix case where identifiers were used as variable names in the backend, but as typedefs in ecpg (favor the backend for indenting). Backpatch to 8.1.X.
2005-10-15Standard pgindent run for 8.1.Bruce Momjian
2005-10-14Allow times of 24:00:00 to match rounding behavior:Bruce Momjian
regression=# select '23:59:59.9'::time(0); time ---------- 24:00:00 (1 row) This is bad because: regression=# select '24:00:00'::time(0); ERROR: date/time field value out of range: "24:00:00" The last example now works.
2005-10-10<limits.h> is now needed here, for INT_MAX. Per Michael Fuhr.Tom Lane
2005-10-09Fix (hopefully for the last time) problems with datetime values displayingTom Lane
like '23:59:60' because of fractional-second roundoff problems. Trying to control this upstream of the actual display code was hopeless; the right way is to explicitly round fractional seconds in the display code and then refigure the results if the fraction rounds up to 1. Per bug #1927.
2005-10-08Add spacing around operators.Bruce Momjian
2005-10-07Minor parentheses cleanup.Bruce Momjian
2005-10-05Also synced the ecpg lexer with the backend lexer.Michael Meskes
2005-10-04Somehow I missed some parser changes, so this commit comes pretty late. I ↵Michael Meskes
just synced the parser of ecpg against the backend version, but still have to sync the lexer. Also I fixed a bug in a bug fix I committed a few weeks ago. he check for a varchar pointer was incomplete.
2005-09-24Clean up possibly-uninitialized-variable warnings reported by gcc 4.x.Tom Lane
2005-09-12Fixed transaction command handling to not ignore savepoints and to correctly ↵Michael Meskes
check for errors.
2005-08-29Fix misspelled error message.Tom Lane
2005-08-24 - Check for NULL before checking whether argument is an array.Michael Meskes
- Remove stary character from string quoting. - Fixed check to report missing varchar pointer implementation.
2005-08-22Back out incorrect use of E'' escape addition.Bruce Momjian
2005-07-22More removal of unneeded parentheses.Bruce Momjian
2005-07-22Update date/time comments.Bruce Momjian
2005-07-22Code spacing improvement, particularly *tm spacing.Bruce Momjian
2005-07-21More comment update of time macros.Bruce Momjian
2005-07-21Update DAYS_PER_MONTH comment.Bruce Momjian
Add SECS_PER_YEAR and MINS_PER_HOUR macros.
2005-07-21Add comment about void* use in MemSet.Bruce Momjian
2005-07-21Fix integer timestamp build for macro changes.Bruce Momjian
2005-07-21Add comment marking non-exact time conversion macros.Bruce Momjian
2005-07-21Add time/date macros for code clarity:Bruce Momjian
#define DAYS_PER_YEAR 365.25 #define MONTHS_PER_YEAR 12 #define DAYS_PER_MONTH 30 #define HOURS_PER_DAY 24
2005-07-20Add 'day' field to INTERVAL so 1 day interval can be distinguished fromBruce Momjian
24 hours. This is very helpful for daylight savings time: select '2005-05-03 00:00:00 EST'::timestamp with time zone + '24 hours'; ?column? ---------------------- 2005-05-04 01:00:00-04 select '2005-05-03 00:00:00 EST'::timestamp with time zone + '1 day'; ?column? ---------------------- 2005-05-04 01:00:00-04 Michael Glaesemann
2005-07-12Improve comments for AdjustIntervalForTypmod.Bruce Momjian
Blank line adjustments.
2005-07-04I have to admit that I got the case of the preprocessor symbol on amd64Bruce Momjian
wrong. __AMD64__ is not defined, __amd64__ is. Christof Petig
2005-07-02Add E'' to internally created SQL strings that contain backslashes.Bruce Momjian
Improve code clarity by using macros for E'' processing.
2005-07-01Adds some missing error handling to PGTYPESnumeric_div() in ecpg'sNeil Conway
pgtypeslib: (1) we need to check the return value of sub_abs() (2) we need to check the return value of 4 calls to digitbuf_alloc(). Per Coverity static analysis performed by EnterpriseDB.
2005-07-01Fix some minor infelicities in ecpg's pgtypeslib: (1) `pstr' must beNeil Conway
non-NULL in this function, so there is no need to check for it (2) we should check the return value of pgtypes_strdup(). Patch from Eric Astor at EnterpriseDB, with slight cleanup by myself, per a report from the Coverity tool.
2005-06-30Minor ecpg tweak: the return value of calloc() is guaranteed to be NULLNeil Conway
or zero-filled; therefore zero-filling it via memset() is pointless. (I think setting `errno' is probably a waste of cycles as well, but I haven't changed that.)
2005-06-30Warning cleanups for ecpg tests. Avoid doing pointer arithmetic on void *,Neil Conway
remove old-style function declarations, and mark a function "static". There are some remaining warnings, but this fixes most of them, anyway.
2005-06-30Fix ecpg's test/ Makefile for out-of-tree (vpath) builds.Neil Conway
2005-06-21Cause initdb to create a third standard database "postgres", whichTom Lane
unlike template0 and template1 does not have any special status in terms of backend functionality. However, all external utilities such as createuser and createdb now connect to "postgres" instead of template1, and the documentation is changed to encourage people to use "postgres" instead of template1 as a play area. This should fix some longstanding gotchas involving unexpected propagation of database objects by createdb (when you used template1 without understanding the implications), as well as ameliorating the problem that CREATE DATABASE is unhappy if anyone else is connected to template1. Patch by Dave Page, minor editing by Tom Lane. All per recent pghackers discussions.
2005-06-16Add \x hex support to ecpg strings. This just passes them to the backend.Bruce Momjian
2005-06-02- Fixed memory leak in ecpglib by adding some missing free() commands.Michael Meskes
- Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit hardware.
2005-05-27Display only 9 subsecond digits instead of 10 for time values, forBruce Momjian
consistency and to prevent rounding for days < 30. Also round off all trailing zeros, rather than leaving an even number of digits.
2005-05-27Back out part of patch that should be applied later.Bruce Momjian
2005-05-27Fix compile of entab to use stdarg.h. Clean up includes.Bruce Momjian
Marko Kreen
2005-05-26Use Abs() macro to replace ? :.Bruce Momjian
2005-05-26Back out:Bruce Momjian
Display only 9 not 10 digits of precision for timestamp values when using non-integer timestamps. This prevents the display of rounding errors for common values like days < 32.
2005-05-26Display only 9 not 10 digits of precision for timestamp values whenBruce Momjian
using non-integer timestamps. This prevents the display of rounding errors for common values like days < 32.
2005-05-25Add parentheses to macros when args are used in computations. WithoutBruce Momjian
them, the executation behavior could be unexpected.
2005-05-24Remove more extraneous parentheses in date/time functions.Bruce Momjian
2005-05-23More macro cleanups for date/time.Bruce Momjian