From e32d2b5707888bc6e9e7bc3e014bf7b6f7c06d13 Mon Sep 17 00:00:00 2001 From: George Tasker Date: Mon, 19 Jul 2004 10:07:06 +0000 Subject: [PATCH] Updating the ::Open() function to help clarify that SetColDefs() must be called before opening the table git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/latex/wx/db.tex | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/latex/wx/db.tex b/docs/latex/wx/db.tex index 0c21678a03..68d2f0e904 100644 --- a/docs/latex/wx/db.tex +++ b/docs/latex/wx/db.tex @@ -3117,6 +3117,13 @@ cursors, (insert/select and update if connection is not wxDB\_QUERY\_ONLY) and constructs the insert statement that is to be used for inserting data as a new row in the datasource. +NOTE: To retrieve data into an opened table, the of the table must be bound +to the variables in the program via call(s) to +\helpref{wxDbTable::SetColDefs}{wxdbtablesetcoldefs} before calling Open(). + +See the \helpref{database classes overview}{odbcoverview} for +an introduction to using the ODBC classes. + \wxheading{Parameters} \docparam{checkPrivileges}{Indicates whether the Open() function should check @@ -3150,6 +3157,7 @@ function can significantly speed up the privileges checks. \helpref{wxDb::TableExists}{wxdbtableexists}, \helpref{wxDb::TablePrivileges}{wxdbtableprivileges} +\helpref{wxDbTable::SetColDefs}{wxdbtablesetcoldefs} \membersection{wxDbTable::OrderBy}\label{wxdbtableorderby} @@ -3297,7 +3305,7 @@ wxDbTable constructor, it is specified how many columns are in the wxDbTable object. The SELECT statement must return exactly that many columns. \item The columns must be returned in the same sequence as specified -when defining the bounds columns using wxDbTable::SetColDefs(), +when defining the bounds columns \helpref{wxDbTable::SetColDefs}{wxdbtablesetcoldefs}, and the columns returned must be of the proper data type. For example, if column 3 is defined in the wxDbTable bound column definitions to be a float, the SELECT statement must return a -- 2.47.2