Skip to content

SQLBindCol Implementation - #59

Merged
alinaliBQ merged 9 commits into
apache-odbcfrom
sql-bind-col
Jul 16, 2025
Merged

SQLBindCol Implementation#59
alinaliBQ merged 9 commits into
apache-odbcfrom
sql-bind-col

Conversation

@alinaliBQ

Copy link
Copy Markdown

Implement SQLBindCol and tests

@alinaliBQ
alinaliBQ marked this pull request as ready for review July 14, 2025 21:38
ODBCStatement* statement = reinterpret_cast<ODBCStatement*>(handle);
ODBCDescriptor* ard = statement->GetARD();
// Unbind columns
ard->SetHeaderField(SQL_DESC_COUNT, (void*)0, 0);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was there a method that you need to run to notify that binding changes have occurred (I forget).

@alinaliBQ alinaliBQ Jul 16, 2025

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think not. The driver sets m_hasBindingsChanged to true after setting SQL_DESC_COUNT(code), so this boolean would indicate that binding has changed. The driver also sets m_hasBindingsChanged to true as part of underlying SQLBindCol code. So no method would need to be run.

There is method ODBCDescriptor::NotifyBindingsHaveChanged (code) that does the same thing to set m_hasBindingsChanged to true, maybe this is the method that you were thinking of? This method is called as part of ODBCStatement::closeCursor

@alinaliBQ
alinaliBQ merged commit 7c9166e into apache-odbc Jul 16, 2025
22 of 24 checks passed
@alinaliBQ
alinaliBQ deleted the sql-bind-col branch July 16, 2025 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants