mirror of
https://github.com/postgres/postgres.git
synced 2025-07-08 11:42:09 +03:00
Lots of doc corrections.
Josh Kupershmidt
This commit is contained in:
@ -479,7 +479,7 @@ ECPGget_desc(int lineno, const char *desc_name, int index,...)
|
||||
memset(&stmt, 0, sizeof stmt);
|
||||
stmt.lineno = lineno;
|
||||
|
||||
/* desparate try to guess something sensible */
|
||||
/* desperate try to guess something sensible */
|
||||
stmt.connection = ecpg_get_connection(NULL);
|
||||
ecpg_store_result(ECPGresult, index, &stmt, &data_var);
|
||||
|
||||
|
@ -124,7 +124,7 @@ prepare_common(int lineno, struct connection * con, const char *name, const char
|
||||
stmt->command = ecpg_strdup(variable, lineno);
|
||||
stmt->inlist = stmt->outlist = NULL;
|
||||
|
||||
/* if we have C variables in our statment replace them with '?' */
|
||||
/* if we have C variables in our statement replace them with '?' */
|
||||
replace_variables(&(stmt->command), lineno);
|
||||
|
||||
/* add prepared statement to our list */
|
||||
@ -463,7 +463,7 @@ AddStmtToCache(int lineno, /* line # of statement */
|
||||
return (entNo);
|
||||
}
|
||||
|
||||
/* handle cache and preparation of statments in auto-prepare mode */
|
||||
/* handle cache and preparation of statements in auto-prepare mode */
|
||||
bool
|
||||
ecpg_auto_prepare(int lineno, const char *connection_name, const int compat, char **name, const char *query)
|
||||
{
|
||||
|
@ -310,7 +310,7 @@ static datetkn datetktbl[] = {
|
||||
#if 0
|
||||
phst
|
||||
#endif
|
||||
{"pht", TZ, POS(32)}, /* Phillipine Time */
|
||||
{"pht", TZ, POS(32)}, /* Philippine Time */
|
||||
{"pkt", TZ, POS(20)}, /* Pakistan Time */
|
||||
{"pm", AMPM, PM},
|
||||
{"pmdt", DTZ, NEG(8)}, /* Pierre & Miquelon Daylight Time */
|
||||
@ -2342,7 +2342,7 @@ DecodeDateTime(char **field, int *ftype, int nf,
|
||||
*/
|
||||
tmask = 0;
|
||||
|
||||
/* No preceeding date? Then quit... */
|
||||
/* No preceding date? Then quit... */
|
||||
if ((fmask & DTK_DATE_M) != DTK_DATE_M)
|
||||
return -1;
|
||||
|
||||
|
@ -342,7 +342,7 @@ PGTYPEStimestamp_from_asc(char *str, char **endptr)
|
||||
|
||||
/*
|
||||
* Since it's difficult to test for noresult, make sure errno is 0 if no
|
||||
* error occured.
|
||||
* error occurred.
|
||||
*/
|
||||
errno = 0;
|
||||
return result;
|
||||
|
@ -1104,7 +1104,7 @@ opt_output: SQL_OUTPUT { $$ = mm_strdup("output"); }
|
||||
|
||||
/*
|
||||
* dynamic SQL: descriptor based access
|
||||
* originall written by Christof Petig <christof.petig@wtal.de>
|
||||
* originally written by Christof Petig <christof.petig@wtal.de>
|
||||
* and Peter Eisentraut <peter.eisentraut@credativ.de>
|
||||
*/
|
||||
|
||||
|
@ -344,7 +344,7 @@ cppinclude_next {space}*#{include_next}{space}*
|
||||
/* take care of cpp lines, they may also be continuated */
|
||||
/* first a general line for all commands not starting with "i" */
|
||||
/* and then the other commands starting with "i", we have to add these
|
||||
* seperately because the cppline production would match on "include" too */
|
||||
* separately because the cppline production would match on "include" too */
|
||||
cppline {space}*#([^i][A-Za-z]*|{if}|{ifdef}|{ifndef}|{import})(.*\\{space})*.*{newline}
|
||||
|
||||
/*
|
||||
|
@ -218,7 +218,7 @@ PQmakeEmptyPGresult(PGconn *conn, ExecStatusType status)
|
||||
*
|
||||
* Set the attributes for a given result. This function fails if there are
|
||||
* already attributes contained in the provided result. The call is
|
||||
* ignored if numAttributes is is zero or attDescs is NULL. If the
|
||||
* ignored if numAttributes is zero or attDescs is NULL. If the
|
||||
* function fails, it returns zero. If the function succeeds, it
|
||||
* returns a non-zero value.
|
||||
*/
|
||||
|
@ -57,7 +57,7 @@ static void fill(int length, int max, char filler, FILE *fp);
|
||||
*
|
||||
* Format results of a query for printing.
|
||||
*
|
||||
* PQprintOpt is a typedef (structure) that containes
|
||||
* PQprintOpt is a typedef (structure) that contains
|
||||
* various flags and options. consult libpq-fe.h for
|
||||
* details
|
||||
*
|
||||
|
@ -277,7 +277,7 @@ struct MessageDLL
|
||||
* to find it in the lookup table, and if that fails, tries
|
||||
* to load any of the winsock dlls to find that message.
|
||||
* The DLL thing works from Nt4 (spX ?) up, but some special
|
||||
* versions of winsock might have this aswell (seen on Win98 SE
|
||||
* versions of winsock might have this as well (seen on Win98 SE
|
||||
* special install) / Magnus Naeslund (mag@fbab.net)
|
||||
*
|
||||
*/
|
||||
|
Reference in New Issue
Block a user