Skip to content
Snippets Groups Projects
Select Git revision
  • db761bcb32adf52d70088b6c4fefdcf6af481152
  • main default protected
  • dev
  • f-unmod
  • f-checkidentical
  • f-simple-breakpoint
  • f-new-debug-tree
  • f-existing-file-id
  • f-no-ident
  • f-collect-problems
  • f-refactor-debug-tree
  • v0.13.0
  • v0.12.0
  • v0.11.0
  • v0.10.1
  • v0.10.0
  • v0.9.1
  • v0.9.0
  • v0.8.0
  • v0.7.1
  • v0.7.0
  • v0.6.0
  • v0.5.0
  • v0.4.0
  • v0.3.0
  • v0.2.0
  • v0.1.0
27 results

simulated_server_data.py

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    insertEntityDataType.sql 1023 B
    
    
    DROP PROCEDURE IF EXISTS db_5_0.insertEntityDataType;
    DELIMITER //
    
    CREATE PROCEDURE db_5_0.insertEntityDataType(in PropertyID INT UNSIGNED, in DataType VARCHAR(255))
    BEGIN
        DECLARE InternalPropertyID INT UNSIGNED DEFAULT NULL;
    
        SELECT internal_id INTO InternalPropertyID FROM entity_ids WHERE id=PropertyID;
    
        INSERT INTO data_type (domain_id, entity_id, property_id, datatype) SELECT 0, 0, InternalPropertyID, ( SELECT entity_id FROM name_data WHERE domain_id = 0 AND property_id = 20 AND value = DataType LIMIT 1);
    
    
    END;
    //
    DELIMITER ;
    
    
    DROP PROCEDURE IF EXISTS db_5_0.insertEntityCollection;
    DELIMITER //
    
    CREATE PROCEDURE db_5_0.insertEntityCollection(in PropertyID INT UNSIGNED, in Collection VARCHAR(255))
    BEGIN
        DECLARE InternalPropertyID INT UNSIGNED DEFAULT NULL;
    
        SELECT internal_id INTO InternalPropertyID FROM entity_ids WHERE id=PropertyID;
    
        INSERT INTO collection_type (domain_id, entity_id, property_id, collection) SELECT 0, 0, InternalPropertyID, Collection;
    
    END;
    //
    DELIMITER ;