Skip to content

Commit 7ec2337

Browse files
authored
Fixed typos in all source code and documentations (#11)
1 parent b744235 commit 7ec2337

28 files changed

+102
-103
lines changed

bind.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ MYLOG(DETAIL_LOG_LEVEL, "[%d].SQLType=%d .PGType=%d\n", ipar, ipdopts->parameter
375375
else
376376
{
377377
ret = SQL_ERROR;
378-
SC_set_error(stmt, STMT_EXEC_ERROR, "Unfortunatley couldn't get this paramater's info", func);
378+
SC_set_error(stmt, STMT_EXEC_ERROR, "Unfortunately couldn't get this paramater's info", func);
379379
goto cleanup;
380380
}
381381
}

configure.ac

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ PGAC_ARG_BOOL(enable, pthreads, yes,
196196
[ --disable-pthreads do not build with POSIX threads],
197197
[AC_DEFINE(POSIX_MULTITHREAD_SUPPORT, 1,
198198
[Define to 1 to build with pthreads support (--enable-pthreads)])
199-
AC_DEFINE(_REENTRANT, 1, [Define _REENTRANT for several plaforms])])
199+
AC_DEFINE(_REENTRANT, 1, [Define _REENTRANT for several platforms])])
200200

201201

202202
#

connection.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ CC_from_PGresult(QResultClass *res, StatementClass *stmt,
16741674
CC_set_error(conn, CONN_NO_MEMORY_ERROR, NULL, __FUNCTION__);
16751675
break;
16761676
case PORES_BAD_RESPONSE:
1677-
CC_set_error(conn, CONNECTION_COMMUNICATION_ERROR, "communication error occured", __FUNCTION__);
1677+
CC_set_error(conn, CONNECTION_COMMUNICATION_ERROR, "communication error occurred", __FUNCTION__);
16781678
break;
16791679
default:
16801680
CC_set_error(conn, CONN_EXEC_ERROR, QR_get_message(res), __FUNCTION__);
@@ -1829,7 +1829,7 @@ CC_send_query_append(ConnectionClass *self, const char *query, QueryInfo *qi, UD
18291829

18301830
/*
18311831
* In case the round trip time can be ignored, the query
1832-
* and the appeneded query would be issued separately.
1832+
* and the appended query would be issued separately.
18331833
* Otherwise a multiple command query would be issued.
18341834
*/
18351835
if (appendq && ignore_roundtrip_time)
@@ -2091,7 +2091,7 @@ MYLOG(DETAIL_LOG_LEVEL, "Discarded a RELEASE result\n");
20912091
case PGRES_FATAL_ERROR:
20922092
handle_pgres_error(self, pgres, "send_query", res, TRUE);
20932093

2094-
/* We should report that an error occured. Zoltan */
2094+
/* We should report that an error occurred. Zoltan */
20952095
aborted = TRUE;
20962096

20972097
query_completed = TRUE;

connection.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ struct ConnectionClass_
337337
Int2 num_discardp;
338338
char **discardp;
339339
int num_descs;
340-
SQLUINTEGER default_isolation; /* server's default isolation initially unkown */
340+
SQLUINTEGER default_isolation; /* server's default isolation initially unknown */
341341
DescriptorClass **descs;
342342
pgNAME schemaIns;
343343
pgNAME tableIns;

convert.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ setup_getdataclass(SQLLEN * const length_return, const char ** const ptr_return,
950950
#ifdef UNICODE_SUPPORT
951951
if (0 == bytea_process_kind)
952952
{
953-
if (get_convtype() > 0) /* coversion between the current locale is available */
953+
if (get_convtype() > 0) /* conversion between the current locale is available */
954954
{
955955
BOOL wcs_debug = conn->connInfo.wcs_debug;
956956
BOOL same_encoding = (conn->ccsc == pg_CS_code(conn->locale_encoding));
@@ -2001,7 +2001,7 @@ MYLOG(DETAIL_LOG_LEVEL, "SQL_C_VARBOOKMARK value=%d\n", ival);
20012001
/*--------------------------------------------------------------------
20022002
* Functions/Macros to get rid of query size limit.
20032003
*
2004-
* I always used the follwoing macros to convert from
2004+
* I always used the following macros to convert from
20052005
* old_statement to new_statement. Please improve it
20062006
* if you have a better way. Hiroshi 2001/05/22
20072007
*--------------------------------------------------------------------
@@ -4422,7 +4422,7 @@ handle_lu_onvert_error(QueryBuild *qb, int flag, char *buffer, SQLLEN paralen)
44224422
{
44234423
case ReturnZeroLengthString:
44244424
if (qb->stmt)
4425-
SC_set_error(qb->stmt, STMT_ERROR_IN_ROW, "conversion error to wide chars occured", __FUNCTION__);
4425+
SC_set_error(qb->stmt, STMT_ERROR_IN_ROW, "conversion error to wide chars occurred", __FUNCTION__);
44264426
return TRUE;
44274427
default:
44284428
qb->errornumber = STMT_EXEC_ERROR;
@@ -4725,7 +4725,7 @@ MYLOG(DETAIL_LOG_LEVEL, "ipara=%p paramName=%s paramType=%d %d proc_return=%d\n"
47254725
ivstruct = (SQL_INTERVAL_STRUCT *) buffer;
47264726
/* Convert input C type to a neutral format */
47274727
#ifdef UNICODE_SUPPORT
4728-
if (get_convtype() > 0) /* coversion between the current locale is available */
4728+
if (get_convtype() > 0) /* conversion between the current locale is available */
47294729
{
47304730
BOOL wcs_debug = conn->connInfo.wcs_debug;
47314731
BOOL is_utf8 = (UTF8 == conn->ccsc);

dlg_specific.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1607,7 +1607,7 @@ decode(const char *in)
16071607

16081608
/*
16091609
* Remove braces if the input value is enclosed by braces({}).
1610-
* Othewise decode the input value.
1610+
* Otherwise decode the input value.
16111611
*/
16121612
static pgNAME
16131613
decode_or_remove_braces(const char *in)

dlg_wingui.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ HMODULE DtcProc(const char *procname, FARPROC *proc)
287287
*proc = NULL;
288288
if (hmodule = LoadLibraryEx(GetXaLibPath(), NULL, LOAD_WITH_ALTERED_SEARCH_PATH), NULL != hmodule)
289289
{
290-
MYLOG(0, "GetProcAddres for %s\n", procname);
290+
MYLOG(0, "GetProcAddress for %s\n", procname);
291291
*proc = GetProcAddress(hmodule, procname);
292292
}
293293

docs/config.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ <h2>Advanced Options 1/3 Dialog Box</h2>
116116
columns!<br />&nbsp;</li>
117117

118118
<li><b>Cache Size:</b>When using
119-
cursors, this is the row size of the tuple cache and the defualt is 100 rows.
119+
cursors, this is the row size of the tuple cache and the default is 100 rows.
120120
If not using cursors, this has no meaning.<br />&nbsp;</li>
121121

122122
<li><b>Max LongVarChar:</b> The maximum

docs/release-7.3.html

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ <h2>Note</h2>
1919
<pre>
2020
[7.3.0261]
2121

22-
1.Handle the converion from text-like field to SQL_C_BINARY more properly.
22+
1.Handle the conversion from text-like field to SQL_C_BINARY more properly.
2323
2.Make buffer extension in SQLPutData more effective.
2424
3.Reply SQL_CONVERT_xxxx correctly for SQLGetInfo request.
2525
4.Reply DBMS_NAME, DBMS_VERSION correctly for SQLGetInfo request.
2626
5.Not call show max_identifier_length in PG 7.4.
2727
6.Change adjustLikePattern() to take literal quote(') into account.
2828
7.Fix a bug in memory debug routine.
2929
8.Change the multibyte encoding list to match that of the current
30-
offical driver.
30+
official driver.
3131
9.Change SC_clear_error() to call CC_clear_error() also.
3232
10.Change the length values returned when they are unknown for
3333
SQLDescribeCol or SQLColAttribute requests.
@@ -40,7 +40,7 @@ <h2>Note</h2>
4040
of parameters.
4141
4.Allow blanks in password.
4242
5.Add an option to force abbreviation of connection string.
43-
6.Fix the handling of "PROTOCOL=x.x-x" in the connction string.
43+
6.Fix the handling of "PROTOCOL=x.x-x" in the connection string.
4444
7.Fix the loadlib module of *nix.
4545

4646
[7.3.0260]
@@ -147,15 +147,15 @@ <h2>psqlODBC 08.01.0200 Release</h2>
147147
<li>Notes: psqlODBC 08.01.0107</li><br>
148148
1) fix next problem with calling implicit rollback in bad time<br>
149149
2) detecting transaction commands into if branch which mean backend
150-
successfuly done the command. add support for "start transaction"<br>
150+
successfully done the command. add support for "start transaction"<br>
151151
3) fix bug when mylog output can't be created<br>
152152
4) fix problem with SQLSetPos<br>
153153
5) fix problem with column length in CC_mapping<br>
154154
6) fix - typelen could be less then zero not only -1<br>
155155
<br>
156156
<li>Notes: psqlODBC 08.01.0106</li><br>
157157
1) fix problem with getting long text in unicode driver<br>
158-
2) fix sqlstate iin case of error in statement<br>
158+
2) fix sqlstate in case of error in statement<br>
159159
3) doesn't call rollback in autocommit off or in manual transaction<br>
160160
4) remove obsolete parameter protocol<br>
161161
<br>
@@ -382,10 +382,10 @@ <h2>=== gborg.postgresql.org(This is the past history.) ===</h2>
382382
8. Avoid those notorious core dumps when logging on hitting<br>
383383
"null" data...<br>
384384
<8: thanls to Hartmut Raschick><br>
385-
9. Removed a static varible for thread-safety.<br>
385+
9. Removed a static variable for thread-safety.<br>
386386
10. Improve the performance of keyset-driven fetch operation.<br>
387387
11. Map (var)char type to SQL type more properly.<br>
388-
12. Change create_params for NUMERIC type to (precison, scale).<br>
388+
12. Change create_params for NUMERIC type to (precision, scale).<br>
389389
13. Add type cast to remove some compiler warnings. <br>
390390
<br>
391391
1.30 by hinoue <br>
@@ -460,7 +460,7 @@ <h2>=== gborg.postgresql.org(This is the past history.) ===</h2>
460460
Diffs ignoring whitespace to version 1.23 (long / unified) <br>
461461
1) Correct the return info for SQLGetInfo(.., SQL_CURSOR_COMMIT<br>
462462
(ROLLBACK)_BEHAVIOR) call.<br>
463-
2) Explictly reject the SQLBrowseConnect call. <br>
463+
2) Explicitly reject the SQLBrowseConnect call. <br>
464464
<br>
465465
1.23 by hinoue <br>
466466
Mon Sep 15 04:25:03 2003 (8 weeks ago)<br>
@@ -502,7 +502,7 @@ <h2>=== gborg.postgresql.org(This is the past history.) ===</h2>
502502
Changed since 1.18: +3 -3 [Select for Diff] <br>
503503
Diffs to version 1.18 (long / unified) <br>
504504
Diffs ignoring whitespace to version 1.18 (long / unified) <br>
505-
Improve SQLGetDiagField so that an MFC appliaction reports<br>
505+
Improve SQLGetDiagField so that an MFC application reports<br>
506506
error messages properly(bug report from Silvio Scarpati). <br>
507507
<br>
508508
1.18 by hinoue <br>
@@ -550,7 +550,7 @@ <h2>=== gborg.postgresql.org(This is the past history.) ===</h2>
550550
Changed since 1.12: +3 -3 [Select for Diff] <br>
551551
Diffs to version 1.12 (long / unified) <br>
552552
Diffs ignoring whitespace to version 1.12 (long / unified) <br>
553-
1) Corrent the handling of bookmark in SQLBulkOperations.<br>
553+
1) Correct the handling of bookmark in SQLBulkOperations.<br>
554554
2) Correct the calculation of a global index in SC_pos_add.<br>
555555
3) Cleanup global/rowset/resultset index handling a little. <br>
556556
<br>

0 commit comments

Comments
 (0)