Revision 8173
Added by ben leinfelder about 11 years ago
src/edu/ucsb/nceas/metacat/accesscontrol/AccessControlList.java | ||
---|---|---|
523 | 523 |
//Check out DBConnection |
524 | 524 |
//conn=DBConnectionPool.getDBConnection("AccessControlList.insertPerm"); |
525 | 525 |
//serialNumber=conn.getCheckOutSerialNumber(); |
526 |
|
|
526 |
// TODO: look up guid? this is for very old pre-release versions of EML |
|
527 |
String guid = docid; |
|
527 | 528 |
pstmt = connection.prepareStatement( |
528 | 529 |
"INSERT INTO xml_access " + |
529 |
"(docid, principal_name, permission, perm_type, perm_order," +
|
|
530 |
"(guid, principal_name, permission, perm_type, perm_order," +
|
|
530 | 531 |
"ticket_count, accessfileid) VALUES " + |
531 | 532 |
"(?,?,?,?,?,?,?)"); |
532 | 533 |
// Increase DBConnection usage count |
533 | 534 |
connection.increaseUsageCount(1); |
534 | 535 |
// Bind the values to the query |
535 |
pstmt.setString(1, docid);
|
|
536 |
pstmt.setString(1, guid);
|
|
536 | 537 |
pstmt.setInt(3, permission); |
537 | 538 |
pstmt.setString(4, permType); |
538 | 539 |
pstmt.setString(5, permOrder); |
Also available in: Unified diff
avoid SQL errors when processing very old objects of type: "-//ecoinformatics.org//eml-access-2.0.0beta6//EN"