summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-exec.c
AgeCommit message (Collapse)Author
1996-09-16Fixes:Marc G. Fournier
Async notifies received while a backend is in the middle of a begin/end transaction block are lost by libpq when the final end command is issued. The bug is in the routine PQexec of libpq. The routine throws away any message from the backend when a message of type 'C' is received. This type of message is sent when the result of a portal query command with no tuples is returned. Unfortunately this is the case of the end command. As all async notification are sent only when the transaction is finished, if they are received in the middle of a transaction they are lost in the libpq library. I added some tracing code to PQexec and this is the output: Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
1996-08-14|Release_2_0Marc G. Fournier
|Here is a fix for the psql alignment problem. It turns out that libpq |was trying to determine if the column contained only numeric values so |it could right justify it. The 'e' values were taked as exponient |values and all columns were considered numeric. | |The patch excludes 'e' and 'E' as being valid first-column numeric |values. | Submitted by: Bruce...
1996-08-14|Marc G. Fournier
|We're all too familiar with psql's "no response from backend" message. |Users can't tell what this means, and psql continues prompting for |commands after it even though the backend is dead and no commands can |succeed. It eventually dies on a signal when the dead socket fills |up. I extended the message to offer a better explanation and made |psql exit when it finds the backend is dead. | |I also added a short message and newline when the user does a ctl-D so |it doesn't mess up the terminal display. | | Submitted by: Bryan Henderson <bryanh@giraffe.netgate.net>
1996-08-13Fixes:Marc G. Fournier
Attached is a patch to allow libpq to determine if a field is null. This is needed because text fields will return a PQgetlength() of 0 whether it is '' or NULL. There is even a comment in the source noting the fact. I have changed the value of the 'len' field for NULL result fields. If the field is null, the len is set to -1 (NULL_LEN). I have changed PQgetlength() to return a 0 length for both '' and NULL. A new function PQgetisnull() returns true or false for NULL. The only risk is to applications that do not use the suggested PQgetlength() call, but read the result 'len' field directly. As this is not recommended, I think we are safe here. A separate documentation patch will be sent. Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
1996-08-10Updates to libpq to fix breakage in previous patch...Marc G. Fournier
Submitted by: darcy@druid.druid.com (D'Arcy J.M. Cain)
1996-08-06Fixes for:Marc G. Fournier
Here are a few minor fixes to Postgres95. Mostly I have added const to some of the char pointers. There was also a missing header file and a place where it looks like "==" was used when "=" was meant. I also changed some variables from Pfin and Pfout tp pfin and pfout because the latter shadow global variables and that just seems like an unsafe practice which I like to avoid. Submitted by: "D'Arcy J.M. Cain" <darcy@druid.druid.com>
1996-07-31Row count patch from BruceMarc G. Fournier
1996-07-31Everyone seems to suggestion this is something that should be there...Marc G. Fournier
#include <sys/termios.h> Submitted by: Dr. George
1996-07-31Added <sys/termios.h> for i386_solaris portMarc G. Fournier
Submitted by: Dr_George_D_Detlefsen <drgeorge@ilt.com>
1996-07-31Fixes: Floating point exception in psqlMarc G. Fournier
Submitted by: Dan McGuirk <mcguirk@indirect.com>
1996-07-28small port fixes for sparc_solarisMarc G. Fournier
submitted by: jason
1996-07-27and now, the long awaited PAGER patches from Bruce...Marc G. Fournier
Submitted by: Bruce Momjian <maillist@candle.pha.pa.us>
1996-07-25PQprint() routines. The older code is still there for historicalJulian Assange
compatibility. There isn't much difference here against my previous PQprint() code, except that you can add optional arguments to the <table args> in html.
1996-07-23Alot of "changes" from Dr. George's source tree...Marc G. Fournier
Most of the changes in here look to b epurely cosmetic, and don't affect anything... ...and some stuff is completely questionable...in that I may have reversed some of the stuf fwe already had :(
1996-07-19Fix PAGER bug in createuser/etc scriptsMarc G. Fournier
submitted by: Bruce Momjian (root@candle.pha.pa.us)
1996-07-18libpq and psql.c have been modified to do various things they didn't doMarc G. Fournier
before (plus some optimisations/bug fixes et al). I've included a small demo transcript below. Note that all of of the display functionality/intelligence you see here, can be had merely by calling the new LIBPQ PQprint() routine with the appropriate arguments/options, including the HTML3 output guff. submitted by: Julian Assange <proff@suburbia.net>
1996-07-12fixes for several potential null pointer dereferencesMarc G. Fournier
submitted by: Paul "Shag" Walmsley <ccshag@cclabs.missouri.edu>
1996-07-09Postgres95 1.01 Distribution - Virgin SourcesPG95-1_01Marc G. Fournier