From 3153110fdcd6f86f84161e172eb81f00425e12c7 Mon Sep 17 00:00:00 2001
From: Timm Fitschen <t.fitschen@indiscale.com>
Date: Tue, 4 Feb 2020 13:57:30 +0100
Subject: [PATCH] WIP: pipeline

---
 tests/test_autotap.sql       | 2737 ++++++++++++++++++++++++++++++++++
 tests/test_tables_caosdb.sql | 2737 ----------------------------------
 2 files changed, 2737 insertions(+), 2737 deletions(-)
 create mode 100644 tests/test_autotap.sql
 delete mode 100644 tests/test_tables_caosdb.sql

diff --git a/tests/test_autotap.sql b/tests/test_autotap.sql
new file mode 100644
index 0000000..f60bb3f
--- /dev/null
+++ b/tests/test_autotap.sql
@@ -0,0 +1,2737 @@
+-- ***************************************************************
+-- myTAP Testing Script
+-- ====================
+-- Generated: 2020-02-04
+-- This database testing script has been created by the autotap
+-- utility. The tests generated are in the TAP format for use with
+-- myTAP and are based on the current state of schema objects,
+-- with the database assumed to be in a known good state. All tests
+-- will pass but that does not guarantee the correctness of the
+-- state represented by the tests.
+-- 
+-- After the script is generated, any subsequent DDL changes,
+-- whether additions, deletions or modifications, will cause some
+-- of the tests to fail. This is intentional.
+-- 
+-- The purpose of the utility is to assist the process of
+-- retrofitting testing to existing projects. You should still check
+-- that the schema state represents what you intend and you should
+-- modify this script by hand to account for all subsequent changes.
+-- ***************************************************************
+
+
+-- ***************************************************************
+-- SCHEMA _caosdb_schema_unit_tests
+-- ***************************************************************
+
+USE tap;
+BEGIN;
+CALL tap.no_plan();
+SELECT tap.has_schema('_caosdb_schema_unit_tests','');
+
+-- ***************************************************************
+-- TABLES 
+-- ***************************************************************
+
+SELECT tap.tables_are('_caosdb_schema_unit_tests','`collection_type`,`data_type`,`date_data`,`datetime_data`,`desc_overrides`,`double_data`,`entities`,`entity_acl`,`enum_data`,`files`,`integer_data`,`isa_cache`,`logging`,`name_data`,`name_overrides`,`null_data`,`passwd`,`permissions`,`query_template_def`,`reference_data`,`roles`,`rules`,`stats`,`text_data`,`transaction_log`,`units_lin_con`,`user_info`,`user_roles`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.collection_type
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','collection_type','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','collection_type','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','collection_type','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','collection_type','`domain_id`,`entity_id`,`property_id`,`collection`','');
+
+-- COLUMN collection_type.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','collection_type','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','collection_type','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','collection_type','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','collection_type','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','collection_type','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','collection_type','domain_id',NULL,'');
+
+-- COLUMN collection_type.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','collection_type','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','collection_type','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','collection_type','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','collection_type','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','collection_type','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','collection_type','entity_id',NULL,'');
+
+-- COLUMN collection_type.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','collection_type','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','collection_type','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','collection_type','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','collection_type','property_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','collection_type','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','collection_type','property_id',NULL,'');
+
+-- COLUMN collection_type.collection
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','collection_type','collection','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','collection_type','collection','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','collection_type','collection','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','collection_type','collection',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','collection_type','collection','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','collection_type','collection','utf8_unicode_ci','');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','collection_type','`domain_id`,`entity_id`,`property_id`','');
+
+-- INDEX collection_type.domain_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','collection_type','domain_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','collection_type','domain_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','collection_type','`domain_id`,`entity_id`','');
+
+-- INDEX collection_type.entity_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','collection_type','entity_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','collection_type','entity_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','collection_type','`entity_id`','');
+
+-- INDEX collection_type.property_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','collection_type','property_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','collection_type','property_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','collection_type','`property_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','collection_type','`collection_type_domain_id_entity`,`collection_type_entity_id_entity`,`collection_type_property_id_entity`','');
+
+-- CONSTRAINT collection_type.collection_type_domain_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','collection_type','collection_type_domain_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','collection_type','collection_type_domain_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','collection_type','collection_type_domain_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','collection_type','collection_type_domain_id_entity','RESTRICT','');
+
+-- CONSTRAINT collection_type.collection_type_entity_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','collection_type','collection_type_entity_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','collection_type','collection_type_entity_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','collection_type','collection_type_entity_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','collection_type','collection_type_entity_id_entity','RESTRICT','');
+
+-- CONSTRAINT collection_type.collection_type_property_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','collection_type','collection_type_property_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','collection_type','collection_type_property_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','collection_type','collection_type_property_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','collection_type','collection_type_property_id_entity','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.data_type
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','data_type','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','data_type','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','data_type','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','data_type','`domain_id`,`entity_id`,`property_id`,`datatype`','');
+
+-- COLUMN data_type.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','data_type','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','data_type','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','data_type','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','data_type','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','data_type','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','data_type','domain_id',NULL,'');
+
+-- COLUMN data_type.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','data_type','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','data_type','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','data_type','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','data_type','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','data_type','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','data_type','entity_id',NULL,'');
+
+-- COLUMN data_type.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','data_type','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','data_type','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','data_type','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','data_type','property_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','data_type','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','data_type','property_id',NULL,'');
+
+-- COLUMN data_type.datatype
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','data_type','datatype','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','data_type','datatype','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','data_type','datatype','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','data_type','datatype',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','data_type','datatype',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','data_type','datatype',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','data_type','`name_ov_dom_ent_idx`','');
+
+-- INDEX data_type.name_ov_dom_ent_idx
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','data_type','name_ov_dom_ent_idx','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','data_type','name_ov_dom_ent_idx','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','data_type','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','data_type','`datatype_ukey`,`datatype_forkey_dom`,`datatype_forkey_ent`,`datatype_forkey_pro`,`datatype_forkey_type`','');
+
+-- CONSTRAINT data_type.datatype_forkey_dom
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','data_type','datatype_forkey_dom','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','data_type','datatype_forkey_dom','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','data_type','datatype_forkey_dom','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','data_type','datatype_forkey_dom','RESTRICT','');
+
+-- CONSTRAINT data_type.datatype_forkey_ent
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','data_type','datatype_forkey_ent','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','data_type','datatype_forkey_ent','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','data_type','datatype_forkey_ent','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','data_type','datatype_forkey_ent','RESTRICT','');
+
+-- CONSTRAINT data_type.datatype_forkey_pro
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','data_type','datatype_forkey_pro','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','data_type','datatype_forkey_pro','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','data_type','datatype_forkey_pro','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','data_type','datatype_forkey_pro','RESTRICT','');
+
+-- CONSTRAINT data_type.datatype_forkey_type
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','data_type','datatype_forkey_type','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','data_type','datatype_forkey_type','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','data_type','datatype_forkey_type','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','data_type','datatype_forkey_type','RESTRICT','');
+
+-- CONSTRAINT data_type.datatype_ukey
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','data_type','datatype_ukey','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','data_type','datatype_ukey','UNIQUE','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.date_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','date_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','date_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','date_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','date_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
+
+-- COLUMN date_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','date_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','date_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','date_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','date_data','domain_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','date_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','date_data','domain_id',NULL,'');
+
+-- COLUMN date_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','date_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','date_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','date_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','date_data','entity_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','date_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','date_data','entity_id',NULL,'');
+
+-- COLUMN date_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','date_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','date_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','date_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','date_data','property_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','date_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','date_data','property_id',NULL,'');
+
+-- COLUMN date_data.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','date_data','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','date_data','value','int(11)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','date_data','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','date_data','value',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','date_data','value',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','date_data','value',NULL,'');
+
+-- COLUMN date_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','date_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','date_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','date_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','date_data','status','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','date_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','date_data','status','utf8_unicode_ci','');
+
+-- COLUMN date_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','date_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','date_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','date_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','date_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','date_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','date_data','pidx',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','date_data','`date_data_dom_ent_idx`','');
+
+-- INDEX date_data.date_data_dom_ent_idx
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','date_data','date_data_dom_ent_idx','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','date_data','date_data_dom_ent_idx','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','date_data','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','date_data','`date_ov_forkey_dom`,`date_ov_forkey_ent`,`date_ov_forkey_pro`','');
+
+-- CONSTRAINT date_data.date_ov_forkey_dom
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','date_data','date_ov_forkey_dom','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','date_data','date_ov_forkey_dom','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','date_data','date_ov_forkey_dom','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','date_data','date_ov_forkey_dom','RESTRICT','');
+
+-- CONSTRAINT date_data.date_ov_forkey_ent
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','date_data','date_ov_forkey_ent','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','date_data','date_ov_forkey_ent','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','date_data','date_ov_forkey_ent','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','date_data','date_ov_forkey_ent','RESTRICT','');
+
+-- CONSTRAINT date_data.date_ov_forkey_pro
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','date_data','date_ov_forkey_pro','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','date_data','date_ov_forkey_pro','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','date_data','date_ov_forkey_pro','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','date_data','date_ov_forkey_pro','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.datetime_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','datetime_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','datetime_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','datetime_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','datetime_data','`domain_id`,`entity_id`,`property_id`,`status`,`pidx`,`value_ns`,`value`','');
+
+-- COLUMN datetime_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','datetime_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','datetime_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','datetime_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','datetime_data','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','datetime_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','datetime_data','domain_id',NULL,'');
+
+-- COLUMN datetime_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','datetime_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','datetime_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','datetime_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','datetime_data','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','datetime_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','datetime_data','entity_id',NULL,'');
+
+-- COLUMN datetime_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','datetime_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','datetime_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','datetime_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','datetime_data','property_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','datetime_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','datetime_data','property_id',NULL,'');
+
+-- COLUMN datetime_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','datetime_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','datetime_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','datetime_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','datetime_data','status',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','datetime_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','datetime_data','status','utf8_unicode_ci','');
+
+-- COLUMN datetime_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','datetime_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','datetime_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','datetime_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','datetime_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','datetime_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','datetime_data','pidx',NULL,'');
+
+-- COLUMN datetime_data.value_ns
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','datetime_data','value_ns','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','datetime_data','value_ns','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','datetime_data','value_ns','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','datetime_data','value_ns','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','datetime_data','value_ns',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','datetime_data','value_ns',NULL,'');
+
+-- COLUMN datetime_data.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','datetime_data','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','datetime_data','value','bigint(20)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','datetime_data','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','datetime_data','value',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','datetime_data','value',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','datetime_data','value',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','datetime_data','`domain_id`','');
+
+-- INDEX datetime_data.domain_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','datetime_data','domain_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','datetime_data','domain_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','datetime_data','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','datetime_data','`dat_domain_id_entity`,`dat_entity_id_entity`,`dat_property_id_entity`','');
+
+-- CONSTRAINT datetime_data.dat_domain_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','datetime_data','dat_domain_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','datetime_data','dat_domain_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','datetime_data','dat_domain_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','datetime_data','dat_domain_id_entity','RESTRICT','');
+
+-- CONSTRAINT datetime_data.dat_entity_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','datetime_data','dat_entity_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','datetime_data','dat_entity_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','datetime_data','dat_entity_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','datetime_data','dat_entity_id_entity','RESTRICT','');
+
+-- CONSTRAINT datetime_data.dat_property_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','datetime_data','dat_property_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','datetime_data','dat_property_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','datetime_data','dat_property_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','datetime_data','dat_property_id_entity','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.desc_overrides
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','desc_overrides','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','desc_overrides','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','desc_overrides','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','desc_overrides','`domain_id`,`entity_id`,`property_id`,`description`','');
+
+-- COLUMN desc_overrides.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','desc_overrides','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','desc_overrides','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','desc_overrides','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','desc_overrides','domain_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','desc_overrides','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','desc_overrides','domain_id',NULL,'');
+
+-- COLUMN desc_overrides.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','desc_overrides','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','desc_overrides','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','desc_overrides','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','desc_overrides','entity_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','desc_overrides','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','desc_overrides','entity_id',NULL,'');
+
+-- COLUMN desc_overrides.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','desc_overrides','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','desc_overrides','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','desc_overrides','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','desc_overrides','property_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','desc_overrides','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','desc_overrides','property_id',NULL,'');
+
+-- COLUMN desc_overrides.description
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','desc_overrides','description','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','desc_overrides','description','text','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','desc_overrides','description','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','desc_overrides','description','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','desc_overrides','description','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','desc_overrides','description','utf8_unicode_ci','');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','desc_overrides','`desc_ov_dom_ent_idx`','');
+
+-- INDEX desc_overrides.desc_ov_dom_ent_idx
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','desc_overrides','desc_ov_dom_ent_idx','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','desc_overrides','desc_ov_dom_ent_idx','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','desc_overrides','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','desc_overrides','`desc_ov_ukey`,`desc_ov_forkey_dom`,`desc_ov_forkey_ent`,`desc_ov_forkey_pro`','');
+
+-- CONSTRAINT desc_overrides.desc_ov_forkey_dom
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_dom','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_dom','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_dom','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_dom','RESTRICT','');
+
+-- CONSTRAINT desc_overrides.desc_ov_forkey_ent
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_ent','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_ent','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_ent','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_ent','RESTRICT','');
+
+-- CONSTRAINT desc_overrides.desc_ov_forkey_pro
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_pro','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_pro','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_pro','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','desc_overrides','desc_ov_forkey_pro','RESTRICT','');
+
+-- CONSTRAINT desc_overrides.desc_ov_ukey
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','desc_overrides','desc_ov_ukey','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','desc_overrides','desc_ov_ukey','UNIQUE','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.double_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','double_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','double_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','double_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','double_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`,`unit_sig`','');
+
+-- COLUMN double_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','double_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','double_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','double_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','double_data','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','double_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','double_data','domain_id',NULL,'');
+
+-- COLUMN double_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','double_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','double_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','double_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','double_data','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','double_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','double_data','entity_id',NULL,'');
+
+-- COLUMN double_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','double_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','double_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','double_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','double_data','property_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','double_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','double_data','property_id',NULL,'');
+
+-- COLUMN double_data.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','double_data','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','double_data','value','double','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','double_data','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','double_data','value',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','double_data','value',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','double_data','value',NULL,'');
+
+-- COLUMN double_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','double_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','double_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','double_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','double_data','status',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','double_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','double_data','status','utf8_unicode_ci','');
+
+-- COLUMN double_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','double_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','double_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','double_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','double_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','double_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','double_data','pidx',NULL,'');
+
+-- COLUMN double_data.unit_sig
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','double_data','unit_sig','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','double_data','unit_sig','bigint(20)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','double_data','unit_sig','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','double_data','unit_sig','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','double_data','unit_sig',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','double_data','unit_sig',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','double_data','`domain_id`','');
+
+-- INDEX double_data.domain_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','double_data','domain_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','double_data','domain_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','double_data','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','double_data','`dou_domain_id_entity`,`dou_entity_id_entity`,`dou_property_id_entity`','');
+
+-- CONSTRAINT double_data.dou_domain_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','double_data','dou_domain_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','double_data','dou_domain_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','double_data','dou_domain_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','double_data','dou_domain_id_entity','RESTRICT','');
+
+-- CONSTRAINT double_data.dou_entity_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','double_data','dou_entity_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','double_data','dou_entity_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','double_data','dou_entity_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','double_data','dou_entity_id_entity','RESTRICT','');
+
+-- CONSTRAINT double_data.dou_property_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','double_data','dou_property_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','double_data','dou_property_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','double_data','dou_property_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','double_data','dou_property_id_entity','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.entities
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','entities','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','entities','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','entities','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','entities','`id`,`name`,`description`,`role`,`acl`','');
+
+-- COLUMN entities.id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','entities','id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','entities','id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','entities','id','auto_increment','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','entities','id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','entities','id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','entities','id',NULL,'');
+
+-- COLUMN entities.name
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','entities','name','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','entities','name','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','entities','name','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','entities','name','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','entities','name','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','entities','name','utf8_unicode_ci','');
+
+-- COLUMN entities.description
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','entities','description','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','entities','description','text','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','entities','description','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','entities','description','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','entities','description','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','entities','description','utf8_unicode_ci','');
+
+-- COLUMN entities.role
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','entities','role','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','entities','role','enum(\'RECORDTYPE\',\'RECORD\',\'FILE\',\'DOMAIN\',\'PROPERTY\',\'DATATYPE\',\'ROLE\',\'QUERYTEMPLATE\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','entities','role','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','entities','role',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','entities','role','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','entities','role','utf8_unicode_ci','');
+
+-- COLUMN entities.acl
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','entities','acl','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','entities','acl','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','entities','acl','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','entities','acl','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','entities','acl',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','entities','acl',NULL,'');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','entities','`PRIMARY`,`entity_entity_acl`','');
+
+-- CONSTRAINT entities.entity_entity_acl
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','entities','entity_entity_acl','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','entities','entity_entity_acl','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','entities','entity_entity_acl','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','entities','entity_entity_acl','RESTRICT','');
+
+-- CONSTRAINT entities.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','entities','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','entities','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','entities','`id`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.entity_acl
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','entity_acl','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','entity_acl','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','entity_acl','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','entity_acl','`id`,`acl`','');
+
+-- COLUMN entity_acl.id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','entity_acl','id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','entity_acl','id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','entity_acl','id','auto_increment','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','entity_acl','id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','entity_acl','id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','entity_acl','id',NULL,'');
+
+-- COLUMN entity_acl.acl
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','entity_acl','acl','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','entity_acl','acl','varbinary(65525)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','entity_acl','acl','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','entity_acl','acl',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','entity_acl','acl',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','entity_acl','acl',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','entity_acl','`entity_acl_acl`','');
+
+-- INDEX entity_acl.entity_acl_acl
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','entity_acl','entity_acl_acl','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','entity_acl','entity_acl_acl','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','entity_acl','`acl`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','entity_acl','`PRIMARY`','');
+
+-- CONSTRAINT entity_acl.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','entity_acl','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','entity_acl','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','entity_acl','`id`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.enum_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','enum_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','enum_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','enum_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','enum_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
+
+-- COLUMN enum_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','enum_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','enum_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','enum_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','enum_data','domain_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','enum_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','enum_data','domain_id',NULL,'');
+
+-- COLUMN enum_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','enum_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','enum_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','enum_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','enum_data','entity_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','enum_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','enum_data','entity_id',NULL,'');
+
+-- COLUMN enum_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','enum_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','enum_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','enum_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','enum_data','property_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','enum_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','enum_data','property_id',NULL,'');
+
+-- COLUMN enum_data.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','enum_data','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','enum_data','value','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','enum_data','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','enum_data','value',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','enum_data','value',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','enum_data','value',NULL,'');
+
+-- COLUMN enum_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','enum_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','enum_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','enum_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','enum_data','status','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','enum_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','enum_data','status','utf8_unicode_ci','');
+
+-- COLUMN enum_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','enum_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','enum_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','enum_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','enum_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','enum_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','enum_data','pidx',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','enum_data','`enum_ov_dom_ent_idx`','');
+
+-- INDEX enum_data.enum_ov_dom_ent_idx
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','enum_data','enum_ov_dom_ent_idx','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','enum_data','enum_ov_dom_ent_idx','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','enum_data','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','enum_data','`enum_ov_forkey_dom`,`enum_ov_forkey_ent`,`enum_ov_forkey_pro`','');
+
+-- CONSTRAINT enum_data.enum_ov_forkey_dom
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_dom','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_dom','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_dom','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_dom','RESTRICT','');
+
+-- CONSTRAINT enum_data.enum_ov_forkey_ent
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_ent','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_ent','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_ent','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_ent','RESTRICT','');
+
+-- CONSTRAINT enum_data.enum_ov_forkey_pro
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_pro','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_pro','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_pro','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','enum_data','enum_ov_forkey_pro','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.files
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','files','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','files','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','files','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','files','`file_id`,`path`,`size`,`hash`,`checked_timestamp`','');
+
+-- COLUMN files.file_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','files','file_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','files','file_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','files','file_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','files','file_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','files','file_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','files','file_id',NULL,'');
+
+-- COLUMN files.path
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','files','path','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','files','path','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','files','path','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','files','path',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','files','path','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','files','path','utf8_unicode_ci','');
+
+-- COLUMN files.size
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','files','size','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','files','size','bigint(20) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','files','size','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','files','size',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','files','size',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','files','size',NULL,'');
+
+-- COLUMN files.hash
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','files','hash','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','files','hash','binary(64)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','files','hash','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','files','hash','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','files','hash',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','files','hash',NULL,'');
+
+-- COLUMN files.checked_timestamp
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','files','checked_timestamp','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','files','checked_timestamp','bigint(20)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','files','checked_timestamp','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','files','checked_timestamp',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','files','checked_timestamp',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','files','checked_timestamp',NULL,'');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','files','`PRIMARY`,`fil_file_id_entity`','');
+
+-- CONSTRAINT files.fil_file_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','files','fil_file_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','files','fil_file_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','files','fil_file_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','files','fil_file_id_entity','RESTRICT','');
+
+-- CONSTRAINT files.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','files','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','files','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','files','`file_id`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.integer_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','integer_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','integer_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','integer_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','integer_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`,`unit_sig`','');
+
+-- COLUMN integer_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','integer_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','integer_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','integer_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','integer_data','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','integer_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','integer_data','domain_id',NULL,'');
+
+-- COLUMN integer_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','integer_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','integer_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','integer_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','integer_data','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','integer_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','integer_data','entity_id',NULL,'');
+
+-- COLUMN integer_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','integer_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','integer_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','integer_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','integer_data','property_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','integer_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','integer_data','property_id',NULL,'');
+
+-- COLUMN integer_data.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','integer_data','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','integer_data','value','bigint(20)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','integer_data','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','integer_data','value',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','integer_data','value',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','integer_data','value',NULL,'');
+
+-- COLUMN integer_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','integer_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','integer_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','integer_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','integer_data','status',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','integer_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','integer_data','status','utf8_unicode_ci','');
+
+-- COLUMN integer_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','integer_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','integer_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','integer_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','integer_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','integer_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','integer_data','pidx',NULL,'');
+
+-- COLUMN integer_data.unit_sig
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','integer_data','unit_sig','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','integer_data','unit_sig','bigint(20)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','integer_data','unit_sig','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','integer_data','unit_sig','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','integer_data','unit_sig',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','integer_data','unit_sig',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','integer_data','`domain_id`','');
+
+-- INDEX integer_data.domain_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','integer_data','domain_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','integer_data','domain_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','integer_data','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','integer_data','`int_domain_id_entity`,`int_entity_id_entity`,`int_property_id_entity`','');
+
+-- CONSTRAINT integer_data.int_domain_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','integer_data','int_domain_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','integer_data','int_domain_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','integer_data','int_domain_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','integer_data','int_domain_id_entity','RESTRICT','');
+
+-- CONSTRAINT integer_data.int_entity_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','integer_data','int_entity_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','integer_data','int_entity_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','integer_data','int_entity_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','integer_data','int_entity_id_entity','RESTRICT','');
+
+-- CONSTRAINT integer_data.int_property_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','integer_data','int_property_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','integer_data','int_property_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','integer_data','int_property_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','integer_data','int_property_id_entity','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.isa_cache
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','isa_cache','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','isa_cache','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','isa_cache','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','isa_cache','`child`,`parent`,`rpath`','');
+
+-- COLUMN isa_cache.child
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','isa_cache','child','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','isa_cache','child','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','isa_cache','child','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','isa_cache','child',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','isa_cache','child',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','isa_cache','child',NULL,'');
+
+-- COLUMN isa_cache.parent
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','isa_cache','parent','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','isa_cache','parent','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','isa_cache','parent','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','isa_cache','parent',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','isa_cache','parent',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','isa_cache','parent',NULL,'');
+
+-- COLUMN isa_cache.rpath
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','isa_cache','rpath','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','isa_cache','rpath','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','isa_cache','rpath','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','isa_cache','rpath',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','isa_cache','rpath','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','isa_cache','rpath','utf8_unicode_ci','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','isa_cache','`PRIMARY`,`isa_cache_child_entity`,`isa_cache_parent_entity`','');
+
+-- CONSTRAINT isa_cache.isa_cache_child_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','isa_cache','isa_cache_child_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','isa_cache','isa_cache_child_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','isa_cache','isa_cache_child_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','isa_cache','isa_cache_child_entity','RESTRICT','');
+
+-- CONSTRAINT isa_cache.isa_cache_parent_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','isa_cache','isa_cache_parent_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','isa_cache','isa_cache_parent_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','isa_cache','isa_cache_parent_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','isa_cache','isa_cache_parent_entity','RESTRICT','');
+
+-- CONSTRAINT isa_cache.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','isa_cache','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','isa_cache','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','isa_cache','`child`,`parent`,`rpath`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.logging
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','logging','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','logging','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','logging','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','logging','`level`,`logger`,`message`,`millis`,`logRecord`','');
+
+-- COLUMN logging.level
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','logging','level','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','logging','level','int(11)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','logging','level','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','logging','level',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','logging','level',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','logging','level',NULL,'');
+
+-- COLUMN logging.logger
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','logging','logger','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','logging','logger','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','logging','logger','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','logging','logger',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','logging','logger','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','logging','logger','utf8_unicode_ci','');
+
+-- COLUMN logging.message
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','logging','message','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','logging','message','mediumtext','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','logging','message','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','logging','message',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','logging','message','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','logging','message','utf8_unicode_ci','');
+
+-- COLUMN logging.millis
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','logging','millis','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','logging','millis','bigint(20)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','logging','millis','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','logging','millis',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','logging','millis',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','logging','millis',NULL,'');
+
+-- COLUMN logging.logRecord
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','logging','logRecord','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','logging','logRecord','blob','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','logging','logRecord','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','logging','logRecord',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','logging','logRecord',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','logging','logRecord',NULL,'');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.name_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','name_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','name_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','name_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','name_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
+
+-- COLUMN name_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_data','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_data','domain_id',NULL,'');
+
+-- COLUMN name_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_data','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_data','entity_id',NULL,'');
+
+-- COLUMN name_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_data','property_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_data','property_id',NULL,'');
+
+-- COLUMN name_data.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_data','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_data','value','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_data','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_data','value',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_data','value','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_data','value','utf8_unicode_ci','');
+
+-- COLUMN name_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_data','status',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_data','status','utf8_unicode_ci','');
+
+-- COLUMN name_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_data','pidx',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','name_data','`domain_id`,`entity_id`,`property_id`,`value`','');
+
+-- INDEX name_data.domain_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','name_data','domain_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','name_data','domain_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','name_data','`domain_id`,`entity_id`','');
+
+-- INDEX name_data.entity_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','name_data','entity_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','name_data','entity_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','name_data','`entity_id`','');
+
+-- INDEX name_data.property_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','name_data','property_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','name_data','property_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','name_data','`property_id`','');
+
+-- INDEX name_data.value
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','name_data','value','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','name_data','value','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','name_data','`value`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','name_data','`name_data_domain_id_entity`,`name_data_entity_id_entity`,`name_data_property_id_entity`','');
+
+-- CONSTRAINT name_data.name_data_domain_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','name_data','name_data_domain_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','name_data','name_data_domain_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','name_data','name_data_domain_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','name_data','name_data_domain_id_entity','RESTRICT','');
+
+-- CONSTRAINT name_data.name_data_entity_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','name_data','name_data_entity_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','name_data','name_data_entity_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','name_data','name_data_entity_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','name_data','name_data_entity_id_entity','RESTRICT','');
+
+-- CONSTRAINT name_data.name_data_property_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','name_data','name_data_property_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','name_data','name_data_property_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','name_data','name_data_property_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','name_data','name_data_property_id_entity','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.name_overrides
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','name_overrides','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','name_overrides','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','name_overrides','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','name_overrides','`domain_id`,`entity_id`,`property_id`,`name`','');
+
+-- COLUMN name_overrides.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_overrides','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_overrides','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_overrides','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_overrides','domain_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_overrides','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_overrides','domain_id',NULL,'');
+
+-- COLUMN name_overrides.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_overrides','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_overrides','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_overrides','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_overrides','entity_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_overrides','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_overrides','entity_id',NULL,'');
+
+-- COLUMN name_overrides.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_overrides','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_overrides','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_overrides','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_overrides','property_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_overrides','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_overrides','property_id',NULL,'');
+
+-- COLUMN name_overrides.name
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','name_overrides','name','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','name_overrides','name','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','name_overrides','name','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','name_overrides','name','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','name_overrides','name','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','name_overrides','name','utf8_unicode_ci','');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','name_overrides','`name_ov_dom_ent_idx`','');
+
+-- INDEX name_overrides.name_ov_dom_ent_idx
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','name_overrides','name_ov_dom_ent_idx','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','name_overrides','name_ov_dom_ent_idx','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','name_overrides','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','name_overrides','`name_ov_ukey`,`name_ov_forkey_dom`,`name_ov_forkey_ent`,`name_ov_forkey_pro`','');
+
+-- CONSTRAINT name_overrides.name_ov_forkey_dom
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_dom','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_dom','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_dom','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_dom','RESTRICT','');
+
+-- CONSTRAINT name_overrides.name_ov_forkey_ent
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_ent','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_ent','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_ent','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_ent','RESTRICT','');
+
+-- CONSTRAINT name_overrides.name_ov_forkey_pro
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_pro','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_pro','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_pro','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','name_overrides','name_ov_forkey_pro','RESTRICT','');
+
+-- CONSTRAINT name_overrides.name_ov_ukey
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','name_overrides','name_ov_ukey','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','name_overrides','name_ov_ukey','UNIQUE','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.null_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','null_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','null_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','null_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','null_data','`domain_id`,`entity_id`,`property_id`,`status`,`pidx`','');
+
+-- COLUMN null_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','null_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','null_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','null_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','null_data','domain_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','null_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','null_data','domain_id',NULL,'');
+
+-- COLUMN null_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','null_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','null_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','null_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','null_data','entity_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','null_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','null_data','entity_id',NULL,'');
+
+-- COLUMN null_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','null_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','null_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','null_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','null_data','property_id','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','null_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','null_data','property_id',NULL,'');
+
+-- COLUMN null_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','null_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','null_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','null_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','null_data','status','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','null_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','null_data','status','utf8_unicode_ci','');
+
+-- COLUMN null_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','null_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','null_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','null_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','null_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','null_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','null_data','pidx',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','null_data','`null_data_dom_ent_idx`','');
+
+-- INDEX null_data.null_data_dom_ent_idx
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','null_data','null_data_dom_ent_idx','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','null_data','null_data_dom_ent_idx','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','null_data','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','null_data','`null_forkey_dom`,`null_forkey_ent`,`null_forkey_pro`','');
+
+-- CONSTRAINT null_data.null_forkey_dom
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','null_data','null_forkey_dom','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','null_data','null_forkey_dom','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','null_data','null_forkey_dom','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','null_data','null_forkey_dom','RESTRICT','');
+
+-- CONSTRAINT null_data.null_forkey_ent
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','null_data','null_forkey_ent','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','null_data','null_forkey_ent','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','null_data','null_forkey_ent','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','null_data','null_forkey_ent','RESTRICT','');
+
+-- CONSTRAINT null_data.null_forkey_pro
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','null_data','null_forkey_pro','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','null_data','null_forkey_pro','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','null_data','null_forkey_pro','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','null_data','null_forkey_pro','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.passwd
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','passwd','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','passwd','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','passwd','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','passwd','`principal`,`hash`,`alg`,`it`,`salt`','');
+
+-- COLUMN passwd.principal
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','passwd','principal','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','passwd','principal','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','passwd','principal','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','passwd','principal',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','passwd','principal',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','passwd','principal',NULL,'');
+
+-- COLUMN passwd.hash
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','passwd','hash','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','passwd','hash','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','passwd','hash','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','passwd','hash',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','passwd','hash',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','passwd','hash',NULL,'');
+
+-- COLUMN passwd.alg
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','passwd','alg','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','passwd','alg','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','passwd','alg','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','passwd','alg','\'SHA-512\'','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','passwd','alg','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','passwd','alg','utf8_unicode_ci','');
+
+-- COLUMN passwd.it
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','passwd','it','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','passwd','it','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','passwd','it','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','passwd','it',5000,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','passwd','it',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','passwd','it',NULL,'');
+
+-- COLUMN passwd.salt
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','passwd','salt','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','passwd','salt','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','passwd','salt','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','passwd','salt',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','passwd','salt',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','passwd','salt',NULL,'');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','passwd','`PRIMARY`','');
+
+-- CONSTRAINT passwd.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','passwd','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','passwd','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','passwd','`principal`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.permissions
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','permissions','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','permissions','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','permissions','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','permissions','`role`,`permissions`','');
+
+-- COLUMN permissions.role
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','permissions','role','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','permissions','role','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','permissions','role','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','permissions','role',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','permissions','role',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','permissions','role',NULL,'');
+
+-- COLUMN permissions.permissions
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','permissions','permissions','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','permissions','permissions','mediumtext','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','permissions','permissions','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','permissions','permissions',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','permissions','permissions','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','permissions','permissions','utf8_unicode_ci','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','permissions','`PRIMARY`,`perm_name_roles`','');
+
+-- CONSTRAINT permissions.perm_name_roles
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','permissions','perm_name_roles','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','permissions','perm_name_roles','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','permissions','perm_name_roles','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','permissions','perm_name_roles','RESTRICT','');
+
+-- CONSTRAINT permissions.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','permissions','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','permissions','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','permissions','`role`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.query_template_def
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','query_template_def','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','query_template_def','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','query_template_def','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','query_template_def','`id`,`definition`','');
+
+-- COLUMN query_template_def.id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','query_template_def','id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','query_template_def','id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','query_template_def','id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','query_template_def','id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','query_template_def','id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','query_template_def','id',NULL,'');
+
+-- COLUMN query_template_def.definition
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','query_template_def','definition','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','query_template_def','definition','mediumtext','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','query_template_def','definition','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','query_template_def','definition',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','query_template_def','definition','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','query_template_def','definition','utf8_unicode_ci','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','query_template_def','`PRIMARY`,`query_template_def_ibfk_1`','');
+
+-- CONSTRAINT query_template_def.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','query_template_def','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','query_template_def','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','query_template_def','`id`','');
+
+-- CONSTRAINT query_template_def.query_template_def_ibfk_1
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','query_template_def','query_template_def_ibfk_1','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','query_template_def','query_template_def_ibfk_1','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','query_template_def','query_template_def_ibfk_1','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','query_template_def','query_template_def_ibfk_1','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.reference_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','reference_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','reference_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','reference_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','reference_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
+
+-- COLUMN reference_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','reference_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','reference_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','reference_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','reference_data','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','reference_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','reference_data','domain_id',NULL,'');
+
+-- COLUMN reference_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','reference_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','reference_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','reference_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','reference_data','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','reference_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','reference_data','entity_id',NULL,'');
+
+-- COLUMN reference_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','reference_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','reference_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','reference_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','reference_data','property_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','reference_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','reference_data','property_id',NULL,'');
+
+-- COLUMN reference_data.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','reference_data','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','reference_data','value','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','reference_data','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','reference_data','value',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','reference_data','value',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','reference_data','value',NULL,'');
+
+-- COLUMN reference_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','reference_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','reference_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','reference_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','reference_data','status',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','reference_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','reference_data','status','utf8_unicode_ci','');
+
+-- COLUMN reference_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','reference_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','reference_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','reference_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','reference_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','reference_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','reference_data','pidx',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','reference_data','`entity_id`','');
+
+-- INDEX reference_data.entity_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','reference_data','entity_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','reference_data','entity_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','reference_data','`entity_id`,`property_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','reference_data','`ref_domain_id_entity`,`ref_entity_id_entity`,`ref_property_id_entity`,`ref_value_entity`','');
+
+-- CONSTRAINT reference_data.ref_domain_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','reference_data','ref_domain_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','reference_data','ref_domain_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','reference_data','ref_domain_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','reference_data','ref_domain_id_entity','RESTRICT','');
+
+-- CONSTRAINT reference_data.ref_entity_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','reference_data','ref_entity_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','reference_data','ref_entity_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','reference_data','ref_entity_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','reference_data','ref_entity_id_entity','RESTRICT','');
+
+-- CONSTRAINT reference_data.ref_property_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','reference_data','ref_property_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','reference_data','ref_property_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','reference_data','ref_property_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','reference_data','ref_property_id_entity','RESTRICT','');
+
+-- CONSTRAINT reference_data.ref_value_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','reference_data','ref_value_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','reference_data','ref_value_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','reference_data','ref_value_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','reference_data','ref_value_entity','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.roles
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','roles','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','roles','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','roles','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','roles','`name`,`description`','');
+
+-- COLUMN roles.name
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','roles','name','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','roles','name','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','roles','name','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','roles','name',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','roles','name',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','roles','name',NULL,'');
+
+-- COLUMN roles.description
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','roles','description','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','roles','description','mediumtext','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','roles','description','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','roles','description','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','roles','description','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','roles','description','utf8_unicode_ci','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','roles','`PRIMARY`','');
+
+-- CONSTRAINT roles.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','roles','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','roles','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','roles','`name`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.rules
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','rules','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','rules','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','rules','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','rules','`domain_id`,`entity_id`,`transaction`,`criterion`,`modus`','');
+
+-- COLUMN rules.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','rules','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','rules','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','rules','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','rules','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','rules','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','rules','domain_id',NULL,'');
+
+-- COLUMN rules.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','rules','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','rules','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','rules','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','rules','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','rules','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','rules','entity_id',NULL,'');
+
+-- COLUMN rules.transaction
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','rules','transaction','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','rules','transaction','enum(\'INSERT\',\'RETRIEVE\',\'UPDATE\',\'DELETE\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','rules','transaction','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','rules','transaction',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','rules','transaction','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','rules','transaction','utf8_unicode_ci','');
+
+-- COLUMN rules.criterion
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','rules','criterion','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','rules','criterion','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','rules','criterion','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','rules','criterion',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','rules','criterion','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','rules','criterion','utf8_unicode_ci','');
+
+-- COLUMN rules.modus
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','rules','modus','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','rules','modus','enum(\'MUST\',\'SHOULD\',\'SHOULDNT\',\'MUSTNOT\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','rules','modus','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','rules','modus',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','rules','modus','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','rules','modus','utf8_unicode_ci','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','rules','`rule_domain_id_entity`,`rule_entity_id_entity`','');
+
+-- CONSTRAINT rules.rule_domain_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','rules','rule_domain_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','rules','rule_domain_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','rules','rule_domain_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','rules','rule_domain_id_entity','RESTRICT','');
+
+-- CONSTRAINT rules.rule_entity_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','rules','rule_entity_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','rules','rule_entity_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','rules','rule_entity_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','rules','rule_entity_id_entity','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.stats
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','stats','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','stats','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','stats','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','stats','`name`,`value`','');
+
+-- COLUMN stats.name
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','stats','name','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','stats','name','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','stats','name','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','stats','name',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','stats','name','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','stats','name','utf8_unicode_ci','');
+
+-- COLUMN stats.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','stats','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','stats','value','blob','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','stats','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','stats','value','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','stats','value',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','stats','value',NULL,'');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','stats','`PRIMARY`','');
+
+-- CONSTRAINT stats.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','stats','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','stats','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','stats','`name`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.text_data
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','text_data','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','text_data','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','text_data','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','text_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
+
+-- COLUMN text_data.domain_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','text_data','domain_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','text_data','domain_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','text_data','domain_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','text_data','domain_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','text_data','domain_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','text_data','domain_id',NULL,'');
+
+-- COLUMN text_data.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','text_data','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','text_data','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','text_data','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','text_data','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','text_data','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','text_data','entity_id',NULL,'');
+
+-- COLUMN text_data.property_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','text_data','property_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','text_data','property_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','text_data','property_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','text_data','property_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','text_data','property_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','text_data','property_id',NULL,'');
+
+-- COLUMN text_data.value
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','text_data','value','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','text_data','value','text','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','text_data','value','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','text_data','value',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','text_data','value','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','text_data','value','utf8_unicode_ci','');
+
+-- COLUMN text_data.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','text_data','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','text_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','text_data','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','text_data','status',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','text_data','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','text_data','status','utf8_unicode_ci','');
+
+-- COLUMN text_data.pidx
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','text_data','pidx','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','text_data','pidx','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','text_data','pidx','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','text_data','pidx',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','text_data','pidx',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','text_data','pidx',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','text_data','`domain_id`','');
+
+-- INDEX text_data.domain_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','text_data','domain_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','text_data','domain_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','text_data','`domain_id`,`entity_id`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','text_data','`str_domain_id_entity`,`str_entity_id_entity`,`str_property_id_entity`','');
+
+-- CONSTRAINT text_data.str_domain_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','text_data','str_domain_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','text_data','str_domain_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','text_data','str_domain_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','text_data','str_domain_id_entity','RESTRICT','');
+
+-- CONSTRAINT text_data.str_entity_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','text_data','str_entity_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','text_data','str_entity_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','text_data','str_entity_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','text_data','str_entity_id_entity','RESTRICT','');
+
+-- CONSTRAINT text_data.str_property_id_entity
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','text_data','str_property_id_entity','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','text_data','str_property_id_entity','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','text_data','str_property_id_entity','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','text_data','str_property_id_entity','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.transaction_log
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','transaction_log','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','transaction_log','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','transaction_log','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','transaction_log','`transaction`,`entity_id`,`username`,`seconds`,`nanos`,`realm`','');
+
+-- COLUMN transaction_log.transaction
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','transaction_log','transaction','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','transaction_log','transaction','varchar(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','transaction_log','transaction','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','transaction_log','transaction',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','transaction_log','transaction','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','transaction_log','transaction','utf8_unicode_ci','');
+
+-- COLUMN transaction_log.entity_id
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','transaction_log','entity_id','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','transaction_log','entity_id','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','transaction_log','entity_id','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','transaction_log','entity_id',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','transaction_log','entity_id',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','transaction_log','entity_id',NULL,'');
+
+-- COLUMN transaction_log.username
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','transaction_log','username','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','transaction_log','username','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','transaction_log','username','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','transaction_log','username',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','transaction_log','username',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','transaction_log','username',NULL,'');
+
+-- COLUMN transaction_log.seconds
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','transaction_log','seconds','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','transaction_log','seconds','bigint(20) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','transaction_log','seconds','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','transaction_log','seconds',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','transaction_log','seconds',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','transaction_log','seconds',NULL,'');
+
+-- COLUMN transaction_log.nanos
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','transaction_log','nanos','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','transaction_log','nanos','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','transaction_log','nanos','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','transaction_log','nanos',0,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','transaction_log','nanos',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','transaction_log','nanos',NULL,'');
+
+-- COLUMN transaction_log.realm
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','transaction_log','realm','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','transaction_log','realm','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','transaction_log','realm','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','transaction_log','realm',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','transaction_log','realm',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','transaction_log','realm',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','transaction_log','`entity_id`','');
+
+-- INDEX transaction_log.entity_id
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','transaction_log','entity_id','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','transaction_log','entity_id','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','transaction_log','`entity_id`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.units_lin_con
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','units_lin_con','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','units_lin_con','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','units_lin_con','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','units_lin_con','`signature_from`,`signature_to`,`a`,`b_dividend`,`b_divisor`,`c`','');
+
+-- COLUMN units_lin_con.signature_from
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','units_lin_con','signature_from','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','units_lin_con','signature_from','bigint(20)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','units_lin_con','signature_from','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','units_lin_con','signature_from',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','units_lin_con','signature_from',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','units_lin_con','signature_from',NULL,'');
+
+-- COLUMN units_lin_con.signature_to
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','units_lin_con','signature_to','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','units_lin_con','signature_to','bigint(20)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','units_lin_con','signature_to','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','units_lin_con','signature_to',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','units_lin_con','signature_to',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','units_lin_con','signature_to',NULL,'');
+
+-- COLUMN units_lin_con.a
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','units_lin_con','a','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','units_lin_con','a','decimal(65,30)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','units_lin_con','a','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','units_lin_con','a',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','units_lin_con','a',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','units_lin_con','a',NULL,'');
+
+-- COLUMN units_lin_con.b_dividend
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','units_lin_con','b_dividend','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','units_lin_con','b_dividend','int(11)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','units_lin_con','b_dividend','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','units_lin_con','b_dividend',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','units_lin_con','b_dividend',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','units_lin_con','b_dividend',NULL,'');
+
+-- COLUMN units_lin_con.b_divisor
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','units_lin_con','b_divisor','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','units_lin_con','b_divisor','int(11)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','units_lin_con','b_divisor','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','units_lin_con','b_divisor',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','units_lin_con','b_divisor',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','units_lin_con','b_divisor',NULL,'');
+
+-- COLUMN units_lin_con.c
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','units_lin_con','c','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','units_lin_con','c','decimal(65,30)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','units_lin_con','c','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','units_lin_con','c',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','units_lin_con','c',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','units_lin_con','c',NULL,'');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','units_lin_con','`PRIMARY`','');
+
+-- CONSTRAINT units_lin_con.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','units_lin_con','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','units_lin_con','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','units_lin_con','`signature_from`','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.user_info
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','user_info','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','user_info','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','user_info','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','user_info','`realm`,`name`,`email`,`status`,`entity`','');
+
+-- COLUMN user_info.realm
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','user_info','realm','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','user_info','realm','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','user_info','realm','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','user_info','realm',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','user_info','realm',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','user_info','realm',NULL,'');
+
+-- COLUMN user_info.name
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','user_info','name','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','user_info','name','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','user_info','name','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','user_info','name',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','user_info','name',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','user_info','name',NULL,'');
+
+-- COLUMN user_info.email
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','user_info','email','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','user_info','email','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','user_info','email','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','user_info','email','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','user_info','email',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','user_info','email',NULL,'');
+
+-- COLUMN user_info.status
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','user_info','status','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','user_info','status','enum(\'ACTIVE\',\'INACTIVE\')','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','user_info','status','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','user_info','status','\'INACTIVE\'','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','user_info','status','utf8','');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','user_info','status','utf8_unicode_ci','');
+
+-- COLUMN user_info.entity
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','user_info','entity','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','user_info','entity','int(10) unsigned','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','user_info','entity','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','user_info','entity','NULL','');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','user_info','entity',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','user_info','entity',NULL,'');
+
+-- INDEXES
+SELECT tap.indexes_are('_caosdb_schema_unit_tests','user_info','`subject_entity`','');
+
+-- INDEX user_info.subject_entity
+
+SELECT tap.has_index('_caosdb_schema_unit_tests','user_info','subject_entity','');
+SELECT tap.index_is_type('_caosdb_schema_unit_tests','user_info','subject_entity','BTREE','');
+SELECT tap.is_indexed('_caosdb_schema_unit_tests','user_info','`entity`','');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','user_info','`PRIMARY`,`subjects_ibfk_1`','');
+
+-- CONSTRAINT user_info.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','user_info','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','user_info','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','user_info','`realm`,`name`','');
+
+-- CONSTRAINT user_info.subjects_ibfk_1
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','user_info','subjects_ibfk_1','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','user_info','subjects_ibfk_1','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','user_info','subjects_ibfk_1','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','user_info','subjects_ibfk_1','RESTRICT','');
+
+-- ***************************************************************
+-- TABLE _caosdb_schema_unit_tests.user_roles
+-- ***************************************************************
+
+SELECT tap.has_table('_caosdb_schema_unit_tests','user_roles','');
+SELECT tap.table_collation_is('_caosdb_schema_unit_tests','user_roles','utf8_unicode_ci','');
+SELECT tap.table_engine_is('_caosdb_schema_unit_tests','user_roles','InnoDB','');
+
+-- COLUMNS
+SELECT tap.columns_are('_caosdb_schema_unit_tests','user_roles','`realm`,`user`,`role`','');
+
+-- COLUMN user_roles.realm
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','user_roles','realm','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','user_roles','realm','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','user_roles','realm','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','user_roles','realm',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','user_roles','realm',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','user_roles','realm',NULL,'');
+
+-- COLUMN user_roles.user
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','user_roles','user','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','user_roles','user','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','user_roles','user','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','user_roles','user',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','user_roles','user',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','user_roles','user',NULL,'');
+
+-- COLUMN user_roles.role
+
+SELECT tap.has_column('_caosdb_schema_unit_tests','user_roles','role','');
+SELECT tap.col_column_type_is('_caosdb_schema_unit_tests','user_roles','role','varbinary(255)','');
+SELECT tap.col_extra_is('_caosdb_schema_unit_tests','user_roles','role','','');
+SELECT tap.col_default_is('_caosdb_schema_unit_tests','user_roles','role',NULL,'');
+SELECT tap.col_charset_is('_caosdb_schema_unit_tests','user_roles','role',NULL,'');
+SELECT tap.col_collation_is('_caosdb_schema_unit_tests','user_roles','role',NULL,'');
+
+-- CONSTRAINTS
+SELECT tap.constraints_are('_caosdb_schema_unit_tests','user_roles','`PRIMARY`,`user_roles_ibfk_1`','');
+
+-- CONSTRAINT user_roles.PRIMARY
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','user_roles','PRIMARY','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','user_roles','PRIMARY','PRIMARY KEY','');
+SELECT tap.col_is_pk('_caosdb_schema_unit_tests','user_roles','`realm`,`user`,`role`','');
+
+-- CONSTRAINT user_roles.user_roles_ibfk_1
+
+SELECT tap.has_constraint('_caosdb_schema_unit_tests','user_roles','user_roles_ibfk_1','');
+SELECT tap.constraint_type_is('_caosdb_schema_unit_tests','user_roles','user_roles_ibfk_1','FOREIGN KEY','');
+SELECT tap.fk_on_delete('_caosdb_schema_unit_tests','user_roles','user_roles_ibfk_1','RESTRICT','');
+SELECT tap.fk_on_update('_caosdb_schema_unit_tests','user_roles','user_roles_ibfk_1','RESTRICT','');
+
+-- ***************************************************************
+-- FUNCTIONS 
+-- ***************************************************************
+
+SELECT tap.routines_are('_caosdb_schema_unit_tests','FUNCTION','`CaosDBVersion`,`convert_unit`,`constructDateTimeWhereClauseForColumn`,`getAggValueWhereClause`,`getDateTimeWhereClause`,`getDoubleWhereClause`,`getDateWhereClause`,`makeStmt`,`standard_unit`','');
+
+-- FUNCTION _caosdb_schema_unit_tests.CaosDBVersion
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','CaosDBVersion','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','CaosDBVersion','YES','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','CaosDBVersion','varchar','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','CaosDBVersion','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','CaosDBVersion','CONTAINS SQL','');
+
+-- FUNCTION _caosdb_schema_unit_tests.convert_unit
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','convert_unit','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','convert_unit','YES','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','convert_unit','decimal','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','convert_unit','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','convert_unit','CONTAINS SQL','');
+
+-- FUNCTION _caosdb_schema_unit_tests.constructDateTimeWhereClauseForColumn
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','constructDateTimeWhereClauseForColumn','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','constructDateTimeWhereClauseForColumn','YES','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','constructDateTimeWhereClauseForColumn','varchar','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','constructDateTimeWhereClauseForColumn','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','constructDateTimeWhereClauseForColumn','CONTAINS SQL','');
+
+-- FUNCTION _caosdb_schema_unit_tests.getAggValueWhereClause
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','getAggValueWhereClause','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','getAggValueWhereClause','YES','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','getAggValueWhereClause','varchar','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','getAggValueWhereClause','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','getAggValueWhereClause','CONTAINS SQL','');
+
+-- FUNCTION _caosdb_schema_unit_tests.getDateTimeWhereClause
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','getDateTimeWhereClause','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','getDateTimeWhereClause','YES','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','getDateTimeWhereClause','varchar','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','getDateTimeWhereClause','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','getDateTimeWhereClause','CONTAINS SQL','');
+
+-- FUNCTION _caosdb_schema_unit_tests.getDoubleWhereClause
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','getDoubleWhereClause','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','getDoubleWhereClause','YES','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','getDoubleWhereClause','varchar','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','getDoubleWhereClause','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','getDoubleWhereClause','CONTAINS SQL','');
+
+-- FUNCTION _caosdb_schema_unit_tests.getDateWhereClause
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','getDateWhereClause','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','getDateWhereClause','YES','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','getDateWhereClause','varchar','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','getDateWhereClause','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','getDateWhereClause','CONTAINS SQL','');
+
+-- FUNCTION _caosdb_schema_unit_tests.makeStmt
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','makeStmt','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','makeStmt','NO','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','makeStmt','varchar','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','makeStmt','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','makeStmt','NO SQL','');
+
+-- FUNCTION _caosdb_schema_unit_tests.standard_unit
+
+SELECT tap.has_function('_caosdb_schema_unit_tests','standard_unit','');
+SELECT tap.function_is_deterministic('_caosdb_schema_unit_tests','standard_unit','YES','');
+SELECT tap.function_data_type_is('_caosdb_schema_unit_tests','standard_unit','bigint','');
+SELECT tap.function_security_type_is('_caosdb_schema_unit_tests','standard_unit','DEFINER','');
+SELECT tap.function_sql_data_access_is('_caosdb_schema_unit_tests','standard_unit','CONTAINS SQL','');
+
+-- ***************************************************************
+-- PROCEDURES 
+-- ***************************************************************
+
+SELECT tap.routines_are('_caosdb_schema_unit_tests','PROCEDURE','`applyBackReference`,`applyPOV`,`applyRefPOV`,`applyIDFilter`,`applySAT`,`applyTransactionFilter`,`calcComplementUnion`,`calcDifference`,`calcIntersection`,`calcUnion`,`cleanUpLinCon`,`cleanUpQuery`,`copyTable`,`createTmpTable`,`createTmpTable2`,`deleteEntity`,`deleteEntityProperties`,`deleteIsa`,`deleteLinCon`,`entityACL`,`finishNegationFilter`,`finishSubProperty`,`getChildren`,`getFileIdByPath`,`getRole`,`getRules`,`initAutoIncrement`,`initBackReference`,`getFile`,`initConjunctionFilter`,`initDisjunctionFilter`,`initNegationFilter`,`initPOVRefidsTable`,`initQuery`,`insertEntity`,`getDependentEntities`,`initEmptyTargetSet`,`initEntity`,`insertLinCon`,`insertUser`,`intersectTable`,`initPOVPropertiesTable`,`initSubEntity`,`isSubtype`,`overrideDesc`,`overrideName`,`overrideType`,`raiseWarning`,`registerSubdomain`,`initSubProperty`,`insertEntityProperty`,`registerTempTableName`,`retrieveDatatype`,`retrieveEntityParents`,`retrieveGroup`,`setPassword`,`insertIsa`,`retrieveEntity`,`retrieveEntityProperties`,`showEntityAutoIncr`,`updateLinCon`,`retrieveOverrides`,`updateEntity`','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.applyBackReference
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','applyBackReference','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','applyBackReference','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','applyBackReference','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','applyBackReference','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.applyPOV
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','applyPOV','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','applyPOV','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','applyPOV','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','applyPOV','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.applyRefPOV
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','applyRefPOV','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','applyRefPOV','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','applyRefPOV','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','applyRefPOV','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.applyIDFilter
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','applyIDFilter','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','applyIDFilter','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','applyIDFilter','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','applyIDFilter','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.applySAT
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','applySAT','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','applySAT','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','applySAT','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','applySAT','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.applyTransactionFilter
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','applyTransactionFilter','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','applyTransactionFilter','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','applyTransactionFilter','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','applyTransactionFilter','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.calcComplementUnion
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','calcComplementUnion','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','calcComplementUnion','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','calcComplementUnion','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','calcComplementUnion','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.calcDifference
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','calcDifference','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','calcDifference','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','calcDifference','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','calcDifference','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.calcIntersection
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','calcIntersection','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','calcIntersection','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','calcIntersection','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','calcIntersection','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.calcUnion
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','calcUnion','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','calcUnion','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','calcUnion','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','calcUnion','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.cleanUpLinCon
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','cleanUpLinCon','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','cleanUpLinCon','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','cleanUpLinCon','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','cleanUpLinCon','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.cleanUpQuery
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','cleanUpQuery','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','cleanUpQuery','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','cleanUpQuery','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','cleanUpQuery','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.copyTable
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','copyTable','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','copyTable','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','copyTable','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','copyTable','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.createTmpTable
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','createTmpTable','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','createTmpTable','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','createTmpTable','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','createTmpTable','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.createTmpTable2
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','createTmpTable2','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','createTmpTable2','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','createTmpTable2','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','createTmpTable2','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.deleteEntity
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','deleteEntity','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','deleteEntity','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','deleteEntity','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','deleteEntity','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.deleteEntityProperties
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','deleteEntityProperties','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','deleteEntityProperties','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','deleteEntityProperties','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','deleteEntityProperties','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.deleteIsa
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','deleteIsa','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','deleteIsa','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','deleteIsa','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','deleteIsa','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.deleteLinCon
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','deleteLinCon','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','deleteLinCon','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','deleteLinCon','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','deleteLinCon','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.entityACL
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','entityACL','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','entityACL','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','entityACL','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','entityACL','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.finishNegationFilter
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','finishNegationFilter','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','finishNegationFilter','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','finishNegationFilter','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','finishNegationFilter','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.finishSubProperty
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','finishSubProperty','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','finishSubProperty','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','finishSubProperty','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','finishSubProperty','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.getChildren
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','getChildren','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','getChildren','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','getChildren','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','getChildren','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.getFileIdByPath
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','getFileIdByPath','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','getFileIdByPath','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','getFileIdByPath','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','getFileIdByPath','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.getRole
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','getRole','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','getRole','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','getRole','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','getRole','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.getRules
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','getRules','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','getRules','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','getRules','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','getRules','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initAutoIncrement
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initAutoIncrement','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initAutoIncrement','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initAutoIncrement','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initAutoIncrement','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initBackReference
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initBackReference','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initBackReference','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initBackReference','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initBackReference','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.getFile
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','getFile','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','getFile','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','getFile','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','getFile','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initConjunctionFilter
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initConjunctionFilter','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initConjunctionFilter','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initConjunctionFilter','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initConjunctionFilter','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initDisjunctionFilter
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initDisjunctionFilter','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initDisjunctionFilter','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initDisjunctionFilter','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initDisjunctionFilter','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initNegationFilter
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initNegationFilter','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initNegationFilter','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initNegationFilter','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initNegationFilter','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initPOVRefidsTable
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initPOVRefidsTable','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initPOVRefidsTable','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initPOVRefidsTable','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initPOVRefidsTable','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initQuery
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initQuery','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initQuery','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initQuery','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initQuery','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.insertEntity
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','insertEntity','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','insertEntity','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','insertEntity','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','insertEntity','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.getDependentEntities
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','getDependentEntities','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','getDependentEntities','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','getDependentEntities','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','getDependentEntities','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initEmptyTargetSet
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initEmptyTargetSet','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initEmptyTargetSet','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initEmptyTargetSet','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initEmptyTargetSet','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initEntity
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initEntity','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initEntity','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initEntity','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initEntity','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.insertLinCon
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','insertLinCon','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','insertLinCon','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','insertLinCon','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','insertLinCon','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.insertUser
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','insertUser','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','insertUser','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','insertUser','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','insertUser','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.intersectTable
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','intersectTable','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','intersectTable','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','intersectTable','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','intersectTable','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initPOVPropertiesTable
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initPOVPropertiesTable','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initPOVPropertiesTable','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initPOVPropertiesTable','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initPOVPropertiesTable','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initSubEntity
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initSubEntity','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initSubEntity','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initSubEntity','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initSubEntity','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.isSubtype
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','isSubtype','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','isSubtype','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','isSubtype','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','isSubtype','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.overrideDesc
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','overrideDesc','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','overrideDesc','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','overrideDesc','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','overrideDesc','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.overrideName
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','overrideName','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','overrideName','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','overrideName','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','overrideName','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.overrideType
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','overrideType','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','overrideType','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','overrideType','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','overrideType','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.raiseWarning
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','raiseWarning','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','raiseWarning','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','raiseWarning','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','raiseWarning','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.registerSubdomain
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','registerSubdomain','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','registerSubdomain','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','registerSubdomain','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','registerSubdomain','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.initSubProperty
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','initSubProperty','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','initSubProperty','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','initSubProperty','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','initSubProperty','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.insertEntityProperty
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','insertEntityProperty','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','insertEntityProperty','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','insertEntityProperty','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','insertEntityProperty','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.registerTempTableName
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','registerTempTableName','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','registerTempTableName','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','registerTempTableName','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','registerTempTableName','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.retrieveDatatype
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','retrieveDatatype','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','retrieveDatatype','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','retrieveDatatype','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','retrieveDatatype','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.retrieveEntityParents
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','retrieveEntityParents','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','retrieveEntityParents','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','retrieveEntityParents','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','retrieveEntityParents','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.retrieveGroup
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','retrieveGroup','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','retrieveGroup','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','retrieveGroup','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','retrieveGroup','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.setPassword
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','setPassword','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','setPassword','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','setPassword','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','setPassword','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.insertIsa
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','insertIsa','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','insertIsa','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','insertIsa','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','insertIsa','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.retrieveEntity
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','retrieveEntity','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','retrieveEntity','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','retrieveEntity','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','retrieveEntity','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.retrieveEntityProperties
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','retrieveEntityProperties','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','retrieveEntityProperties','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','retrieveEntityProperties','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','retrieveEntityProperties','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.showEntityAutoIncr
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','showEntityAutoIncr','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','showEntityAutoIncr','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','showEntityAutoIncr','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','showEntityAutoIncr','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.updateLinCon
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','updateLinCon','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','updateLinCon','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','updateLinCon','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','updateLinCon','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.retrieveOverrides
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','retrieveOverrides','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','retrieveOverrides','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','retrieveOverrides','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','retrieveOverrides','CONTAINS SQL','');
+
+-- PROCEDURES _caosdb_schema_unit_tests.updateEntity
+
+SELECT tap.has_procedure('_caosdb_schema_unit_tests','updateEntity','');
+SELECT tap.procedure_is_deterministic('_caosdb_schema_unit_tests','updateEntity','NO','');
+SELECT tap.procedure_security_type_is('_caosdb_schema_unit_tests','updateEntity','DEFINER','');
+SELECT tap.procedure_sql_data_access_is('_caosdb_schema_unit_tests','updateEntity','CONTAINS SQL','');
+CALL tap.finish();
+ROLLBACK;
diff --git a/tests/test_tables_caosdb.sql b/tests/test_tables_caosdb.sql
deleted file mode 100644
index 7ad779d..0000000
--- a/tests/test_tables_caosdb.sql
+++ /dev/null
@@ -1,2737 +0,0 @@
--- ***************************************************************
--- myTAP Testing Script
--- ====================
--- Generated: 2020-02-04
--- This database testing script has been created by the autotap
--- utility. The tests generated are in the TAP format for use with
--- myTAP and are based on the current state of schema objects,
--- with the database assumed to be in a known good state. All tests
--- will pass but that does not guarantee the correctness of the
--- state represented by the tests.
--- 
--- After the script is generated, any subsequent DDL changes,
--- whether additions, deletions or modifications, will cause some
--- of the tests to fail. This is intentional.
--- 
--- The purpose of the utility is to assist the process of
--- retrofitting testing to existing projects. You should still check
--- that the schema state represents what you intend and you should
--- modify this script by hand to account for all subsequent changes.
--- ***************************************************************
-
-
--- ***************************************************************
--- SCHEMA caosdb_testing
--- ***************************************************************
-
-USE tap;
-BEGIN;
-CALL tap.no_plan();
-SELECT tap.has_schema('caosdb_testing','');
-
--- ***************************************************************
--- TABLES 
--- ***************************************************************
-
-SELECT tap.tables_are('caosdb_testing','`collection_type`,`data_type`,`date_data`,`datetime_data`,`desc_overrides`,`double_data`,`entities`,`entity_acl`,`enum_data`,`files`,`integer_data`,`isa_cache`,`logging`,`name_data`,`name_overrides`,`null_data`,`passwd`,`permissions`,`query_template_def`,`reference_data`,`roles`,`rules`,`stats`,`text_data`,`transaction_log`,`units_lin_con`,`user_info`,`user_roles`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.collection_type
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','collection_type','');
-SELECT tap.table_collation_is('caosdb_testing','collection_type','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','collection_type','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','collection_type','`domain_id`,`entity_id`,`property_id`,`collection`','');
-
--- COLUMN collection_type.domain_id
-
-SELECT tap.has_column('caosdb_testing','collection_type','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','collection_type','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','collection_type','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','collection_type','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','collection_type','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','collection_type','domain_id',NULL,'');
-
--- COLUMN collection_type.entity_id
-
-SELECT tap.has_column('caosdb_testing','collection_type','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','collection_type','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','collection_type','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','collection_type','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','collection_type','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','collection_type','entity_id',NULL,'');
-
--- COLUMN collection_type.property_id
-
-SELECT tap.has_column('caosdb_testing','collection_type','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','collection_type','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','collection_type','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','collection_type','property_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','collection_type','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','collection_type','property_id',NULL,'');
-
--- COLUMN collection_type.collection
-
-SELECT tap.has_column('caosdb_testing','collection_type','collection','');
-SELECT tap.col_column_type_is('caosdb_testing','collection_type','collection','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','collection_type','collection','','');
-SELECT tap.col_default_is('caosdb_testing','collection_type','collection',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','collection_type','collection','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','collection_type','collection','utf8_unicode_ci','');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','collection_type','`domain_id`,`entity_id`,`property_id`','');
-
--- INDEX collection_type.domain_id
-
-SELECT tap.has_index('caosdb_testing','collection_type','domain_id','');
-SELECT tap.index_is_type('caosdb_testing','collection_type','domain_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','collection_type','`domain_id`,`entity_id`','');
-
--- INDEX collection_type.entity_id
-
-SELECT tap.has_index('caosdb_testing','collection_type','entity_id','');
-SELECT tap.index_is_type('caosdb_testing','collection_type','entity_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','collection_type','`entity_id`','');
-
--- INDEX collection_type.property_id
-
-SELECT tap.has_index('caosdb_testing','collection_type','property_id','');
-SELECT tap.index_is_type('caosdb_testing','collection_type','property_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','collection_type','`property_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','collection_type','`collection_type_domain_id_entity`,`collection_type_entity_id_entity`,`collection_type_property_id_entity`','');
-
--- CONSTRAINT collection_type.collection_type_domain_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','collection_type','collection_type_domain_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','collection_type','collection_type_domain_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','collection_type','collection_type_domain_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','collection_type','collection_type_domain_id_entity','RESTRICT','');
-
--- CONSTRAINT collection_type.collection_type_entity_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','collection_type','collection_type_entity_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','collection_type','collection_type_entity_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','collection_type','collection_type_entity_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','collection_type','collection_type_entity_id_entity','RESTRICT','');
-
--- CONSTRAINT collection_type.collection_type_property_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','collection_type','collection_type_property_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','collection_type','collection_type_property_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','collection_type','collection_type_property_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','collection_type','collection_type_property_id_entity','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.data_type
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','data_type','');
-SELECT tap.table_collation_is('caosdb_testing','data_type','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','data_type','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','data_type','`domain_id`,`entity_id`,`property_id`,`datatype`','');
-
--- COLUMN data_type.domain_id
-
-SELECT tap.has_column('caosdb_testing','data_type','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','data_type','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','data_type','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','data_type','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','data_type','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','data_type','domain_id',NULL,'');
-
--- COLUMN data_type.entity_id
-
-SELECT tap.has_column('caosdb_testing','data_type','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','data_type','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','data_type','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','data_type','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','data_type','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','data_type','entity_id',NULL,'');
-
--- COLUMN data_type.property_id
-
-SELECT tap.has_column('caosdb_testing','data_type','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','data_type','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','data_type','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','data_type','property_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','data_type','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','data_type','property_id',NULL,'');
-
--- COLUMN data_type.datatype
-
-SELECT tap.has_column('caosdb_testing','data_type','datatype','');
-SELECT tap.col_column_type_is('caosdb_testing','data_type','datatype','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','data_type','datatype','','');
-SELECT tap.col_default_is('caosdb_testing','data_type','datatype',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','data_type','datatype',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','data_type','datatype',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','data_type','`name_ov_dom_ent_idx`','');
-
--- INDEX data_type.name_ov_dom_ent_idx
-
-SELECT tap.has_index('caosdb_testing','data_type','name_ov_dom_ent_idx','');
-SELECT tap.index_is_type('caosdb_testing','data_type','name_ov_dom_ent_idx','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','data_type','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','data_type','`datatype_ukey`,`datatype_forkey_dom`,`datatype_forkey_ent`,`datatype_forkey_pro`,`datatype_forkey_type`','');
-
--- CONSTRAINT data_type.datatype_forkey_dom
-
-SELECT tap.has_constraint('caosdb_testing','data_type','datatype_forkey_dom','');
-SELECT tap.constraint_type_is('caosdb_testing','data_type','datatype_forkey_dom','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','data_type','datatype_forkey_dom','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','data_type','datatype_forkey_dom','RESTRICT','');
-
--- CONSTRAINT data_type.datatype_forkey_ent
-
-SELECT tap.has_constraint('caosdb_testing','data_type','datatype_forkey_ent','');
-SELECT tap.constraint_type_is('caosdb_testing','data_type','datatype_forkey_ent','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','data_type','datatype_forkey_ent','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','data_type','datatype_forkey_ent','RESTRICT','');
-
--- CONSTRAINT data_type.datatype_forkey_pro
-
-SELECT tap.has_constraint('caosdb_testing','data_type','datatype_forkey_pro','');
-SELECT tap.constraint_type_is('caosdb_testing','data_type','datatype_forkey_pro','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','data_type','datatype_forkey_pro','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','data_type','datatype_forkey_pro','RESTRICT','');
-
--- CONSTRAINT data_type.datatype_forkey_type
-
-SELECT tap.has_constraint('caosdb_testing','data_type','datatype_forkey_type','');
-SELECT tap.constraint_type_is('caosdb_testing','data_type','datatype_forkey_type','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','data_type','datatype_forkey_type','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','data_type','datatype_forkey_type','RESTRICT','');
-
--- CONSTRAINT data_type.datatype_ukey
-
-SELECT tap.has_constraint('caosdb_testing','data_type','datatype_ukey','');
-SELECT tap.constraint_type_is('caosdb_testing','data_type','datatype_ukey','UNIQUE','');
-
--- ***************************************************************
--- TABLE caosdb_testing.date_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','date_data','');
-SELECT tap.table_collation_is('caosdb_testing','date_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','date_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','date_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
-
--- COLUMN date_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','date_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','date_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','date_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','date_data','domain_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','date_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','date_data','domain_id',NULL,'');
-
--- COLUMN date_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','date_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','date_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','date_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','date_data','entity_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','date_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','date_data','entity_id',NULL,'');
-
--- COLUMN date_data.property_id
-
-SELECT tap.has_column('caosdb_testing','date_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','date_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','date_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','date_data','property_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','date_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','date_data','property_id',NULL,'');
-
--- COLUMN date_data.value
-
-SELECT tap.has_column('caosdb_testing','date_data','value','');
-SELECT tap.col_column_type_is('caosdb_testing','date_data','value','int(11)','');
-SELECT tap.col_extra_is('caosdb_testing','date_data','value','','');
-SELECT tap.col_default_is('caosdb_testing','date_data','value',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','date_data','value',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','date_data','value',NULL,'');
-
--- COLUMN date_data.status
-
-SELECT tap.has_column('caosdb_testing','date_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','date_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\')','');
-SELECT tap.col_extra_is('caosdb_testing','date_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','date_data','status','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','date_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','date_data','status','utf8_unicode_ci','');
-
--- COLUMN date_data.pidx
-
-SELECT tap.has_column('caosdb_testing','date_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','date_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','date_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','date_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','date_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','date_data','pidx',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','date_data','`date_data_dom_ent_idx`','');
-
--- INDEX date_data.date_data_dom_ent_idx
-
-SELECT tap.has_index('caosdb_testing','date_data','date_data_dom_ent_idx','');
-SELECT tap.index_is_type('caosdb_testing','date_data','date_data_dom_ent_idx','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','date_data','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','date_data','`date_ov_forkey_dom`,`date_ov_forkey_ent`,`date_ov_forkey_pro`','');
-
--- CONSTRAINT date_data.date_ov_forkey_dom
-
-SELECT tap.has_constraint('caosdb_testing','date_data','date_ov_forkey_dom','');
-SELECT tap.constraint_type_is('caosdb_testing','date_data','date_ov_forkey_dom','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','date_data','date_ov_forkey_dom','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','date_data','date_ov_forkey_dom','RESTRICT','');
-
--- CONSTRAINT date_data.date_ov_forkey_ent
-
-SELECT tap.has_constraint('caosdb_testing','date_data','date_ov_forkey_ent','');
-SELECT tap.constraint_type_is('caosdb_testing','date_data','date_ov_forkey_ent','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','date_data','date_ov_forkey_ent','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','date_data','date_ov_forkey_ent','RESTRICT','');
-
--- CONSTRAINT date_data.date_ov_forkey_pro
-
-SELECT tap.has_constraint('caosdb_testing','date_data','date_ov_forkey_pro','');
-SELECT tap.constraint_type_is('caosdb_testing','date_data','date_ov_forkey_pro','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','date_data','date_ov_forkey_pro','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','date_data','date_ov_forkey_pro','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.datetime_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','datetime_data','');
-SELECT tap.table_collation_is('caosdb_testing','datetime_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','datetime_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','datetime_data','`domain_id`,`entity_id`,`property_id`,`status`,`pidx`,`value_ns`,`value`','');
-
--- COLUMN datetime_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','datetime_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','datetime_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','datetime_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','datetime_data','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','datetime_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','datetime_data','domain_id',NULL,'');
-
--- COLUMN datetime_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','datetime_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','datetime_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','datetime_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','datetime_data','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','datetime_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','datetime_data','entity_id',NULL,'');
-
--- COLUMN datetime_data.property_id
-
-SELECT tap.has_column('caosdb_testing','datetime_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','datetime_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','datetime_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','datetime_data','property_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','datetime_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','datetime_data','property_id',NULL,'');
-
--- COLUMN datetime_data.status
-
-SELECT tap.has_column('caosdb_testing','datetime_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','datetime_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
-SELECT tap.col_extra_is('caosdb_testing','datetime_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','datetime_data','status',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','datetime_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','datetime_data','status','utf8_unicode_ci','');
-
--- COLUMN datetime_data.pidx
-
-SELECT tap.has_column('caosdb_testing','datetime_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','datetime_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','datetime_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','datetime_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','datetime_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','datetime_data','pidx',NULL,'');
-
--- COLUMN datetime_data.value_ns
-
-SELECT tap.has_column('caosdb_testing','datetime_data','value_ns','');
-SELECT tap.col_column_type_is('caosdb_testing','datetime_data','value_ns','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','datetime_data','value_ns','','');
-SELECT tap.col_default_is('caosdb_testing','datetime_data','value_ns','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','datetime_data','value_ns',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','datetime_data','value_ns',NULL,'');
-
--- COLUMN datetime_data.value
-
-SELECT tap.has_column('caosdb_testing','datetime_data','value','');
-SELECT tap.col_column_type_is('caosdb_testing','datetime_data','value','bigint(20)','');
-SELECT tap.col_extra_is('caosdb_testing','datetime_data','value','','');
-SELECT tap.col_default_is('caosdb_testing','datetime_data','value',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','datetime_data','value',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','datetime_data','value',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','datetime_data','`domain_id`','');
-
--- INDEX datetime_data.domain_id
-
-SELECT tap.has_index('caosdb_testing','datetime_data','domain_id','');
-SELECT tap.index_is_type('caosdb_testing','datetime_data','domain_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','datetime_data','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','datetime_data','`dat_domain_id_entity`,`dat_entity_id_entity`,`dat_property_id_entity`','');
-
--- CONSTRAINT datetime_data.dat_domain_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','datetime_data','dat_domain_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','datetime_data','dat_domain_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','datetime_data','dat_domain_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','datetime_data','dat_domain_id_entity','RESTRICT','');
-
--- CONSTRAINT datetime_data.dat_entity_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','datetime_data','dat_entity_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','datetime_data','dat_entity_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','datetime_data','dat_entity_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','datetime_data','dat_entity_id_entity','RESTRICT','');
-
--- CONSTRAINT datetime_data.dat_property_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','datetime_data','dat_property_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','datetime_data','dat_property_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','datetime_data','dat_property_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','datetime_data','dat_property_id_entity','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.desc_overrides
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','desc_overrides','');
-SELECT tap.table_collation_is('caosdb_testing','desc_overrides','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','desc_overrides','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','desc_overrides','`domain_id`,`entity_id`,`property_id`,`description`','');
-
--- COLUMN desc_overrides.domain_id
-
-SELECT tap.has_column('caosdb_testing','desc_overrides','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','desc_overrides','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','desc_overrides','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','desc_overrides','domain_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','desc_overrides','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','desc_overrides','domain_id',NULL,'');
-
--- COLUMN desc_overrides.entity_id
-
-SELECT tap.has_column('caosdb_testing','desc_overrides','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','desc_overrides','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','desc_overrides','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','desc_overrides','entity_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','desc_overrides','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','desc_overrides','entity_id',NULL,'');
-
--- COLUMN desc_overrides.property_id
-
-SELECT tap.has_column('caosdb_testing','desc_overrides','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','desc_overrides','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','desc_overrides','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','desc_overrides','property_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','desc_overrides','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','desc_overrides','property_id',NULL,'');
-
--- COLUMN desc_overrides.description
-
-SELECT tap.has_column('caosdb_testing','desc_overrides','description','');
-SELECT tap.col_column_type_is('caosdb_testing','desc_overrides','description','text','');
-SELECT tap.col_extra_is('caosdb_testing','desc_overrides','description','','');
-SELECT tap.col_default_is('caosdb_testing','desc_overrides','description','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','desc_overrides','description','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','desc_overrides','description','utf8_unicode_ci','');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','desc_overrides','`desc_ov_dom_ent_idx`','');
-
--- INDEX desc_overrides.desc_ov_dom_ent_idx
-
-SELECT tap.has_index('caosdb_testing','desc_overrides','desc_ov_dom_ent_idx','');
-SELECT tap.index_is_type('caosdb_testing','desc_overrides','desc_ov_dom_ent_idx','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','desc_overrides','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','desc_overrides','`desc_ov_ukey`,`desc_ov_forkey_dom`,`desc_ov_forkey_ent`,`desc_ov_forkey_pro`','');
-
--- CONSTRAINT desc_overrides.desc_ov_forkey_dom
-
-SELECT tap.has_constraint('caosdb_testing','desc_overrides','desc_ov_forkey_dom','');
-SELECT tap.constraint_type_is('caosdb_testing','desc_overrides','desc_ov_forkey_dom','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','desc_overrides','desc_ov_forkey_dom','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','desc_overrides','desc_ov_forkey_dom','RESTRICT','');
-
--- CONSTRAINT desc_overrides.desc_ov_forkey_ent
-
-SELECT tap.has_constraint('caosdb_testing','desc_overrides','desc_ov_forkey_ent','');
-SELECT tap.constraint_type_is('caosdb_testing','desc_overrides','desc_ov_forkey_ent','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','desc_overrides','desc_ov_forkey_ent','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','desc_overrides','desc_ov_forkey_ent','RESTRICT','');
-
--- CONSTRAINT desc_overrides.desc_ov_forkey_pro
-
-SELECT tap.has_constraint('caosdb_testing','desc_overrides','desc_ov_forkey_pro','');
-SELECT tap.constraint_type_is('caosdb_testing','desc_overrides','desc_ov_forkey_pro','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','desc_overrides','desc_ov_forkey_pro','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','desc_overrides','desc_ov_forkey_pro','RESTRICT','');
-
--- CONSTRAINT desc_overrides.desc_ov_ukey
-
-SELECT tap.has_constraint('caosdb_testing','desc_overrides','desc_ov_ukey','');
-SELECT tap.constraint_type_is('caosdb_testing','desc_overrides','desc_ov_ukey','UNIQUE','');
-
--- ***************************************************************
--- TABLE caosdb_testing.double_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','double_data','');
-SELECT tap.table_collation_is('caosdb_testing','double_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','double_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','double_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`,`unit_sig`','');
-
--- COLUMN double_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','double_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','double_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','double_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','double_data','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','double_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','double_data','domain_id',NULL,'');
-
--- COLUMN double_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','double_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','double_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','double_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','double_data','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','double_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','double_data','entity_id',NULL,'');
-
--- COLUMN double_data.property_id
-
-SELECT tap.has_column('caosdb_testing','double_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','double_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','double_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','double_data','property_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','double_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','double_data','property_id',NULL,'');
-
--- COLUMN double_data.value
-
-SELECT tap.has_column('caosdb_testing','double_data','value','');
-SELECT tap.col_column_type_is('caosdb_testing','double_data','value','double','');
-SELECT tap.col_extra_is('caosdb_testing','double_data','value','','');
-SELECT tap.col_default_is('caosdb_testing','double_data','value',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','double_data','value',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','double_data','value',NULL,'');
-
--- COLUMN double_data.status
-
-SELECT tap.has_column('caosdb_testing','double_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','double_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
-SELECT tap.col_extra_is('caosdb_testing','double_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','double_data','status',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','double_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','double_data','status','utf8_unicode_ci','');
-
--- COLUMN double_data.pidx
-
-SELECT tap.has_column('caosdb_testing','double_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','double_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','double_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','double_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','double_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','double_data','pidx',NULL,'');
-
--- COLUMN double_data.unit_sig
-
-SELECT tap.has_column('caosdb_testing','double_data','unit_sig','');
-SELECT tap.col_column_type_is('caosdb_testing','double_data','unit_sig','bigint(20)','');
-SELECT tap.col_extra_is('caosdb_testing','double_data','unit_sig','','');
-SELECT tap.col_default_is('caosdb_testing','double_data','unit_sig','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','double_data','unit_sig',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','double_data','unit_sig',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','double_data','`domain_id`','');
-
--- INDEX double_data.domain_id
-
-SELECT tap.has_index('caosdb_testing','double_data','domain_id','');
-SELECT tap.index_is_type('caosdb_testing','double_data','domain_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','double_data','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','double_data','`dou_domain_id_entity`,`dou_entity_id_entity`,`dou_property_id_entity`','');
-
--- CONSTRAINT double_data.dou_domain_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','double_data','dou_domain_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','double_data','dou_domain_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','double_data','dou_domain_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','double_data','dou_domain_id_entity','RESTRICT','');
-
--- CONSTRAINT double_data.dou_entity_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','double_data','dou_entity_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','double_data','dou_entity_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','double_data','dou_entity_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','double_data','dou_entity_id_entity','RESTRICT','');
-
--- CONSTRAINT double_data.dou_property_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','double_data','dou_property_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','double_data','dou_property_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','double_data','dou_property_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','double_data','dou_property_id_entity','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.entities
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','entities','');
-SELECT tap.table_collation_is('caosdb_testing','entities','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','entities','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','entities','`id`,`name`,`description`,`role`,`acl`','');
-
--- COLUMN entities.id
-
-SELECT tap.has_column('caosdb_testing','entities','id','');
-SELECT tap.col_column_type_is('caosdb_testing','entities','id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','entities','id','auto_increment','');
-SELECT tap.col_default_is('caosdb_testing','entities','id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','entities','id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','entities','id',NULL,'');
-
--- COLUMN entities.name
-
-SELECT tap.has_column('caosdb_testing','entities','name','');
-SELECT tap.col_column_type_is('caosdb_testing','entities','name','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','entities','name','','');
-SELECT tap.col_default_is('caosdb_testing','entities','name','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','entities','name','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','entities','name','utf8_unicode_ci','');
-
--- COLUMN entities.description
-
-SELECT tap.has_column('caosdb_testing','entities','description','');
-SELECT tap.col_column_type_is('caosdb_testing','entities','description','text','');
-SELECT tap.col_extra_is('caosdb_testing','entities','description','','');
-SELECT tap.col_default_is('caosdb_testing','entities','description','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','entities','description','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','entities','description','utf8_unicode_ci','');
-
--- COLUMN entities.role
-
-SELECT tap.has_column('caosdb_testing','entities','role','');
-SELECT tap.col_column_type_is('caosdb_testing','entities','role','enum(\'RECORDTYPE\',\'RECORD\',\'FILE\',\'DOMAIN\',\'PROPERTY\',\'DATATYPE\',\'ROLE\',\'QUERYTEMPLATE\')','');
-SELECT tap.col_extra_is('caosdb_testing','entities','role','','');
-SELECT tap.col_default_is('caosdb_testing','entities','role',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','entities','role','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','entities','role','utf8_unicode_ci','');
-
--- COLUMN entities.acl
-
-SELECT tap.has_column('caosdb_testing','entities','acl','');
-SELECT tap.col_column_type_is('caosdb_testing','entities','acl','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','entities','acl','','');
-SELECT tap.col_default_is('caosdb_testing','entities','acl','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','entities','acl',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','entities','acl',NULL,'');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','entities','`PRIMARY`,`entity_entity_acl`','');
-
--- CONSTRAINT entities.entity_entity_acl
-
-SELECT tap.has_constraint('caosdb_testing','entities','entity_entity_acl','');
-SELECT tap.constraint_type_is('caosdb_testing','entities','entity_entity_acl','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','entities','entity_entity_acl','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','entities','entity_entity_acl','RESTRICT','');
-
--- CONSTRAINT entities.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','entities','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','entities','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','entities','`id`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.entity_acl
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','entity_acl','');
-SELECT tap.table_collation_is('caosdb_testing','entity_acl','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','entity_acl','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','entity_acl','`id`,`acl`','');
-
--- COLUMN entity_acl.id
-
-SELECT tap.has_column('caosdb_testing','entity_acl','id','');
-SELECT tap.col_column_type_is('caosdb_testing','entity_acl','id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','entity_acl','id','auto_increment','');
-SELECT tap.col_default_is('caosdb_testing','entity_acl','id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','entity_acl','id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','entity_acl','id',NULL,'');
-
--- COLUMN entity_acl.acl
-
-SELECT tap.has_column('caosdb_testing','entity_acl','acl','');
-SELECT tap.col_column_type_is('caosdb_testing','entity_acl','acl','varbinary(65525)','');
-SELECT tap.col_extra_is('caosdb_testing','entity_acl','acl','','');
-SELECT tap.col_default_is('caosdb_testing','entity_acl','acl',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','entity_acl','acl',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','entity_acl','acl',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','entity_acl','`entity_acl_acl`','');
-
--- INDEX entity_acl.entity_acl_acl
-
-SELECT tap.has_index('caosdb_testing','entity_acl','entity_acl_acl','');
-SELECT tap.index_is_type('caosdb_testing','entity_acl','entity_acl_acl','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','entity_acl','`acl`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','entity_acl','`PRIMARY`','');
-
--- CONSTRAINT entity_acl.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','entity_acl','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','entity_acl','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','entity_acl','`id`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.enum_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','enum_data','');
-SELECT tap.table_collation_is('caosdb_testing','enum_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','enum_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','enum_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
-
--- COLUMN enum_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','enum_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','enum_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','enum_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','enum_data','domain_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','enum_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','enum_data','domain_id',NULL,'');
-
--- COLUMN enum_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','enum_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','enum_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','enum_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','enum_data','entity_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','enum_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','enum_data','entity_id',NULL,'');
-
--- COLUMN enum_data.property_id
-
-SELECT tap.has_column('caosdb_testing','enum_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','enum_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','enum_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','enum_data','property_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','enum_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','enum_data','property_id',NULL,'');
-
--- COLUMN enum_data.value
-
-SELECT tap.has_column('caosdb_testing','enum_data','value','');
-SELECT tap.col_column_type_is('caosdb_testing','enum_data','value','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','enum_data','value','','');
-SELECT tap.col_default_is('caosdb_testing','enum_data','value',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','enum_data','value',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','enum_data','value',NULL,'');
-
--- COLUMN enum_data.status
-
-SELECT tap.has_column('caosdb_testing','enum_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','enum_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\')','');
-SELECT tap.col_extra_is('caosdb_testing','enum_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','enum_data','status','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','enum_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','enum_data','status','utf8_unicode_ci','');
-
--- COLUMN enum_data.pidx
-
-SELECT tap.has_column('caosdb_testing','enum_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','enum_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','enum_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','enum_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','enum_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','enum_data','pidx',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','enum_data','`enum_ov_dom_ent_idx`','');
-
--- INDEX enum_data.enum_ov_dom_ent_idx
-
-SELECT tap.has_index('caosdb_testing','enum_data','enum_ov_dom_ent_idx','');
-SELECT tap.index_is_type('caosdb_testing','enum_data','enum_ov_dom_ent_idx','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','enum_data','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','enum_data','`enum_ov_forkey_dom`,`enum_ov_forkey_ent`,`enum_ov_forkey_pro`','');
-
--- CONSTRAINT enum_data.enum_ov_forkey_dom
-
-SELECT tap.has_constraint('caosdb_testing','enum_data','enum_ov_forkey_dom','');
-SELECT tap.constraint_type_is('caosdb_testing','enum_data','enum_ov_forkey_dom','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','enum_data','enum_ov_forkey_dom','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','enum_data','enum_ov_forkey_dom','RESTRICT','');
-
--- CONSTRAINT enum_data.enum_ov_forkey_ent
-
-SELECT tap.has_constraint('caosdb_testing','enum_data','enum_ov_forkey_ent','');
-SELECT tap.constraint_type_is('caosdb_testing','enum_data','enum_ov_forkey_ent','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','enum_data','enum_ov_forkey_ent','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','enum_data','enum_ov_forkey_ent','RESTRICT','');
-
--- CONSTRAINT enum_data.enum_ov_forkey_pro
-
-SELECT tap.has_constraint('caosdb_testing','enum_data','enum_ov_forkey_pro','');
-SELECT tap.constraint_type_is('caosdb_testing','enum_data','enum_ov_forkey_pro','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','enum_data','enum_ov_forkey_pro','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','enum_data','enum_ov_forkey_pro','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.files
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','files','');
-SELECT tap.table_collation_is('caosdb_testing','files','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','files','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','files','`file_id`,`path`,`size`,`hash`,`checked_timestamp`','');
-
--- COLUMN files.file_id
-
-SELECT tap.has_column('caosdb_testing','files','file_id','');
-SELECT tap.col_column_type_is('caosdb_testing','files','file_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','files','file_id','','');
-SELECT tap.col_default_is('caosdb_testing','files','file_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','files','file_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','files','file_id',NULL,'');
-
--- COLUMN files.path
-
-SELECT tap.has_column('caosdb_testing','files','path','');
-SELECT tap.col_column_type_is('caosdb_testing','files','path','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','files','path','','');
-SELECT tap.col_default_is('caosdb_testing','files','path',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','files','path','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','files','path','utf8_unicode_ci','');
-
--- COLUMN files.size
-
-SELECT tap.has_column('caosdb_testing','files','size','');
-SELECT tap.col_column_type_is('caosdb_testing','files','size','bigint(20) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','files','size','','');
-SELECT tap.col_default_is('caosdb_testing','files','size',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','files','size',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','files','size',NULL,'');
-
--- COLUMN files.hash
-
-SELECT tap.has_column('caosdb_testing','files','hash','');
-SELECT tap.col_column_type_is('caosdb_testing','files','hash','binary(64)','');
-SELECT tap.col_extra_is('caosdb_testing','files','hash','','');
-SELECT tap.col_default_is('caosdb_testing','files','hash','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','files','hash',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','files','hash',NULL,'');
-
--- COLUMN files.checked_timestamp
-
-SELECT tap.has_column('caosdb_testing','files','checked_timestamp','');
-SELECT tap.col_column_type_is('caosdb_testing','files','checked_timestamp','bigint(20)','');
-SELECT tap.col_extra_is('caosdb_testing','files','checked_timestamp','','');
-SELECT tap.col_default_is('caosdb_testing','files','checked_timestamp',0,'');
-SELECT tap.col_charset_is('caosdb_testing','files','checked_timestamp',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','files','checked_timestamp',NULL,'');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','files','`PRIMARY`,`fil_file_id_entity`','');
-
--- CONSTRAINT files.fil_file_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','files','fil_file_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','files','fil_file_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','files','fil_file_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','files','fil_file_id_entity','RESTRICT','');
-
--- CONSTRAINT files.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','files','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','files','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','files','`file_id`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.integer_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','integer_data','');
-SELECT tap.table_collation_is('caosdb_testing','integer_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','integer_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','integer_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`,`unit_sig`','');
-
--- COLUMN integer_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','integer_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','integer_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','integer_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','integer_data','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','integer_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','integer_data','domain_id',NULL,'');
-
--- COLUMN integer_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','integer_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','integer_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','integer_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','integer_data','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','integer_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','integer_data','entity_id',NULL,'');
-
--- COLUMN integer_data.property_id
-
-SELECT tap.has_column('caosdb_testing','integer_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','integer_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','integer_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','integer_data','property_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','integer_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','integer_data','property_id',NULL,'');
-
--- COLUMN integer_data.value
-
-SELECT tap.has_column('caosdb_testing','integer_data','value','');
-SELECT tap.col_column_type_is('caosdb_testing','integer_data','value','bigint(20)','');
-SELECT tap.col_extra_is('caosdb_testing','integer_data','value','','');
-SELECT tap.col_default_is('caosdb_testing','integer_data','value',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','integer_data','value',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','integer_data','value',NULL,'');
-
--- COLUMN integer_data.status
-
-SELECT tap.has_column('caosdb_testing','integer_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','integer_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
-SELECT tap.col_extra_is('caosdb_testing','integer_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','integer_data','status',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','integer_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','integer_data','status','utf8_unicode_ci','');
-
--- COLUMN integer_data.pidx
-
-SELECT tap.has_column('caosdb_testing','integer_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','integer_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','integer_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','integer_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','integer_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','integer_data','pidx',NULL,'');
-
--- COLUMN integer_data.unit_sig
-
-SELECT tap.has_column('caosdb_testing','integer_data','unit_sig','');
-SELECT tap.col_column_type_is('caosdb_testing','integer_data','unit_sig','bigint(20)','');
-SELECT tap.col_extra_is('caosdb_testing','integer_data','unit_sig','','');
-SELECT tap.col_default_is('caosdb_testing','integer_data','unit_sig','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','integer_data','unit_sig',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','integer_data','unit_sig',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','integer_data','`domain_id`','');
-
--- INDEX integer_data.domain_id
-
-SELECT tap.has_index('caosdb_testing','integer_data','domain_id','');
-SELECT tap.index_is_type('caosdb_testing','integer_data','domain_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','integer_data','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','integer_data','`int_domain_id_entity`,`int_entity_id_entity`,`int_property_id_entity`','');
-
--- CONSTRAINT integer_data.int_domain_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','integer_data','int_domain_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','integer_data','int_domain_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','integer_data','int_domain_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','integer_data','int_domain_id_entity','RESTRICT','');
-
--- CONSTRAINT integer_data.int_entity_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','integer_data','int_entity_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','integer_data','int_entity_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','integer_data','int_entity_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','integer_data','int_entity_id_entity','RESTRICT','');
-
--- CONSTRAINT integer_data.int_property_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','integer_data','int_property_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','integer_data','int_property_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','integer_data','int_property_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','integer_data','int_property_id_entity','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.isa_cache
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','isa_cache','');
-SELECT tap.table_collation_is('caosdb_testing','isa_cache','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','isa_cache','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','isa_cache','`child`,`parent`,`rpath`','');
-
--- COLUMN isa_cache.child
-
-SELECT tap.has_column('caosdb_testing','isa_cache','child','');
-SELECT tap.col_column_type_is('caosdb_testing','isa_cache','child','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','isa_cache','child','','');
-SELECT tap.col_default_is('caosdb_testing','isa_cache','child',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','isa_cache','child',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','isa_cache','child',NULL,'');
-
--- COLUMN isa_cache.parent
-
-SELECT tap.has_column('caosdb_testing','isa_cache','parent','');
-SELECT tap.col_column_type_is('caosdb_testing','isa_cache','parent','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','isa_cache','parent','','');
-SELECT tap.col_default_is('caosdb_testing','isa_cache','parent',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','isa_cache','parent',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','isa_cache','parent',NULL,'');
-
--- COLUMN isa_cache.rpath
-
-SELECT tap.has_column('caosdb_testing','isa_cache','rpath','');
-SELECT tap.col_column_type_is('caosdb_testing','isa_cache','rpath','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','isa_cache','rpath','','');
-SELECT tap.col_default_is('caosdb_testing','isa_cache','rpath',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','isa_cache','rpath','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','isa_cache','rpath','utf8_unicode_ci','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','isa_cache','`PRIMARY`,`isa_cache_child_entity`,`isa_cache_parent_entity`','');
-
--- CONSTRAINT isa_cache.isa_cache_child_entity
-
-SELECT tap.has_constraint('caosdb_testing','isa_cache','isa_cache_child_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','isa_cache','isa_cache_child_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','isa_cache','isa_cache_child_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','isa_cache','isa_cache_child_entity','RESTRICT','');
-
--- CONSTRAINT isa_cache.isa_cache_parent_entity
-
-SELECT tap.has_constraint('caosdb_testing','isa_cache','isa_cache_parent_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','isa_cache','isa_cache_parent_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','isa_cache','isa_cache_parent_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','isa_cache','isa_cache_parent_entity','RESTRICT','');
-
--- CONSTRAINT isa_cache.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','isa_cache','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','isa_cache','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','isa_cache','`child`,`parent`,`rpath`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.logging
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','logging','');
-SELECT tap.table_collation_is('caosdb_testing','logging','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','logging','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','logging','`level`,`logger`,`message`,`millis`,`logRecord`','');
-
--- COLUMN logging.level
-
-SELECT tap.has_column('caosdb_testing','logging','level','');
-SELECT tap.col_column_type_is('caosdb_testing','logging','level','int(11)','');
-SELECT tap.col_extra_is('caosdb_testing','logging','level','','');
-SELECT tap.col_default_is('caosdb_testing','logging','level',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','logging','level',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','logging','level',NULL,'');
-
--- COLUMN logging.logger
-
-SELECT tap.has_column('caosdb_testing','logging','logger','');
-SELECT tap.col_column_type_is('caosdb_testing','logging','logger','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','logging','logger','','');
-SELECT tap.col_default_is('caosdb_testing','logging','logger',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','logging','logger','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','logging','logger','utf8_unicode_ci','');
-
--- COLUMN logging.message
-
-SELECT tap.has_column('caosdb_testing','logging','message','');
-SELECT tap.col_column_type_is('caosdb_testing','logging','message','mediumtext','');
-SELECT tap.col_extra_is('caosdb_testing','logging','message','','');
-SELECT tap.col_default_is('caosdb_testing','logging','message',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','logging','message','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','logging','message','utf8_unicode_ci','');
-
--- COLUMN logging.millis
-
-SELECT tap.has_column('caosdb_testing','logging','millis','');
-SELECT tap.col_column_type_is('caosdb_testing','logging','millis','bigint(20)','');
-SELECT tap.col_extra_is('caosdb_testing','logging','millis','','');
-SELECT tap.col_default_is('caosdb_testing','logging','millis',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','logging','millis',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','logging','millis',NULL,'');
-
--- COLUMN logging.logRecord
-
-SELECT tap.has_column('caosdb_testing','logging','logRecord','');
-SELECT tap.col_column_type_is('caosdb_testing','logging','logRecord','blob','');
-SELECT tap.col_extra_is('caosdb_testing','logging','logRecord','','');
-SELECT tap.col_default_is('caosdb_testing','logging','logRecord',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','logging','logRecord',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','logging','logRecord',NULL,'');
-
--- ***************************************************************
--- TABLE caosdb_testing.name_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','name_data','');
-SELECT tap.table_collation_is('caosdb_testing','name_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','name_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','name_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
-
--- COLUMN name_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','name_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','name_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','name_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','name_data','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','name_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','name_data','domain_id',NULL,'');
-
--- COLUMN name_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','name_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','name_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','name_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','name_data','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','name_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','name_data','entity_id',NULL,'');
-
--- COLUMN name_data.property_id
-
-SELECT tap.has_column('caosdb_testing','name_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','name_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','name_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','name_data','property_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','name_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','name_data','property_id',NULL,'');
-
--- COLUMN name_data.value
-
-SELECT tap.has_column('caosdb_testing','name_data','value','');
-SELECT tap.col_column_type_is('caosdb_testing','name_data','value','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','name_data','value','','');
-SELECT tap.col_default_is('caosdb_testing','name_data','value',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','name_data','value','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','name_data','value','utf8_unicode_ci','');
-
--- COLUMN name_data.status
-
-SELECT tap.has_column('caosdb_testing','name_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','name_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
-SELECT tap.col_extra_is('caosdb_testing','name_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','name_data','status',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','name_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','name_data','status','utf8_unicode_ci','');
-
--- COLUMN name_data.pidx
-
-SELECT tap.has_column('caosdb_testing','name_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','name_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','name_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','name_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','name_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','name_data','pidx',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','name_data','`domain_id`,`entity_id`,`property_id`,`value`','');
-
--- INDEX name_data.domain_id
-
-SELECT tap.has_index('caosdb_testing','name_data','domain_id','');
-SELECT tap.index_is_type('caosdb_testing','name_data','domain_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','name_data','`domain_id`,`entity_id`','');
-
--- INDEX name_data.entity_id
-
-SELECT tap.has_index('caosdb_testing','name_data','entity_id','');
-SELECT tap.index_is_type('caosdb_testing','name_data','entity_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','name_data','`entity_id`','');
-
--- INDEX name_data.property_id
-
-SELECT tap.has_index('caosdb_testing','name_data','property_id','');
-SELECT tap.index_is_type('caosdb_testing','name_data','property_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','name_data','`property_id`','');
-
--- INDEX name_data.value
-
-SELECT tap.has_index('caosdb_testing','name_data','value','');
-SELECT tap.index_is_type('caosdb_testing','name_data','value','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','name_data','`value`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','name_data','`name_data_domain_id_entity`,`name_data_entity_id_entity`,`name_data_property_id_entity`','');
-
--- CONSTRAINT name_data.name_data_domain_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','name_data','name_data_domain_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','name_data','name_data_domain_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','name_data','name_data_domain_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','name_data','name_data_domain_id_entity','RESTRICT','');
-
--- CONSTRAINT name_data.name_data_entity_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','name_data','name_data_entity_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','name_data','name_data_entity_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','name_data','name_data_entity_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','name_data','name_data_entity_id_entity','RESTRICT','');
-
--- CONSTRAINT name_data.name_data_property_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','name_data','name_data_property_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','name_data','name_data_property_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','name_data','name_data_property_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','name_data','name_data_property_id_entity','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.name_overrides
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','name_overrides','');
-SELECT tap.table_collation_is('caosdb_testing','name_overrides','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','name_overrides','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','name_overrides','`domain_id`,`entity_id`,`property_id`,`name`','');
-
--- COLUMN name_overrides.domain_id
-
-SELECT tap.has_column('caosdb_testing','name_overrides','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','name_overrides','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','name_overrides','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','name_overrides','domain_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','name_overrides','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','name_overrides','domain_id',NULL,'');
-
--- COLUMN name_overrides.entity_id
-
-SELECT tap.has_column('caosdb_testing','name_overrides','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','name_overrides','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','name_overrides','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','name_overrides','entity_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','name_overrides','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','name_overrides','entity_id',NULL,'');
-
--- COLUMN name_overrides.property_id
-
-SELECT tap.has_column('caosdb_testing','name_overrides','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','name_overrides','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','name_overrides','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','name_overrides','property_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','name_overrides','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','name_overrides','property_id',NULL,'');
-
--- COLUMN name_overrides.name
-
-SELECT tap.has_column('caosdb_testing','name_overrides','name','');
-SELECT tap.col_column_type_is('caosdb_testing','name_overrides','name','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','name_overrides','name','','');
-SELECT tap.col_default_is('caosdb_testing','name_overrides','name','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','name_overrides','name','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','name_overrides','name','utf8_unicode_ci','');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','name_overrides','`name_ov_dom_ent_idx`','');
-
--- INDEX name_overrides.name_ov_dom_ent_idx
-
-SELECT tap.has_index('caosdb_testing','name_overrides','name_ov_dom_ent_idx','');
-SELECT tap.index_is_type('caosdb_testing','name_overrides','name_ov_dom_ent_idx','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','name_overrides','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','name_overrides','`name_ov_ukey`,`name_ov_forkey_dom`,`name_ov_forkey_ent`,`name_ov_forkey_pro`','');
-
--- CONSTRAINT name_overrides.name_ov_forkey_dom
-
-SELECT tap.has_constraint('caosdb_testing','name_overrides','name_ov_forkey_dom','');
-SELECT tap.constraint_type_is('caosdb_testing','name_overrides','name_ov_forkey_dom','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','name_overrides','name_ov_forkey_dom','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','name_overrides','name_ov_forkey_dom','RESTRICT','');
-
--- CONSTRAINT name_overrides.name_ov_forkey_ent
-
-SELECT tap.has_constraint('caosdb_testing','name_overrides','name_ov_forkey_ent','');
-SELECT tap.constraint_type_is('caosdb_testing','name_overrides','name_ov_forkey_ent','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','name_overrides','name_ov_forkey_ent','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','name_overrides','name_ov_forkey_ent','RESTRICT','');
-
--- CONSTRAINT name_overrides.name_ov_forkey_pro
-
-SELECT tap.has_constraint('caosdb_testing','name_overrides','name_ov_forkey_pro','');
-SELECT tap.constraint_type_is('caosdb_testing','name_overrides','name_ov_forkey_pro','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','name_overrides','name_ov_forkey_pro','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','name_overrides','name_ov_forkey_pro','RESTRICT','');
-
--- CONSTRAINT name_overrides.name_ov_ukey
-
-SELECT tap.has_constraint('caosdb_testing','name_overrides','name_ov_ukey','');
-SELECT tap.constraint_type_is('caosdb_testing','name_overrides','name_ov_ukey','UNIQUE','');
-
--- ***************************************************************
--- TABLE caosdb_testing.null_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','null_data','');
-SELECT tap.table_collation_is('caosdb_testing','null_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','null_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','null_data','`domain_id`,`entity_id`,`property_id`,`status`,`pidx`','');
-
--- COLUMN null_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','null_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','null_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','null_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','null_data','domain_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','null_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','null_data','domain_id',NULL,'');
-
--- COLUMN null_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','null_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','null_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','null_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','null_data','entity_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','null_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','null_data','entity_id',NULL,'');
-
--- COLUMN null_data.property_id
-
-SELECT tap.has_column('caosdb_testing','null_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','null_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','null_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','null_data','property_id','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','null_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','null_data','property_id',NULL,'');
-
--- COLUMN null_data.status
-
-SELECT tap.has_column('caosdb_testing','null_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','null_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\')','');
-SELECT tap.col_extra_is('caosdb_testing','null_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','null_data','status','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','null_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','null_data','status','utf8_unicode_ci','');
-
--- COLUMN null_data.pidx
-
-SELECT tap.has_column('caosdb_testing','null_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','null_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','null_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','null_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','null_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','null_data','pidx',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','null_data','`null_data_dom_ent_idx`','');
-
--- INDEX null_data.null_data_dom_ent_idx
-
-SELECT tap.has_index('caosdb_testing','null_data','null_data_dom_ent_idx','');
-SELECT tap.index_is_type('caosdb_testing','null_data','null_data_dom_ent_idx','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','null_data','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','null_data','`null_forkey_dom`,`null_forkey_ent`,`null_forkey_pro`','');
-
--- CONSTRAINT null_data.null_forkey_dom
-
-SELECT tap.has_constraint('caosdb_testing','null_data','null_forkey_dom','');
-SELECT tap.constraint_type_is('caosdb_testing','null_data','null_forkey_dom','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','null_data','null_forkey_dom','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','null_data','null_forkey_dom','RESTRICT','');
-
--- CONSTRAINT null_data.null_forkey_ent
-
-SELECT tap.has_constraint('caosdb_testing','null_data','null_forkey_ent','');
-SELECT tap.constraint_type_is('caosdb_testing','null_data','null_forkey_ent','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','null_data','null_forkey_ent','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','null_data','null_forkey_ent','RESTRICT','');
-
--- CONSTRAINT null_data.null_forkey_pro
-
-SELECT tap.has_constraint('caosdb_testing','null_data','null_forkey_pro','');
-SELECT tap.constraint_type_is('caosdb_testing','null_data','null_forkey_pro','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','null_data','null_forkey_pro','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','null_data','null_forkey_pro','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.passwd
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','passwd','');
-SELECT tap.table_collation_is('caosdb_testing','passwd','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','passwd','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','passwd','`principal`,`hash`,`alg`,`it`,`salt`','');
-
--- COLUMN passwd.principal
-
-SELECT tap.has_column('caosdb_testing','passwd','principal','');
-SELECT tap.col_column_type_is('caosdb_testing','passwd','principal','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','passwd','principal','','');
-SELECT tap.col_default_is('caosdb_testing','passwd','principal',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','passwd','principal',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','passwd','principal',NULL,'');
-
--- COLUMN passwd.hash
-
-SELECT tap.has_column('caosdb_testing','passwd','hash','');
-SELECT tap.col_column_type_is('caosdb_testing','passwd','hash','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','passwd','hash','','');
-SELECT tap.col_default_is('caosdb_testing','passwd','hash',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','passwd','hash',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','passwd','hash',NULL,'');
-
--- COLUMN passwd.alg
-
-SELECT tap.has_column('caosdb_testing','passwd','alg','');
-SELECT tap.col_column_type_is('caosdb_testing','passwd','alg','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','passwd','alg','','');
-SELECT tap.col_default_is('caosdb_testing','passwd','alg','\'SHA-512\'','');
-SELECT tap.col_charset_is('caosdb_testing','passwd','alg','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','passwd','alg','utf8_unicode_ci','');
-
--- COLUMN passwd.it
-
-SELECT tap.has_column('caosdb_testing','passwd','it','');
-SELECT tap.col_column_type_is('caosdb_testing','passwd','it','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','passwd','it','','');
-SELECT tap.col_default_is('caosdb_testing','passwd','it',5000,'');
-SELECT tap.col_charset_is('caosdb_testing','passwd','it',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','passwd','it',NULL,'');
-
--- COLUMN passwd.salt
-
-SELECT tap.has_column('caosdb_testing','passwd','salt','');
-SELECT tap.col_column_type_is('caosdb_testing','passwd','salt','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','passwd','salt','','');
-SELECT tap.col_default_is('caosdb_testing','passwd','salt',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','passwd','salt',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','passwd','salt',NULL,'');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','passwd','`PRIMARY`','');
-
--- CONSTRAINT passwd.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','passwd','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','passwd','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','passwd','`principal`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.permissions
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','permissions','');
-SELECT tap.table_collation_is('caosdb_testing','permissions','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','permissions','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','permissions','`role`,`permissions`','');
-
--- COLUMN permissions.role
-
-SELECT tap.has_column('caosdb_testing','permissions','role','');
-SELECT tap.col_column_type_is('caosdb_testing','permissions','role','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','permissions','role','','');
-SELECT tap.col_default_is('caosdb_testing','permissions','role',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','permissions','role',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','permissions','role',NULL,'');
-
--- COLUMN permissions.permissions
-
-SELECT tap.has_column('caosdb_testing','permissions','permissions','');
-SELECT tap.col_column_type_is('caosdb_testing','permissions','permissions','mediumtext','');
-SELECT tap.col_extra_is('caosdb_testing','permissions','permissions','','');
-SELECT tap.col_default_is('caosdb_testing','permissions','permissions',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','permissions','permissions','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','permissions','permissions','utf8_unicode_ci','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','permissions','`PRIMARY`,`perm_name_roles`','');
-
--- CONSTRAINT permissions.perm_name_roles
-
-SELECT tap.has_constraint('caosdb_testing','permissions','perm_name_roles','');
-SELECT tap.constraint_type_is('caosdb_testing','permissions','perm_name_roles','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','permissions','perm_name_roles','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','permissions','perm_name_roles','RESTRICT','');
-
--- CONSTRAINT permissions.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','permissions','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','permissions','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','permissions','`role`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.query_template_def
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','query_template_def','');
-SELECT tap.table_collation_is('caosdb_testing','query_template_def','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','query_template_def','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','query_template_def','`id`,`definition`','');
-
--- COLUMN query_template_def.id
-
-SELECT tap.has_column('caosdb_testing','query_template_def','id','');
-SELECT tap.col_column_type_is('caosdb_testing','query_template_def','id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','query_template_def','id','','');
-SELECT tap.col_default_is('caosdb_testing','query_template_def','id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','query_template_def','id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','query_template_def','id',NULL,'');
-
--- COLUMN query_template_def.definition
-
-SELECT tap.has_column('caosdb_testing','query_template_def','definition','');
-SELECT tap.col_column_type_is('caosdb_testing','query_template_def','definition','mediumtext','');
-SELECT tap.col_extra_is('caosdb_testing','query_template_def','definition','','');
-SELECT tap.col_default_is('caosdb_testing','query_template_def','definition',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','query_template_def','definition','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','query_template_def','definition','utf8_unicode_ci','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','query_template_def','`PRIMARY`,`query_template_def_ibfk_1`','');
-
--- CONSTRAINT query_template_def.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','query_template_def','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','query_template_def','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','query_template_def','`id`','');
-
--- CONSTRAINT query_template_def.query_template_def_ibfk_1
-
-SELECT tap.has_constraint('caosdb_testing','query_template_def','query_template_def_ibfk_1','');
-SELECT tap.constraint_type_is('caosdb_testing','query_template_def','query_template_def_ibfk_1','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','query_template_def','query_template_def_ibfk_1','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','query_template_def','query_template_def_ibfk_1','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.reference_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','reference_data','');
-SELECT tap.table_collation_is('caosdb_testing','reference_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','reference_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','reference_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
-
--- COLUMN reference_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','reference_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','reference_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','reference_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','reference_data','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','reference_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','reference_data','domain_id',NULL,'');
-
--- COLUMN reference_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','reference_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','reference_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','reference_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','reference_data','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','reference_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','reference_data','entity_id',NULL,'');
-
--- COLUMN reference_data.property_id
-
-SELECT tap.has_column('caosdb_testing','reference_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','reference_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','reference_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','reference_data','property_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','reference_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','reference_data','property_id',NULL,'');
-
--- COLUMN reference_data.value
-
-SELECT tap.has_column('caosdb_testing','reference_data','value','');
-SELECT tap.col_column_type_is('caosdb_testing','reference_data','value','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','reference_data','value','','');
-SELECT tap.col_default_is('caosdb_testing','reference_data','value',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','reference_data','value',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','reference_data','value',NULL,'');
-
--- COLUMN reference_data.status
-
-SELECT tap.has_column('caosdb_testing','reference_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','reference_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
-SELECT tap.col_extra_is('caosdb_testing','reference_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','reference_data','status',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','reference_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','reference_data','status','utf8_unicode_ci','');
-
--- COLUMN reference_data.pidx
-
-SELECT tap.has_column('caosdb_testing','reference_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','reference_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','reference_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','reference_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','reference_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','reference_data','pidx',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','reference_data','`entity_id`','');
-
--- INDEX reference_data.entity_id
-
-SELECT tap.has_index('caosdb_testing','reference_data','entity_id','');
-SELECT tap.index_is_type('caosdb_testing','reference_data','entity_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','reference_data','`entity_id`,`property_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','reference_data','`ref_domain_id_entity`,`ref_entity_id_entity`,`ref_property_id_entity`,`ref_value_entity`','');
-
--- CONSTRAINT reference_data.ref_domain_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','reference_data','ref_domain_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','reference_data','ref_domain_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','reference_data','ref_domain_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','reference_data','ref_domain_id_entity','RESTRICT','');
-
--- CONSTRAINT reference_data.ref_entity_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','reference_data','ref_entity_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','reference_data','ref_entity_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','reference_data','ref_entity_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','reference_data','ref_entity_id_entity','RESTRICT','');
-
--- CONSTRAINT reference_data.ref_property_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','reference_data','ref_property_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','reference_data','ref_property_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','reference_data','ref_property_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','reference_data','ref_property_id_entity','RESTRICT','');
-
--- CONSTRAINT reference_data.ref_value_entity
-
-SELECT tap.has_constraint('caosdb_testing','reference_data','ref_value_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','reference_data','ref_value_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','reference_data','ref_value_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','reference_data','ref_value_entity','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.roles
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','roles','');
-SELECT tap.table_collation_is('caosdb_testing','roles','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','roles','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','roles','`name`,`description`','');
-
--- COLUMN roles.name
-
-SELECT tap.has_column('caosdb_testing','roles','name','');
-SELECT tap.col_column_type_is('caosdb_testing','roles','name','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','roles','name','','');
-SELECT tap.col_default_is('caosdb_testing','roles','name',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','roles','name',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','roles','name',NULL,'');
-
--- COLUMN roles.description
-
-SELECT tap.has_column('caosdb_testing','roles','description','');
-SELECT tap.col_column_type_is('caosdb_testing','roles','description','mediumtext','');
-SELECT tap.col_extra_is('caosdb_testing','roles','description','','');
-SELECT tap.col_default_is('caosdb_testing','roles','description','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','roles','description','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','roles','description','utf8_unicode_ci','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','roles','`PRIMARY`','');
-
--- CONSTRAINT roles.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','roles','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','roles','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','roles','`name`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.rules
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','rules','');
-SELECT tap.table_collation_is('caosdb_testing','rules','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','rules','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','rules','`domain_id`,`entity_id`,`transaction`,`criterion`,`modus`','');
-
--- COLUMN rules.domain_id
-
-SELECT tap.has_column('caosdb_testing','rules','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','rules','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','rules','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','rules','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','rules','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','rules','domain_id',NULL,'');
-
--- COLUMN rules.entity_id
-
-SELECT tap.has_column('caosdb_testing','rules','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','rules','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','rules','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','rules','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','rules','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','rules','entity_id',NULL,'');
-
--- COLUMN rules.transaction
-
-SELECT tap.has_column('caosdb_testing','rules','transaction','');
-SELECT tap.col_column_type_is('caosdb_testing','rules','transaction','enum(\'INSERT\',\'RETRIEVE\',\'UPDATE\',\'DELETE\')','');
-SELECT tap.col_extra_is('caosdb_testing','rules','transaction','','');
-SELECT tap.col_default_is('caosdb_testing','rules','transaction',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','rules','transaction','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','rules','transaction','utf8_unicode_ci','');
-
--- COLUMN rules.criterion
-
-SELECT tap.has_column('caosdb_testing','rules','criterion','');
-SELECT tap.col_column_type_is('caosdb_testing','rules','criterion','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','rules','criterion','','');
-SELECT tap.col_default_is('caosdb_testing','rules','criterion',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','rules','criterion','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','rules','criterion','utf8_unicode_ci','');
-
--- COLUMN rules.modus
-
-SELECT tap.has_column('caosdb_testing','rules','modus','');
-SELECT tap.col_column_type_is('caosdb_testing','rules','modus','enum(\'MUST\',\'SHOULD\',\'SHOULDNT\',\'MUSTNOT\')','');
-SELECT tap.col_extra_is('caosdb_testing','rules','modus','','');
-SELECT tap.col_default_is('caosdb_testing','rules','modus',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','rules','modus','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','rules','modus','utf8_unicode_ci','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','rules','`rule_domain_id_entity`,`rule_entity_id_entity`','');
-
--- CONSTRAINT rules.rule_domain_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','rules','rule_domain_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','rules','rule_domain_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','rules','rule_domain_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','rules','rule_domain_id_entity','RESTRICT','');
-
--- CONSTRAINT rules.rule_entity_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','rules','rule_entity_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','rules','rule_entity_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','rules','rule_entity_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','rules','rule_entity_id_entity','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.stats
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','stats','');
-SELECT tap.table_collation_is('caosdb_testing','stats','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','stats','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','stats','`name`,`value`','');
-
--- COLUMN stats.name
-
-SELECT tap.has_column('caosdb_testing','stats','name','');
-SELECT tap.col_column_type_is('caosdb_testing','stats','name','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','stats','name','','');
-SELECT tap.col_default_is('caosdb_testing','stats','name',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','stats','name','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','stats','name','utf8_unicode_ci','');
-
--- COLUMN stats.value
-
-SELECT tap.has_column('caosdb_testing','stats','value','');
-SELECT tap.col_column_type_is('caosdb_testing','stats','value','blob','');
-SELECT tap.col_extra_is('caosdb_testing','stats','value','','');
-SELECT tap.col_default_is('caosdb_testing','stats','value','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','stats','value',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','stats','value',NULL,'');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','stats','`PRIMARY`','');
-
--- CONSTRAINT stats.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','stats','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','stats','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','stats','`name`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.text_data
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','text_data','');
-SELECT tap.table_collation_is('caosdb_testing','text_data','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','text_data','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','text_data','`domain_id`,`entity_id`,`property_id`,`value`,`status`,`pidx`','');
-
--- COLUMN text_data.domain_id
-
-SELECT tap.has_column('caosdb_testing','text_data','domain_id','');
-SELECT tap.col_column_type_is('caosdb_testing','text_data','domain_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','text_data','domain_id','','');
-SELECT tap.col_default_is('caosdb_testing','text_data','domain_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','text_data','domain_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','text_data','domain_id',NULL,'');
-
--- COLUMN text_data.entity_id
-
-SELECT tap.has_column('caosdb_testing','text_data','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','text_data','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','text_data','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','text_data','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','text_data','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','text_data','entity_id',NULL,'');
-
--- COLUMN text_data.property_id
-
-SELECT tap.has_column('caosdb_testing','text_data','property_id','');
-SELECT tap.col_column_type_is('caosdb_testing','text_data','property_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','text_data','property_id','','');
-SELECT tap.col_default_is('caosdb_testing','text_data','property_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','text_data','property_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','text_data','property_id',NULL,'');
-
--- COLUMN text_data.value
-
-SELECT tap.has_column('caosdb_testing','text_data','value','');
-SELECT tap.col_column_type_is('caosdb_testing','text_data','value','text','');
-SELECT tap.col_extra_is('caosdb_testing','text_data','value','','');
-SELECT tap.col_default_is('caosdb_testing','text_data','value',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','text_data','value','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','text_data','value','utf8_unicode_ci','');
-
--- COLUMN text_data.status
-
-SELECT tap.has_column('caosdb_testing','text_data','status','');
-SELECT tap.col_column_type_is('caosdb_testing','text_data','status','enum(\'OBLIGATORY\',\'RECOMMENDED\',\'SUGGESTED\',\'FIX\',\'REPLACEMENT\')','');
-SELECT tap.col_extra_is('caosdb_testing','text_data','status','','');
-SELECT tap.col_default_is('caosdb_testing','text_data','status',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','text_data','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','text_data','status','utf8_unicode_ci','');
-
--- COLUMN text_data.pidx
-
-SELECT tap.has_column('caosdb_testing','text_data','pidx','');
-SELECT tap.col_column_type_is('caosdb_testing','text_data','pidx','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','text_data','pidx','','');
-SELECT tap.col_default_is('caosdb_testing','text_data','pidx',0,'');
-SELECT tap.col_charset_is('caosdb_testing','text_data','pidx',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','text_data','pidx',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','text_data','`domain_id`','');
-
--- INDEX text_data.domain_id
-
-SELECT tap.has_index('caosdb_testing','text_data','domain_id','');
-SELECT tap.index_is_type('caosdb_testing','text_data','domain_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','text_data','`domain_id`,`entity_id`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','text_data','`str_domain_id_entity`,`str_entity_id_entity`,`str_property_id_entity`','');
-
--- CONSTRAINT text_data.str_domain_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','text_data','str_domain_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','text_data','str_domain_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','text_data','str_domain_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','text_data','str_domain_id_entity','RESTRICT','');
-
--- CONSTRAINT text_data.str_entity_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','text_data','str_entity_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','text_data','str_entity_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','text_data','str_entity_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','text_data','str_entity_id_entity','RESTRICT','');
-
--- CONSTRAINT text_data.str_property_id_entity
-
-SELECT tap.has_constraint('caosdb_testing','text_data','str_property_id_entity','');
-SELECT tap.constraint_type_is('caosdb_testing','text_data','str_property_id_entity','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','text_data','str_property_id_entity','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','text_data','str_property_id_entity','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.transaction_log
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','transaction_log','');
-SELECT tap.table_collation_is('caosdb_testing','transaction_log','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','transaction_log','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','transaction_log','`transaction`,`entity_id`,`username`,`seconds`,`nanos`,`realm`','');
-
--- COLUMN transaction_log.transaction
-
-SELECT tap.has_column('caosdb_testing','transaction_log','transaction','');
-SELECT tap.col_column_type_is('caosdb_testing','transaction_log','transaction','varchar(255)','');
-SELECT tap.col_extra_is('caosdb_testing','transaction_log','transaction','','');
-SELECT tap.col_default_is('caosdb_testing','transaction_log','transaction',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','transaction_log','transaction','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','transaction_log','transaction','utf8_unicode_ci','');
-
--- COLUMN transaction_log.entity_id
-
-SELECT tap.has_column('caosdb_testing','transaction_log','entity_id','');
-SELECT tap.col_column_type_is('caosdb_testing','transaction_log','entity_id','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','transaction_log','entity_id','','');
-SELECT tap.col_default_is('caosdb_testing','transaction_log','entity_id',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','transaction_log','entity_id',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','transaction_log','entity_id',NULL,'');
-
--- COLUMN transaction_log.username
-
-SELECT tap.has_column('caosdb_testing','transaction_log','username','');
-SELECT tap.col_column_type_is('caosdb_testing','transaction_log','username','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','transaction_log','username','','');
-SELECT tap.col_default_is('caosdb_testing','transaction_log','username',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','transaction_log','username',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','transaction_log','username',NULL,'');
-
--- COLUMN transaction_log.seconds
-
-SELECT tap.has_column('caosdb_testing','transaction_log','seconds','');
-SELECT tap.col_column_type_is('caosdb_testing','transaction_log','seconds','bigint(20) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','transaction_log','seconds','','');
-SELECT tap.col_default_is('caosdb_testing','transaction_log','seconds',0,'');
-SELECT tap.col_charset_is('caosdb_testing','transaction_log','seconds',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','transaction_log','seconds',NULL,'');
-
--- COLUMN transaction_log.nanos
-
-SELECT tap.has_column('caosdb_testing','transaction_log','nanos','');
-SELECT tap.col_column_type_is('caosdb_testing','transaction_log','nanos','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','transaction_log','nanos','','');
-SELECT tap.col_default_is('caosdb_testing','transaction_log','nanos',0,'');
-SELECT tap.col_charset_is('caosdb_testing','transaction_log','nanos',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','transaction_log','nanos',NULL,'');
-
--- COLUMN transaction_log.realm
-
-SELECT tap.has_column('caosdb_testing','transaction_log','realm','');
-SELECT tap.col_column_type_is('caosdb_testing','transaction_log','realm','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','transaction_log','realm','','');
-SELECT tap.col_default_is('caosdb_testing','transaction_log','realm',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','transaction_log','realm',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','transaction_log','realm',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','transaction_log','`entity_id`','');
-
--- INDEX transaction_log.entity_id
-
-SELECT tap.has_index('caosdb_testing','transaction_log','entity_id','');
-SELECT tap.index_is_type('caosdb_testing','transaction_log','entity_id','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','transaction_log','`entity_id`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.units_lin_con
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','units_lin_con','');
-SELECT tap.table_collation_is('caosdb_testing','units_lin_con','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','units_lin_con','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','units_lin_con','`signature_from`,`signature_to`,`a`,`b_dividend`,`b_divisor`,`c`','');
-
--- COLUMN units_lin_con.signature_from
-
-SELECT tap.has_column('caosdb_testing','units_lin_con','signature_from','');
-SELECT tap.col_column_type_is('caosdb_testing','units_lin_con','signature_from','bigint(20)','');
-SELECT tap.col_extra_is('caosdb_testing','units_lin_con','signature_from','','');
-SELECT tap.col_default_is('caosdb_testing','units_lin_con','signature_from',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','units_lin_con','signature_from',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','units_lin_con','signature_from',NULL,'');
-
--- COLUMN units_lin_con.signature_to
-
-SELECT tap.has_column('caosdb_testing','units_lin_con','signature_to','');
-SELECT tap.col_column_type_is('caosdb_testing','units_lin_con','signature_to','bigint(20)','');
-SELECT tap.col_extra_is('caosdb_testing','units_lin_con','signature_to','','');
-SELECT tap.col_default_is('caosdb_testing','units_lin_con','signature_to',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','units_lin_con','signature_to',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','units_lin_con','signature_to',NULL,'');
-
--- COLUMN units_lin_con.a
-
-SELECT tap.has_column('caosdb_testing','units_lin_con','a','');
-SELECT tap.col_column_type_is('caosdb_testing','units_lin_con','a','decimal(65,30)','');
-SELECT tap.col_extra_is('caosdb_testing','units_lin_con','a','','');
-SELECT tap.col_default_is('caosdb_testing','units_lin_con','a',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','units_lin_con','a',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','units_lin_con','a',NULL,'');
-
--- COLUMN units_lin_con.b_dividend
-
-SELECT tap.has_column('caosdb_testing','units_lin_con','b_dividend','');
-SELECT tap.col_column_type_is('caosdb_testing','units_lin_con','b_dividend','int(11)','');
-SELECT tap.col_extra_is('caosdb_testing','units_lin_con','b_dividend','','');
-SELECT tap.col_default_is('caosdb_testing','units_lin_con','b_dividend',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','units_lin_con','b_dividend',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','units_lin_con','b_dividend',NULL,'');
-
--- COLUMN units_lin_con.b_divisor
-
-SELECT tap.has_column('caosdb_testing','units_lin_con','b_divisor','');
-SELECT tap.col_column_type_is('caosdb_testing','units_lin_con','b_divisor','int(11)','');
-SELECT tap.col_extra_is('caosdb_testing','units_lin_con','b_divisor','','');
-SELECT tap.col_default_is('caosdb_testing','units_lin_con','b_divisor',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','units_lin_con','b_divisor',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','units_lin_con','b_divisor',NULL,'');
-
--- COLUMN units_lin_con.c
-
-SELECT tap.has_column('caosdb_testing','units_lin_con','c','');
-SELECT tap.col_column_type_is('caosdb_testing','units_lin_con','c','decimal(65,30)','');
-SELECT tap.col_extra_is('caosdb_testing','units_lin_con','c','','');
-SELECT tap.col_default_is('caosdb_testing','units_lin_con','c',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','units_lin_con','c',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','units_lin_con','c',NULL,'');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','units_lin_con','`PRIMARY`','');
-
--- CONSTRAINT units_lin_con.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','units_lin_con','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','units_lin_con','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','units_lin_con','`signature_from`','');
-
--- ***************************************************************
--- TABLE caosdb_testing.user_info
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','user_info','');
-SELECT tap.table_collation_is('caosdb_testing','user_info','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','user_info','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','user_info','`realm`,`name`,`email`,`status`,`entity`','');
-
--- COLUMN user_info.realm
-
-SELECT tap.has_column('caosdb_testing','user_info','realm','');
-SELECT tap.col_column_type_is('caosdb_testing','user_info','realm','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','user_info','realm','','');
-SELECT tap.col_default_is('caosdb_testing','user_info','realm',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','user_info','realm',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','user_info','realm',NULL,'');
-
--- COLUMN user_info.name
-
-SELECT tap.has_column('caosdb_testing','user_info','name','');
-SELECT tap.col_column_type_is('caosdb_testing','user_info','name','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','user_info','name','','');
-SELECT tap.col_default_is('caosdb_testing','user_info','name',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','user_info','name',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','user_info','name',NULL,'');
-
--- COLUMN user_info.email
-
-SELECT tap.has_column('caosdb_testing','user_info','email','');
-SELECT tap.col_column_type_is('caosdb_testing','user_info','email','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','user_info','email','','');
-SELECT tap.col_default_is('caosdb_testing','user_info','email','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','user_info','email',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','user_info','email',NULL,'');
-
--- COLUMN user_info.status
-
-SELECT tap.has_column('caosdb_testing','user_info','status','');
-SELECT tap.col_column_type_is('caosdb_testing','user_info','status','enum(\'ACTIVE\',\'INACTIVE\')','');
-SELECT tap.col_extra_is('caosdb_testing','user_info','status','','');
-SELECT tap.col_default_is('caosdb_testing','user_info','status','\'INACTIVE\'','');
-SELECT tap.col_charset_is('caosdb_testing','user_info','status','utf8','');
-SELECT tap.col_collation_is('caosdb_testing','user_info','status','utf8_unicode_ci','');
-
--- COLUMN user_info.entity
-
-SELECT tap.has_column('caosdb_testing','user_info','entity','');
-SELECT tap.col_column_type_is('caosdb_testing','user_info','entity','int(10) unsigned','');
-SELECT tap.col_extra_is('caosdb_testing','user_info','entity','','');
-SELECT tap.col_default_is('caosdb_testing','user_info','entity','NULL','');
-SELECT tap.col_charset_is('caosdb_testing','user_info','entity',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','user_info','entity',NULL,'');
-
--- INDEXES
-SELECT tap.indexes_are('caosdb_testing','user_info','`subject_entity`','');
-
--- INDEX user_info.subject_entity
-
-SELECT tap.has_index('caosdb_testing','user_info','subject_entity','');
-SELECT tap.index_is_type('caosdb_testing','user_info','subject_entity','BTREE','');
-SELECT tap.is_indexed('caosdb_testing','user_info','`entity`','');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','user_info','`PRIMARY`,`subjects_ibfk_1`','');
-
--- CONSTRAINT user_info.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','user_info','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','user_info','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','user_info','`realm`,`name`','');
-
--- CONSTRAINT user_info.subjects_ibfk_1
-
-SELECT tap.has_constraint('caosdb_testing','user_info','subjects_ibfk_1','');
-SELECT tap.constraint_type_is('caosdb_testing','user_info','subjects_ibfk_1','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','user_info','subjects_ibfk_1','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','user_info','subjects_ibfk_1','RESTRICT','');
-
--- ***************************************************************
--- TABLE caosdb_testing.user_roles
--- ***************************************************************
-
-SELECT tap.has_table('caosdb_testing','user_roles','');
-SELECT tap.table_collation_is('caosdb_testing','user_roles','utf8_unicode_ci','');
-SELECT tap.table_engine_is('caosdb_testing','user_roles','InnoDB','');
-
--- COLUMNS
-SELECT tap.columns_are('caosdb_testing','user_roles','`realm`,`user`,`role`','');
-
--- COLUMN user_roles.realm
-
-SELECT tap.has_column('caosdb_testing','user_roles','realm','');
-SELECT tap.col_column_type_is('caosdb_testing','user_roles','realm','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','user_roles','realm','','');
-SELECT tap.col_default_is('caosdb_testing','user_roles','realm',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','user_roles','realm',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','user_roles','realm',NULL,'');
-
--- COLUMN user_roles.user
-
-SELECT tap.has_column('caosdb_testing','user_roles','user','');
-SELECT tap.col_column_type_is('caosdb_testing','user_roles','user','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','user_roles','user','','');
-SELECT tap.col_default_is('caosdb_testing','user_roles','user',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','user_roles','user',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','user_roles','user',NULL,'');
-
--- COLUMN user_roles.role
-
-SELECT tap.has_column('caosdb_testing','user_roles','role','');
-SELECT tap.col_column_type_is('caosdb_testing','user_roles','role','varbinary(255)','');
-SELECT tap.col_extra_is('caosdb_testing','user_roles','role','','');
-SELECT tap.col_default_is('caosdb_testing','user_roles','role',NULL,'');
-SELECT tap.col_charset_is('caosdb_testing','user_roles','role',NULL,'');
-SELECT tap.col_collation_is('caosdb_testing','user_roles','role',NULL,'');
-
--- CONSTRAINTS
-SELECT tap.constraints_are('caosdb_testing','user_roles','`PRIMARY`,`user_roles_ibfk_1`','');
-
--- CONSTRAINT user_roles.PRIMARY
-
-SELECT tap.has_constraint('caosdb_testing','user_roles','PRIMARY','');
-SELECT tap.constraint_type_is('caosdb_testing','user_roles','PRIMARY','PRIMARY KEY','');
-SELECT tap.col_is_pk('caosdb_testing','user_roles','`realm`,`user`,`role`','');
-
--- CONSTRAINT user_roles.user_roles_ibfk_1
-
-SELECT tap.has_constraint('caosdb_testing','user_roles','user_roles_ibfk_1','');
-SELECT tap.constraint_type_is('caosdb_testing','user_roles','user_roles_ibfk_1','FOREIGN KEY','');
-SELECT tap.fk_on_delete('caosdb_testing','user_roles','user_roles_ibfk_1','RESTRICT','');
-SELECT tap.fk_on_update('caosdb_testing','user_roles','user_roles_ibfk_1','RESTRICT','');
-
--- ***************************************************************
--- FUNCTIONS 
--- ***************************************************************
-
-SELECT tap.routines_are('caosdb_testing','FUNCTION','`CaosDBVersion`,`convert_unit`,`constructDateTimeWhereClauseForColumn`,`getAggValueWhereClause`,`getDateTimeWhereClause`,`getDoubleWhereClause`,`getDateWhereClause`,`makeStmt`,`standard_unit`','');
-
--- FUNCTION caosdb_testing.CaosDBVersion
-
-SELECT tap.has_function('caosdb_testing','CaosDBVersion','');
-SELECT tap.function_is_deterministic('caosdb_testing','CaosDBVersion','YES','');
-SELECT tap.function_data_type_is('caosdb_testing','CaosDBVersion','varchar','');
-SELECT tap.function_security_type_is('caosdb_testing','CaosDBVersion','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','CaosDBVersion','CONTAINS SQL','');
-
--- FUNCTION caosdb_testing.convert_unit
-
-SELECT tap.has_function('caosdb_testing','convert_unit','');
-SELECT tap.function_is_deterministic('caosdb_testing','convert_unit','YES','');
-SELECT tap.function_data_type_is('caosdb_testing','convert_unit','decimal','');
-SELECT tap.function_security_type_is('caosdb_testing','convert_unit','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','convert_unit','CONTAINS SQL','');
-
--- FUNCTION caosdb_testing.constructDateTimeWhereClauseForColumn
-
-SELECT tap.has_function('caosdb_testing','constructDateTimeWhereClauseForColumn','');
-SELECT tap.function_is_deterministic('caosdb_testing','constructDateTimeWhereClauseForColumn','YES','');
-SELECT tap.function_data_type_is('caosdb_testing','constructDateTimeWhereClauseForColumn','varchar','');
-SELECT tap.function_security_type_is('caosdb_testing','constructDateTimeWhereClauseForColumn','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','constructDateTimeWhereClauseForColumn','CONTAINS SQL','');
-
--- FUNCTION caosdb_testing.getAggValueWhereClause
-
-SELECT tap.has_function('caosdb_testing','getAggValueWhereClause','');
-SELECT tap.function_is_deterministic('caosdb_testing','getAggValueWhereClause','YES','');
-SELECT tap.function_data_type_is('caosdb_testing','getAggValueWhereClause','varchar','');
-SELECT tap.function_security_type_is('caosdb_testing','getAggValueWhereClause','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','getAggValueWhereClause','CONTAINS SQL','');
-
--- FUNCTION caosdb_testing.getDateTimeWhereClause
-
-SELECT tap.has_function('caosdb_testing','getDateTimeWhereClause','');
-SELECT tap.function_is_deterministic('caosdb_testing','getDateTimeWhereClause','YES','');
-SELECT tap.function_data_type_is('caosdb_testing','getDateTimeWhereClause','varchar','');
-SELECT tap.function_security_type_is('caosdb_testing','getDateTimeWhereClause','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','getDateTimeWhereClause','CONTAINS SQL','');
-
--- FUNCTION caosdb_testing.getDoubleWhereClause
-
-SELECT tap.has_function('caosdb_testing','getDoubleWhereClause','');
-SELECT tap.function_is_deterministic('caosdb_testing','getDoubleWhereClause','YES','');
-SELECT tap.function_data_type_is('caosdb_testing','getDoubleWhereClause','varchar','');
-SELECT tap.function_security_type_is('caosdb_testing','getDoubleWhereClause','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','getDoubleWhereClause','CONTAINS SQL','');
-
--- FUNCTION caosdb_testing.getDateWhereClause
-
-SELECT tap.has_function('caosdb_testing','getDateWhereClause','');
-SELECT tap.function_is_deterministic('caosdb_testing','getDateWhereClause','YES','');
-SELECT tap.function_data_type_is('caosdb_testing','getDateWhereClause','varchar','');
-SELECT tap.function_security_type_is('caosdb_testing','getDateWhereClause','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','getDateWhereClause','CONTAINS SQL','');
-
--- FUNCTION caosdb_testing.makeStmt
-
-SELECT tap.has_function('caosdb_testing','makeStmt','');
-SELECT tap.function_is_deterministic('caosdb_testing','makeStmt','NO','');
-SELECT tap.function_data_type_is('caosdb_testing','makeStmt','varchar','');
-SELECT tap.function_security_type_is('caosdb_testing','makeStmt','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','makeStmt','NO SQL','');
-
--- FUNCTION caosdb_testing.standard_unit
-
-SELECT tap.has_function('caosdb_testing','standard_unit','');
-SELECT tap.function_is_deterministic('caosdb_testing','standard_unit','YES','');
-SELECT tap.function_data_type_is('caosdb_testing','standard_unit','bigint','');
-SELECT tap.function_security_type_is('caosdb_testing','standard_unit','DEFINER','');
-SELECT tap.function_sql_data_access_is('caosdb_testing','standard_unit','CONTAINS SQL','');
-
--- ***************************************************************
--- PROCEDURES 
--- ***************************************************************
-
-SELECT tap.routines_are('caosdb_testing','PROCEDURE','`applyBackReference`,`applyPOV`,`applyRefPOV`,`applyIDFilter`,`applySAT`,`applyTransactionFilter`,`calcComplementUnion`,`calcDifference`,`calcIntersection`,`calcUnion`,`cleanUpLinCon`,`cleanUpQuery`,`copyTable`,`createTmpTable`,`createTmpTable2`,`deleteEntity`,`deleteEntityProperties`,`deleteIsa`,`deleteLinCon`,`entityACL`,`finishNegationFilter`,`finishSubProperty`,`getChildren`,`getFileIdByPath`,`getRole`,`getRules`,`initAutoIncrement`,`initBackReference`,`getFile`,`initConjunctionFilter`,`initDisjunctionFilter`,`initNegationFilter`,`initPOVRefidsTable`,`initQuery`,`insertEntity`,`getDependentEntities`,`initEmptyTargetSet`,`initEntity`,`insertLinCon`,`insertUser`,`intersectTable`,`initPOVPropertiesTable`,`initSubEntity`,`isSubtype`,`overrideDesc`,`overrideName`,`overrideType`,`raiseWarning`,`registerSubdomain`,`initSubProperty`,`insertEntityProperty`,`registerTempTableName`,`retrieveDatatype`,`retrieveEntityParents`,`retrieveGroup`,`setPassword`,`insertIsa`,`retrieveEntity`,`retrieveEntityProperties`,`showEntityAutoIncr`,`updateLinCon`,`retrieveOverrides`,`updateEntity`','');
-
--- PROCEDURES caosdb_testing.applyBackReference
-
-SELECT tap.has_procedure('caosdb_testing','applyBackReference','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','applyBackReference','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','applyBackReference','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','applyBackReference','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.applyPOV
-
-SELECT tap.has_procedure('caosdb_testing','applyPOV','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','applyPOV','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','applyPOV','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','applyPOV','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.applyRefPOV
-
-SELECT tap.has_procedure('caosdb_testing','applyRefPOV','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','applyRefPOV','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','applyRefPOV','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','applyRefPOV','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.applyIDFilter
-
-SELECT tap.has_procedure('caosdb_testing','applyIDFilter','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','applyIDFilter','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','applyIDFilter','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','applyIDFilter','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.applySAT
-
-SELECT tap.has_procedure('caosdb_testing','applySAT','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','applySAT','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','applySAT','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','applySAT','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.applyTransactionFilter
-
-SELECT tap.has_procedure('caosdb_testing','applyTransactionFilter','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','applyTransactionFilter','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','applyTransactionFilter','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','applyTransactionFilter','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.calcComplementUnion
-
-SELECT tap.has_procedure('caosdb_testing','calcComplementUnion','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','calcComplementUnion','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','calcComplementUnion','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','calcComplementUnion','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.calcDifference
-
-SELECT tap.has_procedure('caosdb_testing','calcDifference','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','calcDifference','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','calcDifference','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','calcDifference','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.calcIntersection
-
-SELECT tap.has_procedure('caosdb_testing','calcIntersection','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','calcIntersection','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','calcIntersection','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','calcIntersection','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.calcUnion
-
-SELECT tap.has_procedure('caosdb_testing','calcUnion','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','calcUnion','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','calcUnion','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','calcUnion','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.cleanUpLinCon
-
-SELECT tap.has_procedure('caosdb_testing','cleanUpLinCon','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','cleanUpLinCon','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','cleanUpLinCon','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','cleanUpLinCon','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.cleanUpQuery
-
-SELECT tap.has_procedure('caosdb_testing','cleanUpQuery','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','cleanUpQuery','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','cleanUpQuery','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','cleanUpQuery','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.copyTable
-
-SELECT tap.has_procedure('caosdb_testing','copyTable','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','copyTable','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','copyTable','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','copyTable','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.createTmpTable
-
-SELECT tap.has_procedure('caosdb_testing','createTmpTable','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','createTmpTable','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','createTmpTable','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','createTmpTable','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.createTmpTable2
-
-SELECT tap.has_procedure('caosdb_testing','createTmpTable2','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','createTmpTable2','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','createTmpTable2','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','createTmpTable2','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.deleteEntity
-
-SELECT tap.has_procedure('caosdb_testing','deleteEntity','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','deleteEntity','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','deleteEntity','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','deleteEntity','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.deleteEntityProperties
-
-SELECT tap.has_procedure('caosdb_testing','deleteEntityProperties','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','deleteEntityProperties','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','deleteEntityProperties','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','deleteEntityProperties','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.deleteIsa
-
-SELECT tap.has_procedure('caosdb_testing','deleteIsa','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','deleteIsa','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','deleteIsa','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','deleteIsa','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.deleteLinCon
-
-SELECT tap.has_procedure('caosdb_testing','deleteLinCon','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','deleteLinCon','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','deleteLinCon','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','deleteLinCon','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.entityACL
-
-SELECT tap.has_procedure('caosdb_testing','entityACL','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','entityACL','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','entityACL','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','entityACL','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.finishNegationFilter
-
-SELECT tap.has_procedure('caosdb_testing','finishNegationFilter','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','finishNegationFilter','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','finishNegationFilter','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','finishNegationFilter','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.finishSubProperty
-
-SELECT tap.has_procedure('caosdb_testing','finishSubProperty','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','finishSubProperty','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','finishSubProperty','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','finishSubProperty','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.getChildren
-
-SELECT tap.has_procedure('caosdb_testing','getChildren','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','getChildren','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','getChildren','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','getChildren','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.getFileIdByPath
-
-SELECT tap.has_procedure('caosdb_testing','getFileIdByPath','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','getFileIdByPath','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','getFileIdByPath','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','getFileIdByPath','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.getRole
-
-SELECT tap.has_procedure('caosdb_testing','getRole','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','getRole','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','getRole','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','getRole','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.getRules
-
-SELECT tap.has_procedure('caosdb_testing','getRules','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','getRules','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','getRules','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','getRules','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initAutoIncrement
-
-SELECT tap.has_procedure('caosdb_testing','initAutoIncrement','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initAutoIncrement','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initAutoIncrement','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initAutoIncrement','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initBackReference
-
-SELECT tap.has_procedure('caosdb_testing','initBackReference','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initBackReference','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initBackReference','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initBackReference','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.getFile
-
-SELECT tap.has_procedure('caosdb_testing','getFile','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','getFile','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','getFile','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','getFile','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initConjunctionFilter
-
-SELECT tap.has_procedure('caosdb_testing','initConjunctionFilter','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initConjunctionFilter','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initConjunctionFilter','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initConjunctionFilter','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initDisjunctionFilter
-
-SELECT tap.has_procedure('caosdb_testing','initDisjunctionFilter','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initDisjunctionFilter','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initDisjunctionFilter','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initDisjunctionFilter','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initNegationFilter
-
-SELECT tap.has_procedure('caosdb_testing','initNegationFilter','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initNegationFilter','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initNegationFilter','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initNegationFilter','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initPOVRefidsTable
-
-SELECT tap.has_procedure('caosdb_testing','initPOVRefidsTable','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initPOVRefidsTable','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initPOVRefidsTable','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initPOVRefidsTable','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initQuery
-
-SELECT tap.has_procedure('caosdb_testing','initQuery','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initQuery','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initQuery','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initQuery','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.insertEntity
-
-SELECT tap.has_procedure('caosdb_testing','insertEntity','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','insertEntity','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','insertEntity','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','insertEntity','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.getDependentEntities
-
-SELECT tap.has_procedure('caosdb_testing','getDependentEntities','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','getDependentEntities','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','getDependentEntities','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','getDependentEntities','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initEmptyTargetSet
-
-SELECT tap.has_procedure('caosdb_testing','initEmptyTargetSet','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initEmptyTargetSet','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initEmptyTargetSet','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initEmptyTargetSet','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initEntity
-
-SELECT tap.has_procedure('caosdb_testing','initEntity','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initEntity','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initEntity','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initEntity','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.insertLinCon
-
-SELECT tap.has_procedure('caosdb_testing','insertLinCon','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','insertLinCon','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','insertLinCon','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','insertLinCon','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.insertUser
-
-SELECT tap.has_procedure('caosdb_testing','insertUser','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','insertUser','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','insertUser','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','insertUser','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.intersectTable
-
-SELECT tap.has_procedure('caosdb_testing','intersectTable','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','intersectTable','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','intersectTable','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','intersectTable','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initPOVPropertiesTable
-
-SELECT tap.has_procedure('caosdb_testing','initPOVPropertiesTable','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initPOVPropertiesTable','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initPOVPropertiesTable','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initPOVPropertiesTable','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initSubEntity
-
-SELECT tap.has_procedure('caosdb_testing','initSubEntity','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initSubEntity','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initSubEntity','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initSubEntity','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.isSubtype
-
-SELECT tap.has_procedure('caosdb_testing','isSubtype','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','isSubtype','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','isSubtype','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','isSubtype','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.overrideDesc
-
-SELECT tap.has_procedure('caosdb_testing','overrideDesc','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','overrideDesc','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','overrideDesc','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','overrideDesc','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.overrideName
-
-SELECT tap.has_procedure('caosdb_testing','overrideName','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','overrideName','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','overrideName','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','overrideName','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.overrideType
-
-SELECT tap.has_procedure('caosdb_testing','overrideType','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','overrideType','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','overrideType','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','overrideType','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.raiseWarning
-
-SELECT tap.has_procedure('caosdb_testing','raiseWarning','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','raiseWarning','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','raiseWarning','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','raiseWarning','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.registerSubdomain
-
-SELECT tap.has_procedure('caosdb_testing','registerSubdomain','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','registerSubdomain','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','registerSubdomain','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','registerSubdomain','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.initSubProperty
-
-SELECT tap.has_procedure('caosdb_testing','initSubProperty','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','initSubProperty','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','initSubProperty','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','initSubProperty','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.insertEntityProperty
-
-SELECT tap.has_procedure('caosdb_testing','insertEntityProperty','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','insertEntityProperty','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','insertEntityProperty','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','insertEntityProperty','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.registerTempTableName
-
-SELECT tap.has_procedure('caosdb_testing','registerTempTableName','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','registerTempTableName','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','registerTempTableName','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','registerTempTableName','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.retrieveDatatype
-
-SELECT tap.has_procedure('caosdb_testing','retrieveDatatype','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','retrieveDatatype','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','retrieveDatatype','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','retrieveDatatype','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.retrieveEntityParents
-
-SELECT tap.has_procedure('caosdb_testing','retrieveEntityParents','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','retrieveEntityParents','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','retrieveEntityParents','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','retrieveEntityParents','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.retrieveGroup
-
-SELECT tap.has_procedure('caosdb_testing','retrieveGroup','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','retrieveGroup','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','retrieveGroup','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','retrieveGroup','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.setPassword
-
-SELECT tap.has_procedure('caosdb_testing','setPassword','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','setPassword','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','setPassword','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','setPassword','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.insertIsa
-
-SELECT tap.has_procedure('caosdb_testing','insertIsa','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','insertIsa','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','insertIsa','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','insertIsa','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.retrieveEntity
-
-SELECT tap.has_procedure('caosdb_testing','retrieveEntity','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','retrieveEntity','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','retrieveEntity','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','retrieveEntity','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.retrieveEntityProperties
-
-SELECT tap.has_procedure('caosdb_testing','retrieveEntityProperties','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','retrieveEntityProperties','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','retrieveEntityProperties','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','retrieveEntityProperties','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.showEntityAutoIncr
-
-SELECT tap.has_procedure('caosdb_testing','showEntityAutoIncr','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','showEntityAutoIncr','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','showEntityAutoIncr','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','showEntityAutoIncr','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.updateLinCon
-
-SELECT tap.has_procedure('caosdb_testing','updateLinCon','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','updateLinCon','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','updateLinCon','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','updateLinCon','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.retrieveOverrides
-
-SELECT tap.has_procedure('caosdb_testing','retrieveOverrides','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','retrieveOverrides','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','retrieveOverrides','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','retrieveOverrides','CONTAINS SQL','');
-
--- PROCEDURES caosdb_testing.updateEntity
-
-SELECT tap.has_procedure('caosdb_testing','updateEntity','');
-SELECT tap.procedure_is_deterministic('caosdb_testing','updateEntity','NO','');
-SELECT tap.procedure_security_type_is('caosdb_testing','updateEntity','DEFINER','');
-SELECT tap.procedure_sql_data_access_is('caosdb_testing','updateEntity','CONTAINS SQL','');
-CALL tap.finish();
-ROLLBACK;
-- 
GitLab