X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/107ffdc16df449e98306222c43caeb86d2db9ff9..552861bf308cf2fd12f786a5443d379b55f63d81:/docs/latex/wx/db.tex diff --git a/docs/latex/wx/db.tex b/docs/latex/wx/db.tex index 1c0a471a07..807f9b9a38 100644 --- a/docs/latex/wx/db.tex +++ b/docs/latex/wx/db.tex @@ -623,8 +623,8 @@ entry is also logged to the defined log file. \docparam{aHdbc}{Handle to the ODBC connection. Pass this in if the ODBC function call that erred required a hdbc or hstmt argument.} -\docparam{aHstmt}{Handle to the ODBC statement being executed against. Pass -this in if the ODBC function call that erred out required a hstmt argument.} +\docparam{aHstmt}{Handle to the ODBC statement being executed against. Pass +this in if the ODBC function call that failed required a hstmt argument.} \wxheading{Remarks} @@ -733,7 +733,7 @@ of processing. Older form (pre-2.3/2.4 of wxWindows) of the \helpref{wxDb::IsFwdOnlyCursors}{wxdbisfwdonlycursors}. This method is -provided for backward compatability only. The method +provided for backward compatibility only. The method \helpref{wxDb::IsFwdOnlyCursors}{wxdbisfwdonlycursors} should be used in place of this method. @@ -980,10 +980,10 @@ in the result set after the current position of the cursor. \wxheading{Parameters} \docparam{aHenv}{A handle to the ODBC environment.} -\docparam{aHdbc}{{\it OPTIONAL.} A handle to the ODBC connection. Pass this -in if the ODBC function call that erred out required a hdbc or hstmt argument.} -\docparam{AHstmt}{{\it OPTIONAL.}A handle to the ODBC statement being executed -against. Pass this in if the ODBC function call that erred out requires a +\docparam{aHdbc}{{\it OPTIONAL.} A handle to the ODBC connection. Pass this +in if the ODBC function call that failed required a hdbc or hstmt argument.} +\docparam{AHstmt}{{\it OPTIONAL.}A handle to the ODBC statement being executed +against. Pass this in if the ODBC function call that failed requires a hstmt argument.} \wxheading{Example} @@ -991,8 +991,7 @@ hstmt argument.} \begin{verbatim} if (SQLExecDirect(hstmt, (UCHAR FAR *) pSqlStmt, SQL_NTS) != SQL_SUCCESS) { - // Display all ODBC errors for this stmt - return(db.DispAllErrors(db.henv, db.hdbc, hstmt)); + return(db.GetNextError(db.henv, db.hdbc, hstmt)); } \end{verbatim} @@ -1685,15 +1684,15 @@ name, user ID, password and default directory path (used with dBase). Other optional fields held in this class are and file type, both for future functions planned to be added for creating/manipulating datasource definitions. -\membersection{wxDbConnectInf::wxDbConnectInfo} +\membersection{wxDbConnectInf::wxDbConnectInf} \func{}{wxDbConnectInf}{\void} Default constructor. -\func{}{wxDb}{\param{HENV }{henv}, \param{const wxString \&}{dsn}, -\param{const wxString \&}{userID=""}, \param{const wxString \&}{password}, -\param{const wxString \&}{defaultDir=""}, \param{const wxString \&}{description=""}, +\func{}{wxDbConnectInf}{\param{HENV }{henv}, \param{const wxString \&}{dsn}, +\param{const wxString \&}{userID=""}, \param{const wxString \&}{password}, +\param{const wxString \&}{defaultDir=""}, \param{const wxString \&}{description=""}, \param{const wxString \&}{fileType=""}} Constructor which allows initial settings of all the classes member variables. @@ -3106,7 +3105,7 @@ If the function returns a FALSE value due to the table not existing, a log entry is recorded for the datasource connection indicating the problem that was detected when checking for table existence. Note that it is usually best for the calling routine to check for the existence of the table and for -sufficent user privileges to access the table in the mode (wxDB\_QUERY\_ONLY or +sufficient user privileges to access the table in the mode (wxDB\_QUERY\_ONLY or !wxDB\_QUERY\_ONLY) before trying to open the table for the best possible explanation as to why a table cannot be opened.