| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
| |
The parenthesized style has only been used in a few modules. Change
that to use the style that is predominant across the whole tree.
Reviewed-by: Michael Paquier <michael.paquier@gmail.com>
Reviewed-by: Ryan Murphy <ryanfmurphy@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The new indent version includes numerous fixes thanks to Piotr Stefaniak.
The main changes visible in this commit are:
* Nicer formatting of function-pointer declarations.
* No longer unexpectedly removes spaces in expressions using casts,
sizeof, or offsetof.
* No longer wants to add a space in "struct structname *varname", as
well as some similar cases for const- or volatile-qualified pointers.
* Declarations using PG_USED_FOR_ASSERTS_ONLY are formatted more nicely.
* Fixes bug where comments following declarations were sometimes placed
with no space separating them from the code.
* Fixes some odd decisions for comments following case labels.
* Fixes some cases where comments following code were indented to less
than the expected column 33.
On the less good side, it now tends to put more whitespace around typedef
names that are not listed in typedefs.list. This might encourage us to
put more effort into typedef name collection; it's not really a bug in
indent itself.
There are more changes coming after this round, having to do with comment
indentation and alignment of lines appearing within parentheses. I wanted
to limit the size of the diffs to something that could be reviewed without
one's eyes completely glazing over, so it seemed better to split up the
changes as much as practical.
Discussion: https://postgr.es/m/E1dAmxK-0006EE-1r@gemulon.postgresql.org
Discussion: https://postgr.es/m/30527.1495162840@sss.pgh.pa.us
|
|
|
|
| |
Patch by Michael Paquier
|
|
|
|
| |
Patch by Michael Paquier
|
|
|
|
|
| |
When trying to connect to a given database libecpg should not try using an
empty hostname if no hostname was given.
|
|
|
|
| |
commit-fest.
|
|
|
|
| |
found by Coverity
|
|
|
|
|
| |
anymore. This way we don't have to worry which compiler on which OS offers
which version of strtok.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
PQconectdb.
|
|
|
|
|
|
| |
This list is now freed when the last connection has been closed.
Closes: #6366
|
| |
|
|
|
|
| |
Itagaki Takahiro, with slight modifications.
|
|
|
|
|
|
| |
Use bool as type for booleans instead of int.
Do not implicitely cast size_t to int.
Make the compiler stop complaining about unused variables by adding an empty statement.
|
|
|
|
|
|
| |
ecpglib. Instead of parsing the statement just as ask the database server. This
patch removes the whole client side track keeping of the current transaction
status.
|
| |
|
| |
|
|
|
|
| |
user and password can also be "".
|
|
|
|
| |
provided by Andrew.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Replace leftover instances of _() by ecpg_gettext(), the latter being the
correct way to refer to the library's message catalog, instead of the one of
the program using the library.
Drop NLS support for ecpg_log(), which is a debugging instrument similar to
elog() in the backend.
We cannot support NLS in the ecpg compatlib, because that requires
ecpg_gettext, which is in ecpglib, which is not a dependency of compatlib. It
doesn't seem worthwhile to worry about this, since the only translatable
string is "out of memory", and gettext probably won't be able to do much
without memory either.
Adjust messages to project style.
|
|
|
|
| |
fix segfault on non-glibc systems.
|
|
|
|
| |
Author: Euler Taveira de Oliveira <euler@timbira.com>
|
|
|
|
|
| |
- Correctly parse connect options.
- Changed regression tests accordingly.
|
|
|
|
| |
Removed one include file from connect-test1.
|
| |
|
|
|
|
| |
Created export list for ecpglib.
|
| |
|
|
|
|
| |
descriptor handling
|
|
|
|
| |
to get memory allocation thread-safe. He also did some cleaning up.
|
|
|
|
| |
prepare thread-safe.
|
|
|
|
|
|
|
|
| |
- Really prepare statements
- Added more regression tests
- Added auto-prepare mode
- Use '$n' for positional variables, '?' is still possible via ecpg option
- Cleaned up the sources a little bit
|
|
|
|
|
| |
win32 threads.
- Fixed regression tests to run threading tests.
|
|
|
|
|
|
|
| |
- Made some chars const as proposed by Stefan Huehner <stefan@huehner.org>.
- Synced parser and keyword lists.
- Copied two token parsing from backend parser to ecpg parser.
- Also added a test case for this.
|
|
|
|
| |
Added patch by Joachim to work around OpenBSD bug in regression suite.
|
|
|
|
|
|
| |
Made this option mark the .c files, so the environment variable is no longer needed.
Created a special MinGW file with the special error message.
Do not print port into log file when running regression tests.
|
| |
|
| |
|
|
|
|
|
| |
Streamlined connection name parsing.
Added Joachim's patch to shorten paths before diffing.
|
|
|
|
|
| |
- Fixed a memory leak/segfault in unsuccessful connection.
- Some changes to test files.
|
|
|
|
|
| |
Merged dyntest.pgc and dyntest2.pgc.
Hopefully fixed the last Coverity reports (finally)
|
|
|
|
|
| |
Implemented EXEC SQL UNDEF.
Applied first version of the regression test patch by Joachim Wieland <joe@mcknight.de>.
|
|
|
|
| |
Connection identifier has to be unique
|
|
|
|
| |
<kleptog@svana.org>.
|
|
|
|
|
|
| |
<joe@mcknight.de>
Added missing error handling in a few functions in ecpglib
|
|
|
|
| |
<joachim.wieland@credativ.de>
|
|
|
|
|
|
|
|
| |
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.
|
| |
|