Skip to content

Commit

Permalink
Fixed typos in all source code and documentations (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hunaid2000 authored May 19, 2024
1 parent b744235 commit 7ec2337
Show file tree
Hide file tree
Showing 28 changed files with 102 additions and 103 deletions.
2 changes: 1 addition & 1 deletion bind.c
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ MYLOG(DETAIL_LOG_LEVEL, "[%d].SQLType=%d .PGType=%d\n", ipar, ipdopts->parameter
else
{
ret = SQL_ERROR;
SC_set_error(stmt, STMT_EXEC_ERROR, "Unfortunatley couldn't get this paramater's info", func);
SC_set_error(stmt, STMT_EXEC_ERROR, "Unfortunately couldn't get this paramater's info", func);
goto cleanup;
}
}
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ PGAC_ARG_BOOL(enable, pthreads, yes,
[ --disable-pthreads do not build with POSIX threads],
[AC_DEFINE(POSIX_MULTITHREAD_SUPPORT, 1,
[Define to 1 to build with pthreads support (--enable-pthreads)])
AC_DEFINE(_REENTRANT, 1, [Define _REENTRANT for several plaforms])])
AC_DEFINE(_REENTRANT, 1, [Define _REENTRANT for several platforms])])


#
Expand Down
6 changes: 3 additions & 3 deletions connection.c
Original file line number Diff line number Diff line change
Expand Up @@ -1674,7 +1674,7 @@ CC_from_PGresult(QResultClass *res, StatementClass *stmt,
CC_set_error(conn, CONN_NO_MEMORY_ERROR, NULL, __FUNCTION__);
break;
case PORES_BAD_RESPONSE:
CC_set_error(conn, CONNECTION_COMMUNICATION_ERROR, "communication error occured", __FUNCTION__);
CC_set_error(conn, CONNECTION_COMMUNICATION_ERROR, "communication error occurred", __FUNCTION__);
break;
default:
CC_set_error(conn, CONN_EXEC_ERROR, QR_get_message(res), __FUNCTION__);
Expand Down Expand Up @@ -1829,7 +1829,7 @@ CC_send_query_append(ConnectionClass *self, const char *query, QueryInfo *qi, UD

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

/* We should report that an error occured. Zoltan */
/* We should report that an error occurred. Zoltan */
aborted = TRUE;

query_completed = TRUE;
Expand Down
2 changes: 1 addition & 1 deletion connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ struct ConnectionClass_
Int2 num_discardp;
char **discardp;
int num_descs;
SQLUINTEGER default_isolation; /* server's default isolation initially unkown */
SQLUINTEGER default_isolation; /* server's default isolation initially unknown */
DescriptorClass **descs;
pgNAME schemaIns;
pgNAME tableIns;
Expand Down
8 changes: 4 additions & 4 deletions convert.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,7 +950,7 @@ setup_getdataclass(SQLLEN * const length_return, const char ** const ptr_return,
#ifdef UNICODE_SUPPORT
if (0 == bytea_process_kind)
{
if (get_convtype() > 0) /* coversion between the current locale is available */
if (get_convtype() > 0) /* conversion between the current locale is available */
{
BOOL wcs_debug = conn->connInfo.wcs_debug;
BOOL same_encoding = (conn->ccsc == pg_CS_code(conn->locale_encoding));
Expand Down Expand Up @@ -2001,7 +2001,7 @@ MYLOG(DETAIL_LOG_LEVEL, "SQL_C_VARBOOKMARK value=%d\n", ival);
/*--------------------------------------------------------------------
* Functions/Macros to get rid of query size limit.
*
* I always used the follwoing macros to convert from
* I always used the following macros to convert from
* old_statement to new_statement. Please improve it
* if you have a better way. Hiroshi 2001/05/22
*--------------------------------------------------------------------
Expand Down Expand Up @@ -4422,7 +4422,7 @@ handle_lu_onvert_error(QueryBuild *qb, int flag, char *buffer, SQLLEN paralen)
{
case ReturnZeroLengthString:
if (qb->stmt)
SC_set_error(qb->stmt, STMT_ERROR_IN_ROW, "conversion error to wide chars occured", __FUNCTION__);
SC_set_error(qb->stmt, STMT_ERROR_IN_ROW, "conversion error to wide chars occurred", __FUNCTION__);
return TRUE;
default:
qb->errornumber = STMT_EXEC_ERROR;
Expand Down Expand Up @@ -4725,7 +4725,7 @@ MYLOG(DETAIL_LOG_LEVEL, "ipara=%p paramName=%s paramType=%d %d proc_return=%d\n"
ivstruct = (SQL_INTERVAL_STRUCT *) buffer;
/* Convert input C type to a neutral format */
#ifdef UNICODE_SUPPORT
if (get_convtype() > 0) /* coversion between the current locale is available */
if (get_convtype() > 0) /* conversion between the current locale is available */
{
BOOL wcs_debug = conn->connInfo.wcs_debug;
BOOL is_utf8 = (UTF8 == conn->ccsc);
Expand Down
2 changes: 1 addition & 1 deletion dlg_specific.c
Original file line number Diff line number Diff line change
Expand Up @@ -1607,7 +1607,7 @@ decode(const char *in)

/*
* Remove braces if the input value is enclosed by braces({}).
* Othewise decode the input value.
* Otherwise decode the input value.
*/
static pgNAME
decode_or_remove_braces(const char *in)
Expand Down
2 changes: 1 addition & 1 deletion dlg_wingui.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ HMODULE DtcProc(const char *procname, FARPROC *proc)
*proc = NULL;
if (hmodule = LoadLibraryEx(GetXaLibPath(), NULL, LOAD_WITH_ALTERED_SEARCH_PATH), NULL != hmodule)
{
MYLOG(0, "GetProcAddres for %s\n", procname);
MYLOG(0, "GetProcAddress for %s\n", procname);
*proc = GetProcAddress(hmodule, procname);
}

Expand Down
2 changes: 1 addition & 1 deletion docs/config.html
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ <h2>Advanced Options 1/3 Dialog Box</h2>
columns!<br />&nbsp;</li>

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

<li><b>Max LongVarChar:</b> The maximum
Expand Down
20 changes: 10 additions & 10 deletions docs/release-7.3.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ <h2>Note</h2>
<pre>
[7.3.0261]

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

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

0 comments on commit 7ec2337

Please sign in to comment.