@@ -19,10 +19,10 @@ std::vector<BatchQuery> batchParamsToCommands(const std::vector<BatchQueryComman
1919 if (std::holds_alternative<NestedParamsVec>(*command.params )) {
2020 // This arguments is an array of arrays, like a batch update of a single sql command.
2121 for (const auto & params : std::get<NestedParamsVec>(*command.params )) {
22- commands.push_back (BatchQuery{command.query , std::make_shared< ParamsVec> (params)});
22+ commands.push_back (BatchQuery{command.query , ParamsVec (params)});
2323 }
2424 } else {
25- commands.push_back (BatchQuery{command.query , std::make_shared<ParamsVec>( std:: move (std::get<ParamsVec>(*command.params ) ))});
25+ commands.push_back (BatchQuery{command.query , std::move (std::get<ParamsVec>(*command.params ))});
2626 }
2727 } else {
2828 commands.push_back (BatchQuery{command.query , NULL });
@@ -48,7 +48,7 @@ SQLiteOperationResult sqliteExecuteBatch(const std::string& dbName, const std::v
4848 auto results = SQLiteQueryResults ();
4949 auto metadata = std::optional<SQLiteQueryTableMetadata>(std::nullopt );
5050 try {
51- auto result = sqliteExecute (dbName, command.sql , * command.params . get () );
51+ auto result = sqliteExecute (dbName, command.sql , command.params );
5252 rowsAffected += result.rowsAffected ;
5353 } catch (NitroSQLiteException& e) {
5454 sqliteExecuteLiteral (dbName, " ROLLBACK" );
0 commit comments