Project

General

Profile

« Previous | Next » 

Revision 4140

Added by daigle almost 16 years ago

Add sql debug statements

View differences:

DocumentImpl.java
2834 2834
            pstmt = conn.prepareStatement(
2835 2835
                    "DELETE FROM xml_access WHERE accessfileid = ?");
2836 2836
            pstmt.setString(1, docid);
2837
            logMetacat.debug("running sql: " + pstmt.toString());
2837 2838
            pstmt.execute();
2838 2839
            pstmt.close();
2839 2840
            conn.increaseUsageCount(1);
......
2842 2843
            pstmt = conn.prepareStatement(
2843 2844
                    "DELETE FROM xml_access WHERE docid = ?");
2844 2845
            pstmt.setString(1, docid);
2846
            logMetacat.debug("running sql: " + pstmt.toString());
2845 2847
            pstmt.execute();
2846 2848
            pstmt.close();
2847 2849
            conn.increaseUsageCount(1);
......
2851 2853
            pstmt = conn.prepareStatement(
2852 2854
                    "DELETE FROM xml_queryresult WHERE docid = ?");
2853 2855
            pstmt.setString(1, docid);
2856
            logMetacat.debug("running sql: " + pstmt.toString());
2854 2857
            pstmt.execute();
2855 2858
            pstmt.close();
2856 2859
            conn.increaseUsageCount(1);
......
2861 2864
                    "DELETE FROM xml_relation WHERE docid = ?");
2862 2865
            //increase usage count
2863 2866
            pstmt.setString(1, docid);
2867
            logMetacat.debug("running sql: " + pstmt.toString());
2864 2868
            pstmt.execute();
2865 2869
            pstmt.close();
2866 2870
            conn.increaseUsageCount(1);
......
2873 2877
                    "DELETE FROM xml_path_index WHERE docid = ?");
2874 2878
            //increase usage count
2875 2879
            pstmt.setString(1, docid);
2880
            logMetacat.debug("running sql: " + pstmt.toString());
2876 2881
            pstmt.execute();
2877 2882
            pstmt.close();
2878 2883
            conn.increaseUsageCount(1);
......
2883 2888
                    "DELETE FROM xml_accesssubtree WHERE docid = ?");
2884 2889
            //increase usage count
2885 2890
            pstmt.setString(1, docid);
2891
            logMetacat.debug("running sql: " + pstmt.toString());
2886 2892
            pstmt.execute();
2887 2893
            pstmt.close();
2888 2894
            conn.increaseUsageCount(1);
......
2891 2897
            pstmt = conn.prepareStatement(
2892 2898
                    "DELETE FROM xml_documents WHERE docid = ?");
2893 2899
            pstmt.setString(1, docid);
2900
            logMetacat.debug("running sql: " + pstmt.toString());
2894 2901
            pstmt.execute();
2895 2902
            pstmt.close();
2896 2903
            //Usaga count increase 1
......
2906 2913
                   conn.increaseUsageCount(1);
2907 2914
                   // Bind the values to the query and execute it
2908 2915
                   pstmt.setString(1, docid);
2916
                   logMetacat.debug("running sql: " + pstmt.toString());
2909 2917
                   pstmt.execute();
2910 2918
                   pstmt.close();
2911 2919

  

Also available in: Unified diff