-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1589 from iTerminate/master
Patch 3.15.3
- Loading branch information
Showing
15 changed files
with
173 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
-- | ||
-- Copyright (c) UChicago Argonne, LLC. All rights reserved. | ||
-- See LICENSE file. | ||
-- | ||
|
||
-- Execute by running `mysql CDB_DB_NAME --host=127.0.0.1 --user=cdb -p < updateTo3.15.3.sql` | ||
|
||
|
||
delimiter // | ||
|
||
DROP PROCEDURE IF EXISTS search_items_no_entity_type;// | ||
CREATE PROCEDURE `search_items_no_entity_type` (IN limit_row int, IN domain_id int, IN search_string VARCHAR(255)) | ||
BEGIN | ||
SET search_string = CONCAT('%', search_string, '%'); | ||
SELECT item.* from item | ||
INNER JOIN v_item_self_element ise ON item.id = ise.item_id | ||
INNER JOIN item_element ie ON ise.self_element_id = ie.id | ||
INNER JOIN entity_info ei ON ise.entity_info_id = ei.id | ||
INNER JOIN user_info owneru ON ei.owner_user_id = owneru.id | ||
INNER JOIN user_info creatoru ON ei.created_by_user_id = creatoru.id | ||
INNER JOIN user_info updateu ON ei.last_modified_by_user_id = updateu.id | ||
LEFT OUTER JOIN item derived_item ON derived_item.id = item.derived_from_item_id | ||
LEFT OUTER JOIN item_entity_type iet on iet.item_id = item.id | ||
WHERE item.domain_id = domain_id AND iet.entity_type_id is NULL | ||
AND ( | ||
item.name LIKE search_string | ||
OR item.qr_id LIKE search_string | ||
OR item.item_identifier1 LIKE search_string | ||
OR item.item_identifier2 LIKE search_string | ||
OR ie.description LIKE search_string | ||
OR derived_item.name LIKE search_string | ||
OR owneru.username LIKE search_string | ||
OR creatoru.username LIKE search_string | ||
OR updateu.username LIKE search_string | ||
) | ||
LIMIT limit_row; | ||
END // |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3.15.2 | ||
3.15.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters