Skip to content

Commit c3185ed

Browse files
committed
minor
1 parent 9a55bbe commit c3185ed

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
@@ -215,7 +215,7 @@ SQLRETURN BindParameters(SQLHANDLE hStmt, const py::list& params,
215215
LOG("Starting parameter binding. Number of parameters: {}", params.size());
216216
for (int paramIndex = 0; paramIndex < params.size(); paramIndex++) {
217217
const auto& param = params[paramIndex];
218-
const ParamInfo& paramInfo = paramInfos[paramIndex];
218+
ParamInfo& paramInfo = paramInfos[paramIndex];
219219
LOG("Binding parameter {} - C Type: {}, SQL Type: {}", paramIndex, paramInfo.paramCType, paramInfo.paramSQLType);
220220
void* dataPtr = nullptr;
221221
SQLLEN bufferLength = 0;
@@ -1124,7 +1124,7 @@ SQLRETURN SQLTables_wrap(SqlHandlePtr StatementHandle,
11241124
// be prepared in a previous call.
11251125
SQLRETURN SQLExecute_wrap(const SqlHandlePtr statementHandle,
11261126
const std::wstring& query /* TODO: Use SQLTCHAR? */,
1127-
const py::list& params, const std::vector<ParamInfo>& paramInfos,
1127+
const py::list& params, std::vector<ParamInfo>& paramInfos,
11281128
py::list& isStmtPrepared, const bool usePrepare = true) {
11291129
LOG("Execute SQL Query - {}", query.c_str());
11301130
if (!SQLPrepare_ptr) {

0 commit comments

Comments
 (0)