| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
of given to the backend.
I failed to notice that CONNECTION had become a keyword in 8.1.
|
|
|
|
|
|
| |
Qingqing Zhou <zhouqq@cs.toronto.edu>.
- Replaced all strdup() calls by ECPGstrdup().
|
|
|
|
| |
per buildfarm report from platypus, even though older versions let it pass.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
check for errors.
|
| |
|
|
|
|
|
| |
- Remove stary character from string quoting.
- Fixed check to report missing varchar pointer implementation.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Add SECS_PER_YEAR and MINS_PER_HOUR macros.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
#define DAYS_PER_YEAR 365.25
#define MONTHS_PER_YEAR 12
#define DAYS_PER_MONTH 30
#define HOURS_PER_DAY 24
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Blank line adjustments.
|
|
|
|
|
|
| |
wrong. __AMD64__ is not defined, __amd64__ is.
Christof Petig
|
|
|
|
| |
Improve code clarity by using macros for E'' processing.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
| |
remove old-style function declarations, and mark a function "static".
There are some remaining warnings, but this fixes most of them, anyway.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
- Added patch by Gavin Scott <gavin@planetacetech.com> for Intel 64bit hardware.
|
|
|
|
|
| |
consistency and to prevent rounding for days < 30. Also round off all
trailing zeros, rather than leaving an even number of digits.
|
| |
|
|
|
|
| |
Marko Kreen
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
using non-integer timestamps. This prevents the display of rounding
errors for common values like days < 32.
|
|
|
|
| |
them, the executation behavior could be unexpected.
|
| |
|
| |
|