Fixed problem for transaction test mode.

trans_complete function is committed in test mode.
Because any database drivers are set _trans_failure in test_mode,
And trans_complete function is not evaluate _trans_failure.
fixed for styleguide.

|| to OR
remove the empty line at EOF
Fixed for styleguide.
Merge pull request #2343 from QOX/develop

Fixed problem for transaction test mode.