-
Notifications
You must be signed in to change notification settings - Fork 115
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
New Release #92
Comments
The new release is planned after postgrex and mariaex get updated, so we know the approach is correct. |
Is there a version you guys are looking for? Postgrex 12 days ago and Mariaex 3 days ago |
I believe the work for Postgrex is (mostly?) complete. I was asked to do the same for Mariaex, but my unfamiliarity with the database and codebase prevented me from getting it done. I do not mind taking another crack at it. Unfortunately, even if I thought I got it working, my unfamiliarity with things would prevent me from knowing for sure. |
The work is being done in elixir-ecto/postgrex#321 and xerions/mariaex#196 |
@ArThien is the driver open source? If so can you link to an issue that we can track? It's possible we could look at a v1.1 branch whose parent commit is as far back as possible - before new features were introduced. |
@ArThien is talking about elixir-mongo/mongodb#145. I would prefer to have the change that returns If this is going to take a while though, I could look into rescuing instead of waiting on this. |
@ankhers Would you mind using rescue |
Unfortunately the latest commit we can release a patch version for is 53271f7. I think there are still cases after that where DBConnection can raise instead of returning an error. I think all these are changed at some point so it might be we can create a v1.1 branch and you can add any further of these fixes required. It could be easily to rescue. Unless limited to the |
I will test a version of mongodb with rescuing. I will look into doing this within the next couple days. |
@ankhers our dev team thanks you :) |
Is there anything I can do to help? I would also be very interested in a new release. |
We would need to get things working in Ecto. @shdblowers @scouten are mssql and sqlite adapters about to detect transaction status (whether inside or outside a transaction) without a roundtrip across network? Obviously for SQLite it is just whether we can detect it as we're on same host. IIRC neither of those adapter supports streaming so we don't need to worry about the other changes. |
@fishcakez is that the work for supporting Ecto 2.2? |
@shdblowers not necessarily. Once we release a new db_connection version, I can backport any necessary fix to both Ecto 2.1 and Ecto 2.2 branches. So hopefully you are able to track those in isolation. The work I believe @fishcakez was referring to was to update to db_connection master. |
Ah yes sorry, got confused between the two streams of work.
|
@shdblowers the |
Hi @fishcakez , with ODBC transactions are handled at the connection level. You can either be connected in auto-commit (each statement committed when sent) or manual-commit mode (everything is a transaction). In that way the client and DB stay in sync with the status of a transaction. However, ODBC does not send the transaction status as part of the response. |
Oh, so it's not possible for a raw query to start a transaction or alter
transaction state?
…On 10 Oct 2017 10:36, "Steven Blowers" ***@***.***> wrote:
Hi @fishcakez <https://github.com/fishcakez> , with ODBC transactions are
handled at the connection level.
You can either be connected in auto-commit (each statement committed when
sent) or manual-commit mode (everything is a transaction).
In that way the client and DB stay in sync with the status of a
transaction.
However, ODBC does not send the transaction status as part of the response.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#92 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB6JTVRDwqRvs_E4iEC4Hth7M4D0Y1JLks5sq6s7gaJpZM4O2cZc>
.
|
No, when connected in manual commit mode you can commit or rollback a transaction by calling |
Thank you @shdblowers, sounds good! Lets move forward with a release once the milestone issues are handled. |
Is there an ETA on the latest release from the master branch? The new error handling for connections
{:error, msg}
is needed for a DB driver using this repo!The text was updated successfully, but these errors were encountered: