mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +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}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user