[koha-commits] main Koha release repository branch new/bug_7184 created. v3.06.00-23-g016e66c

Git repo owner gitmaster at git.koha-community.org
Sun Nov 6 15:41:51 CET 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, new/bug_7184 has been created
        at  016e66c6f25fbe3b648bcb8dad8d59f80d11b992 (commit)

- Log -----------------------------------------------------------------
commit 016e66c6f25fbe3b648bcb8dad8d59f80d11b992
Author: Paul Poulain <paul.poulain at biblibre.com>
Date:   Sun Nov 6 09:36:52 2011 +0100

    Bug 7184 raise mySQL error if debug is set
    
    Before this patch, if a mySQL occured in Koha (any error), then the user was seeing nothing.
    With this patch, if DEBUG is set in Koha VirtualHost, any mySQL error will make Koha die and display the SQL error
    
    Step to test:
    === BEFORE PATCH ===
    go anywhere, and change a mySQL statement to make it invalid.
    Launch a page using the SQL you've made wrong, you'll see nothing, except you won't see the expected results
    
    === AFTER PATCH ===
    Modify koha-httpd.conf, and add the following line, in the virtualhost (if it does not already exist)
    SetEnv DEBUG 1
    restart/reload Apache
    Launch the same page, you'll get a Perl statement saying something like:
    
    DBD::mysql::st execute failed: <<blablabla SQL error>> at <<where the error was raised line <<error line>>

-----------------------------------------------------------------------


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list