Skip to content

Commit 2120315

Browse files
committed
Update doc
1 parent ab8a271 commit 2120315

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,11 +737,12 @@ bool ODBCStatement::GetData(SQLSMALLINT record_number, SQLSMALLINT c_type,
737737

738738
void ODBCStatement::GetRowCount(SQLLEN* row_count_ptr) {
739739
if (!row_count_ptr) {
740-
// row_count_ptr is not valid, do nothing as ODBC spec does not mention this as an
740+
// row count pointer is not valid, do nothing as ODBC spec does not mention this as an
741741
// error
742742
return;
743743
}
744-
// Will always be -1 (number of rows unknown) if only SELECT is supported
744+
// Will always be -1 (meaning number of rows unknown) since only SELECT is supported by
745+
// driver
745746
*row_count_ptr = -1;
746747
}
747748

cpp/src/arrow/flight/sql/odbc/odbc_impl/odbc_statement.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ class ODBCStatement : public ODBCHandle<ODBCStatement> {
8080
bool GetData(SQLSMALLINT record_number, SQLSMALLINT c_type, SQLPOINTER data_ptr,
8181
SQLLEN buffer_length, SQLLEN* indicator_ptr);
8282

83-
/**
84-
* @brief Get number of rows affected by an UPDATE, INSERT, or DELETE statement
85-
*/
83+
/// \brief Return number of rows affected by an UPDATE, INSERT, or DELETE statement\
84+
///
85+
/// -1 is returned as driver only supports SELECT statement
8686
void GetRowCount(SQLLEN* row_count_ptr);
8787

8888
/**

0 commit comments

Comments
 (0)