SOCI / soci

Official repository of the SOCI - The C++ Database Access Library
http://soci.sourceforge.net/
Boost Software License 1.0
1.37k stars 472 forks source link

Allow passing rvalues to soci::use() #1102

Open avpalienko opened 7 months ago

avpalienko commented 7 months ago

It is a useful when we can write soci::use( 3 ) or soci::use (string_holder("once used string")) So, for rvalue case we have to use a specific type of use_container. And the overload of the exchange() and do_use() functions. As a result we have a "use_type" object of new derived class "by_value_use_type" (or "by_value_conversion_use_type"), which contains the copy of the rvalue

avpalienko commented 7 months ago

CI env problem: Starting MySQL 5.7 Start-Service : Cannot find any service with service name 'MySQL57'. At line:1 char:1

vadz commented 7 months ago

CI env problem: Starting MySQL 5.7 Start-Service : Cannot find any service with service name 'MySQL57'. At line:1 char:1

* Start-Service 'MySQL57'

* ```
    + CategoryInfo          : ObjectNotFound: (MySQL[57](https://ci.appveyor.com/project/SOCI/soci/builds/48597466/job/r6lwn67f6ep8jnvb#L57):String) [Start-Service], ServiceCommandException
    + FullyQualifiedErrorId : NoServiceFoundForGivenName,Microsoft.PowerShell.Commands.StartServiceCommand
  ```

AppVeyor probably updated their MySQL version... Also not sure why did we suddenly start getting deprecation warnings in the GitHub CI builds. This is clearly unrelated to this PR, of course.