Project

General

Profile

« Previous | Next » 

Revision 1370

Added by Jing Tao almost 22 years ago

Don't insert "acl" as accessfileid for single file. It will be null.

View differences:

src/edu/ucsb/nceas/metacat/AccessControlForSingleFile.java
151 151
      serialNumber=conn.getCheckOutSerialNumber();
152 152
      pstmt = conn.prepareStatement(
153 153
              "INSERT INTO xml_access " + 
154
              "(docid, principal_name, permission, perm_type, perm_order, " +
155
              "accessfileid) VALUES (?,?,?,?,?,?)");
154
              "(docid, principal_name, permission, perm_type, perm_order " +
155
              ") VALUES (?,?,?,?,?)");
156 156
     
157 157
      // Bind the values to the query
158 158
      pstmt.setString(1, docId);
......
160 160
      pstmt.setInt(3, permission);
161 161
      pstmt.setString(4, permType);
162 162
      pstmt.setString(5, permOrder);
163
      pstmt.setString(6, AccessControlInterface.ACLID);
163
      //pstmt.setString(6, AccessControlInterface.ACLID);
164 164
      pstmt.execute();
165 165
    }//try
166 166
    catch (SQLException e)

Also available in: Unified diff