On 3 January 2013 19:49, Candy Chiu <[email protected]> wrote: > I ran into an issue when using a vector of UserDefinedType convertible into > one of the data_type's (dt_string, etc). Currently, the sequence of events > is as follows: > 1. use a vector of UserDefinedType creates a conversion_use_type which holds > vectors before and after conversion. > 2. During statement initialization, the after_conversion_vector in 1) gets > passed to the back end in define_and_bind. The current ODBC implementation > copies the values in after_conversion_vector to the database bound buffer, > before the conversion takes place. > 3. During statement execution, pre_use is called, in which the conversion > happens. > > Are there any other back ends experiencing similar issues?
Candy, I don't have time too look at the ODBC backend at the moment. This backend hasn't been finished or well tested and I'd say it's experimental. If you can write down your use case as a simple void test() function, I will check it and add to the unit tests if necessary. Then you'll know if other backends can handle it properly. Once confirmed your use case is kosher inSOCI, you can look at other backends and try to correct the ODBC backend. Your help would be greatly appreciated. The test functions are very simple and self-contained. They just create table, fire up SQL queries and compare results. See examples here: https://github.com/SOCI/soci/blob/master/src/core/test/common-tests.h https://github.com/SOCI/soci/blob/master/src/backends/sqlite3/test/test-sqlite3.cpp Best regards, -- Mateusz Loskot, http://mateusz.loskot.net ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 _______________________________________________ soci-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/soci-users
