Skip to content

Commit 0b7e699

Browse files
committed
minor
1 parent a22a038 commit 0b7e699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mssql_python/pybind/ddbc_bindings.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ SQLRETURN BindParameters(SQLHANDLE hStmt, const py::list& params,
219219
LOG("Starting parameter binding. Number of parameters: {}", params.size());
220220
for (int paramIndex = 0; paramIndex < params.size(); paramIndex++) {
221221
const auto& param = params[paramIndex];
222-
const ParamInfo& paramInfo = paramInfos[paramIndex];
222+
ParamInfo& paramInfo = paramInfos[paramIndex];
223223
LOG("Binding parameter {} - C Type: {}, SQL Type: {}", paramIndex, paramInfo.paramCType, paramInfo.paramSQLType);
224224
void* dataPtr = nullptr;
225225
SQLLEN bufferLength = 0;
@@ -1105,7 +1105,7 @@ SQLRETURN SQLTables_wrap(SqlHandlePtr StatementHandle,
11051105
// be prepared in a previous call.
11061106
SQLRETURN SQLExecute_wrap(const SqlHandlePtr statementHandle,
11071107
const std::wstring& query /* TODO: Use SQLTCHAR? */,
1108-
const py::list& params, const std::vector<ParamInfo>& paramInfos,
1108+
const py::list& params, std::vector<ParamInfo>& paramInfos,
11091109
py::list& isStmtPrepared, const bool usePrepare = true) {
11101110
LOG("Execute SQL Query - {}", query.c_str());
11111111
if (!SQLPrepare_ptr) {

0 commit comments

Comments
 (0)