Project

General

Profile

« Previous | Next » 

Revision 4140

Added by daigle almost 16 years ago

Add sql debug statements

View differences:

Eml210SAXHandler.java
1765 1765
                    pstmt.setString(2, prName);
1766 1766
                    logMetacat.info("Principal in accesstable: "
1767 1767
                            + prName);
1768
                    logMetacat.debug("running sql: " + pstmt.toString());
1768 1769
                    pstmt.execute();
1769 1770
                }//for
1770 1771
            }//for
......
1833 1834
                    pstmt.setString(2, prName);
1834 1835
                    logMetacat.info("Principal in accesstable: "
1835 1836
                            + prName);
1837
                    logMetacat.debug("running sql: " + pstmt.toString());
1836 1838
                    pstmt.execute();
1837 1839
                }//for
1838 1840
            }//for
......
1863 1865
            stmt = connection.createStatement();
1864 1866
            // Increase DBConnection usage count
1865 1867
            connection.increaseUsageCount(1);
1868
            logMetacat.debug("running sql: DELETE FROM xml_access WHERE accessfileid = '"
1869
                    + aclid + "'");
1866 1870
            stmt.execute("DELETE FROM xml_access WHERE accessfileid = '"
1867 1871
                    + aclid + "'");
1868 1872

  
......
1916 1920
            logMetacat.info("Start node id is: " + startNodeId);
1917 1921
            pstmt.setLong(6, endNodeId);
1918 1922
            logMetacat.info("End node id is: " + endNodeId);
1923
            logMetacat.debug("running sql: " + pstmt.toString());
1919 1924
            pstmt.execute();
1920 1925
            pstmt.close();
1921 1926
        }//try
......
1944 1949
            stmt = connection.createStatement();
1945 1950
            // Increase DBConnection usage count
1946 1951
            connection.increaseUsageCount(1);
1952
            logMetacat.debug("running sql: DELETE FROM xml_accesssubtree WHERE docid = '"
1953
                    + docId + "'");
1947 1954
            stmt.execute("DELETE FROM xml_accesssubtree WHERE docid = '"
1948 1955
                    + docId + "'");
1949 1956

  

Also available in: Unified diff