Michael Meskes
a13c1edb57
Added C bit fields to ecpg parser
...
Added some default rules to lexer
Added log output to prepare statement
Added some more stuff to a test case
2006-02-04 20:54:44 +00:00
Bruce Momjian
b3769066b8
In ecpg, automatically double single quotes in $$ strings because
...
internally $$ strings are converted to single-quote strings.
In ecpg, output newlines in commands using standard C escapes, rather
than using literal newlines, which is not portable.
2006-02-04 02:32:38 +00:00
Bruce Momjian
890707a537
Improve tab whitespace in file.
...
Add comment about $$ and '' SCONST strings.
2006-02-03 05:38:35 +00:00
Bruce Momjian
46dfa5ec83
More spacing cleanups.
2006-02-02 03:51:41 +00:00
Bruce Momjian
d63901c9d0
Source code alignment fixes for preproc.y.
2006-02-01 22:16:36 +00:00
Bruce Momjian
a274239bce
More alignment improvements.
2006-02-01 20:57:39 +00:00
Bruce Momjian
71b9df2bed
Make pgc.l source code alignment consistent.
2006-02-01 20:56:44 +00:00
Tom Lane
9b012311f8
Remove unnecessary PQconsumeInput call from PQputCopyData; it's redundant
...
because pqSendSome will absorb input data anytime it'd be forced to block.
Avoiding a kernel call per PQputCopyData call helps COPY speed materially.
Alon Goldshuv
2006-01-25 20:44:32 +00:00
Tom Lane
7a9d197fda
Fix unportable usage of socklen_t: should use ACCEPT_TYPE_ARG3 macro
...
provided by configure, instead. Per bug #2205 .
2006-01-24 16:38:42 +00:00
Michael Meskes
69f9fab197
- Synced parser and keyword list.
...
- Added another test case.
2006-01-24 11:01:38 +00:00
Michael Meskes
f3dda5be89
Data transferred binary is now put into the variables verbatim.
...
Also added a test case for a binary cursor.
2006-01-17 19:49:23 +00:00
Neil Conway
1ce4c9e9b4
When using GCC on AMD64 and PPC, ECPGget_variable() takes a va_list *, not
...
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.
2006-01-15 22:46:53 +00:00
Neil Conway
fb627b76cc
Cosmetic code cleanup: fix a bunch of places that used "return (expr);"
...
rather than "return expr;" -- the latter style is used in most of the
tree. I kept the parentheses when they were necessary or useful because
the return expression was complex.
2006-01-11 08:43:13 +00:00
Bruce Momjian
44f9021223
Remove BEOS port.
2006-01-05 03:01:38 +00:00
Neil Conway
0898033b1e
Remove DOS line endings ("\r\n") from several .po files. DOS line endings
...
are inconsistent with the rest of the .po files, and apparently cause
problems for Sun's cc. Per report on IRC from "bitvector2".
2006-01-01 10:13:56 +00:00
Neil Conway
12119188fe
Revert some careless search-and-replace: "ADD" in comment text should
...
not be replaced with "ADD_P".
2005-12-29 04:53:18 +00:00
Bruce Momjian
a4a4b8bb02
Protect ADD and HEADER symbols from conflicting with MIPS includes.
2005-12-27 04:00:08 +00:00
Peter Eisentraut
6840cccd11
Rename pg_make_encrypted_password to PQencryptPassword.
2005-12-26 14:58:06 +00:00
Tom Lane
ea9b028dc7
Add an officially exported libpq function to encrypt passwords, and
...
modify the previous \password patch to use it instead of depending
on a not-officially-exported function. Per discussion.
2005-12-23 01:16:38 +00:00
Peter Eisentraut
a29c04a541
Allow installation into directories containing spaces in the name.
2005-12-09 21:19:36 +00:00
Bruce Momjian
7b1a7e786e
Stamp libraries for 8.2 by updating minor library version numbers and
...
Win32 library files.
2005-12-09 02:49:09 +00:00
Tom Lane
974c5a8730
ecpg/pgtypeslib seems to need snprintf.c pulled in, too.
2005-12-06 05:26:21 +00:00
Tom Lane
e0e7589169
Make Win32 build use our port/snprintf.c routines, instead of depending
...
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-06 02:29:04 +00:00
Michael Meskes
5106aff99a
Added special handling of CONNECTION variable that is used by ECPG instead of given to the backend.
2005-12-02 15:03:57 +00:00
Michael Meskes
150131d9d9
- Made several variables "const char *" instead of "char *" as proposed by Qingqing Zhou <zhouqq@cs.toronto.edu>.
...
- Replaced all strdup() calls by ECPGstrdup().
- Set ecpg library version to 5.2.
- Set ecpg version to 4.2.1.
2005-11-30 12:49:49 +00:00
Tom Lane
1b68a88f22
Add missing semicolon. Recent versions of bison seem to choke on this,
...
per buildfarm report from platypus, even though older versions let it pass.
2005-11-27 01:22:23 +00:00
Bruce Momjian
aac96b8994
Fix pgindent of libpq-fe.h by hacking pgindent script.
...
Remove pgbench comment that was causing problems.
2005-11-23 04:23:30 +00:00
Bruce Momjian
436a2956d8
Re-run pgindent, fixing a problem where comment lines after a blank
...
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-11-22 18:17:34 +00:00
Alvaro Herrera
645adf5de8
Translation updates forward-port to HEAD.
2005-11-07 02:40:38 +00:00
Peter Eisentraut
8959e9b9d3
Translation updates
2005-11-04 23:31:12 +00:00
Alvaro Herrera
76c9ac8ebb
Translation updates.
2005-11-03 17:00:54 +00:00
Peter Eisentraut
9b0a164833
Translation updates
2005-10-29 00:41:37 +00:00
Bruce Momjian
819159709f
I have applied the following patch to document PQinitSSL() and
...
PQregisterThreadLock().
I also remove the crypt() mention in the libpq threading section and
added a single sentence in the client-auth manual page under crypt().
Crypt authentication is so old now that a separate paragraph about it
seemed unwise.
I also added a comment about our use of locking around pqGetpwuid().
2005-10-24 15:38:37 +00:00
Tom Lane
5aad28a104
Add missing PQinitSSL and PQregisterThreadLock to exports.txt.
2005-10-21 15:21:21 +00:00
Tom Lane
d330f1554d
Clean up libpq's pollution of application namespace by renaming the
...
exported routines of ip.c, md5.c, and fe-auth.c to begin with 'pg_'.
Also get rid of the vestigial fe_setauthsvc/fe_getauthsvc routines
altogether.
2005-10-17 16:24:20 +00:00
Bruce Momjian
1dc3498251
Standard pgindent run for 8.1.
2005-10-15 02:49:52 +00:00
Bruce Momjian
a93bf4503f
Allow times of 24:00:00 to match rounding behavior:
...
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-14 11:47:57 +00:00
Peter Eisentraut
b473d7adc4
Translation update
2005-10-10 19:36:36 +00:00
Tom Lane
d7527540f2
<limits.h> is now needed here, for INT_MAX. Per Michael Fuhr.
2005-10-10 01:34:00 +00:00
Tom Lane
313ed1ed94
Fix (hopefully for the last time) problems with datetime values displaying
...
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-09 17:21:47 +00:00
Tom Lane
18d0ca2d1b
Fix Kerberos authentication in wake of virtual-hosts changes --- need
...
to call krb5_sname_to_principal() always. Also, use krb_srvname rather
than the hardwired string 'postgres' as the appl_version string in the
krb5_sendauth/recvauth calls, to avoid breaking compatibility with PG
8.0. Magnus Hagander
2005-10-08 19:32:58 +00:00
Bruce Momjian
adeca513f7
Add spacing around operators.
2005-10-08 02:39:27 +00:00
Bruce Momjian
77d1de3c89
Minor parentheses cleanup.
2005-10-07 20:26:41 +00:00
Michael Meskes
a5fecda550
Also synced the ecpg lexer with the backend lexer.
2005-10-05 14:58:36 +00:00
Michael Meskes
ffa156bb5b
Somehow I missed some parser changes, so this commit comes pretty late. I 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-10-04 13:28:21 +00:00
Peter Eisentraut
7fe1f9a2c2
Don't need gettext calls around debug messages.
2005-09-26 17:49:09 +00:00
Tom Lane
303e089df5
Clean up possibly-uninitialized-variable warnings reported by gcc 4.x.
2005-09-24 22:54:44 +00:00
Tom Lane
8889685555
Suppress signed-vs-unsigned-char warnings.
2005-09-24 17:53:28 +00:00
Bruce Momjian
1d734b79a3
Adjust bcc to work for thread changes.
2005-09-16 19:00:05 +00:00
Bruce Momjian
eab3e9b80d
This correction is required of nmake of Windows.
...
Hiroshi Saito
2005-09-16 18:58:48 +00:00