-
Notifications
You must be signed in to change notification settings - Fork 75
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
PSGI: Consistent use of DBIx::Connector #434
Comments
According to https://metacpan.org/pod/release/DWHEELER/DBIx-Connector-0.47/lib/DBIx/Connector.pm#dbh and http://perladvent.org/2011/2011-12-22.html it looks like simply using the method The downside is that this would increase the number or pings when running under PSGI. For avoiding too frequent pings one can use the fixup connection mode. See https://metacpan.org/pod/release/DWHEELER/DBIx-Connector-0.47/lib/DBIx/Connector.pm#Connection-Modes. But this is beyond the scope of this ticket. |
Also, in OTOBO 10.0.2 there is bug in the PSGI case. The attribure 'RaiseError => 0' was not passed to |
The two cases are with and without DBIx::Connector
There are some issues regarding the UnitTests in the non-PSGI. The cause is not obvious. So let's be more conservative and avoid any code changes for the non-PSGI case. |
For PSGI we rely on DBIx::Connector
Issue #434: rollback for the non-PSGI case.
We should probably keep the non-PSGI case like this for OTOBO 10.0. |
No new problems surfaces. @svenoe did a code review. Closing the issue. |
In
Kernel::System::DB::Connect
there is currently both a reuse of$Self->{dbh}
and reconnection withDBIx::Connector
. While this works it is probably not best practice.TODO:
The text was updated successfully, but these errors were encountered: