Skip to content

Commit

Permalink
[#46] Use lowercase select in checksum metadata query
Browse files Browse the repository at this point in the history
Avoids crash due to irods/irods#4697
  • Loading branch information
michaellink authored and trel committed May 21, 2022
1 parent 128a4c7 commit 4ebf4b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion DSI/globus_gridftp_server_iRODS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1465,9 +1465,11 @@ globus_l_gfs_iRODS_command(
}

//SELECT META_DATA_ATTR_VALUE, META_DATA_ATTR_UNITS, MIN(DATA_MODIFY_TIME) where COLL_NAME = '/tempZone/home/rods' and DATA_NAME = 'medium_file' and DATA_REPL_STATUS = '1'
// use lowercase 'select' to work around
// https://github.com/irods/irods/issues/4697
std::string metadata_query_str =
boost::str(boost::format(
"SELECT META_DATA_ATTR_VALUE, META_DATA_ATTR_UNITS, MIN(DATA_MODIFY_TIME) "
"select META_DATA_ATTR_VALUE, META_DATA_ATTR_UNITS, MIN(DATA_MODIFY_TIME) "
"WHERE META_DATA_ATTR_NAME = '%s' AND DATA_NAME = '%s' AND COLL_NAME = '%s' AND DATA_REPL_STATUS = '1'") %
checksum_avu_name %
data_name %
Expand Down

0 comments on commit 4ebf4b4

Please sign in to comment.