New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Second version of connection_parameters patch. #99
Conversation
Right now this is just a trivial wrapper for the backend and connection string and no extra functionality but it will be extended with connection options support in the subsequent commits. No changes in behaviour, this is a pure refactoring. Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
No real changes, but just use "class" for consistency. Signed-off-by: Vadim Zeitlin <vz-soci@zeitlins.org>
…string. There are still no real changes as only the connect string part of the connection parameters is currently used, but this will make it possible to use other information stored in connection_parameters from the backend code in the future. Also replace session::lastFactory_ and lastConnectString_ with a single lastConnectParameters_ making the code slightly shorter and simpler.
It should be to connections.html, not the (non existent) basics.html.
Allow passing arbitrary options via connection_parameters and add support for an option allowing to specify the "driver completion" mode, i.e. the degree of interactivity of the driver, in the ODBC backend. By default now do ask the user if the DSN doesn't include the user name and/or password for the connection but the old behaviour is still available if ODBC_OPTION_DRIVER_COMPLETE option is set to SQL_DRIVER_NOPROMPT before opening the session.
Document the new session ctor taking connection_parameters and the class itself in the references page.
I wonder, simple update to commits of previous pull request #98 wouldn't work? It looks some network problems on travis broke the build, not sure if it will refresh, but let's ignore and build locally. |
I also tested this one with VS2012 and ODBC (MySQL, PostgreSQL, SQL Server). All works. |
@vadz Could you make some "fake" commit in your params2 branch, for example add/remove comment or line, and push it to your remote params2 branch. I wonder if it would trigger travis rebuild. |
I rewrote some commits instead of just adding new ones, which is why I've created a new branch and not just updated the old one. But the code is functionally identical with the old version (the only changes are renaming and the order of initialization changes), so I think it should be safe to commit it even without Travis check. |
@vadz Understood. Yes, I agree it's safe to commot, I was just wondering if we should give @pfedor, @vnaydionov chance to look at it too, but we've been discussing it on the list already and no objections were raised, so go ahead and merge your work. Regarding Travis, it seems the setup is broken and I'm looking at it now. |
Update on Travis, apparently they just have switched to 64-bit so installing Oracle libraries from oss.oracle.com repository is failing. I'll have to work on it |
I had to disable Oracle on Travis, it needs more work than I thought to support it for 64-bit build. Meanwhile, build 223 reports ODBC tests on 64-builds are failing. |
I just tested 64-bit build on Windows using VS2012, ODBC backend with 64-bit ODBC drivers for MySQL and SQLite3 too, all works and Meanwhile, I've added some verbose output to
but it should list until |
In absence of comments from @pfedo and @vnaydionov I'm going to merge this in as I'd like it to be part of 3.2.0 and also because these changes touch a lot of files and the risk of conflicts is relatively important -- I've already had to fix another one in DB2 code -- and I don't believe this patch is responsible for ODBC tests failures in 64 bits (this is obviously something that needs to be fixed but not related to these changes). |
@vadz Great, thanks! Yes, the ODBC failures we're observing are not related to your submission. A general note for future: |
This one should take into account all the comments on the previous one. In particular, I renamed the new option to the lower case.