DOC, STY: in code documentation and styling for readablility
Compare changes
+ 22
− 4
@@ -34,13 +34,16 @@ DELIMITER //
@@ -34,13 +34,16 @@ DELIMITER //
CREATE PROCEDURE db_5_0.applyPOV(in sourceSet VARCHAR(255), /* (?) Name of the table that the POV will be applied to. This can be a temporary table. */
@@ -81,6 +84,10 @@ POV_LABEL: BEGIN
@@ -81,6 +84,10 @@ POV_LABEL: BEGIN
@@ -229,6 +236,8 @@ POV_LABEL: BEGIN
@@ -229,6 +236,8 @@ POV_LABEL: BEGIN
@@ -243,6 +252,7 @@ POV_LABEL: BEGIN
@@ -243,6 +252,7 @@ POV_LABEL: BEGIN
@@ -259,6 +269,7 @@ POV_LABEL: BEGIN
@@ -259,6 +269,7 @@ POV_LABEL: BEGIN
'INSERT IGNORE INTO `', keepTabl, '` (id, _iversion) SELECT entity_id AS id, _iversion FROM ', data,
@@ -299,7 +310,14 @@ POV_LABEL: BEGIN
@@ -299,7 +310,14 @@ POV_LABEL: BEGIN
SET @stmtPOVkeepTblStr = CONCAT('INSERT IGNORE INTO `', keepTabl, '` (id) SELECT DISTINCT entity_id AS id FROM ', data, ' as data', IF(propertiesTable IS NULL, '', CONCAT(' WHERE EXISTS (Select 1 from `', propertiesTable, '` AS prop WHERE prop.id = data.property_id AND (prop.id2=data.entity_id OR prop.id2=0))')));