diff --git a/dist/mysqldump.d.ts b/dist/mysqldump.d.ts index 22779ba..c7ec9b2 100644 --- a/dist/mysqldump.d.ts +++ b/dist/mysqldump.d.ts @@ -51,7 +51,7 @@ export interface ConnectionOptions { /** * Optional PEM formatted CRLs (Certificate Revocation Lists). */ - crl?: string | string[]; + crl?: string | Array; /** * Attempt to use the server's cipher suite preferences instead of the client's. */ @@ -161,6 +161,10 @@ export interface DataDumpOptions { * Defaults to true. */ format?: boolean; + /** + * Include file headers in output + */ + verbose?: boolean; /** * Dump data from views. * Defaults to false. @@ -196,7 +200,7 @@ export interface DumpOptions { * The list of tables that you want to dump. * Defaults to all tables (signalled by passing an empty array). */ - tables?: string[]; + tables?: Array; /** * True to use the `tables` options as a blacklist, false to use it as a whitelist. * Defaults to false. @@ -270,7 +274,7 @@ export interface Table { /** * An ordered list of columns (for consistently outputing as per the DB definition) */ - columnsOrdered: string[]; + columnsOrdered: Array; /** * True if the table is actually a view, false otherwise. */ @@ -278,7 +282,7 @@ export interface Table { /** * A list of triggers attached to the table */ - triggers: string[]; + triggers: Array; } export interface DumpReturn { /** @@ -301,7 +305,7 @@ export interface DumpReturn { */ trigger: string | null; }; - tables: Table[]; + tables: Array; } export default function main(inputOptions: Options): Promise; diff --git a/src/getSchemaDump.ts b/src/getSchemaDump.ts index 1d3a556..90b89b8 100644 --- a/src/getSchemaDump.ts +++ b/src/getSchemaDump.ts @@ -135,6 +135,18 @@ export default async function getSchemaDump( return s }) + .sort((a, b) => { + // sort the views to be last + + if (a.isView && !b.isView) { + return 1 + } + if (!a.isView && b.isView) { + return -1 + } + + return 0 + }) return createStatements } diff --git a/test/e2e/__snapshots__/snapshot.test.ts.snap b/test/e2e/__snapshots__/snapshot.test.ts.snap index dd40e95..439daab 100644 --- a/test/e2e/__snapshots__/snapshot.test.ts.snap +++ b/test/e2e/__snapshots__/snapshot.test.ts.snap @@ -28,97 +28,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -231,6 +140,97 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------ @@ -943,98 +943,7 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: geometry_types +# SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ CREATE TABLE IF NOT EXISTS \`geometry_types\` ( @@ -1145,6 +1054,97 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------ @@ -1856,97 +1856,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -2060,62 +1969,153 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', - '21:43:56', - '2017-03-01 15:53:16', - '2111', - NULL, - NULL, - NULL, - '0000-00-00 00:00:00', - NULL - ); -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 2, - '2017-04-13', - '2017-05-22 22:33:44', - '10:11:12', - '2017-06-30 09:10:11', - '1970', - NULL, - NULL, - NULL, +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', + '21:43:56', + '2017-03-01 15:53:16', + '2111', + NULL, + NULL, + NULL, + '0000-00-00 00:00:00', + NULL + ); +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 2, + '2017-04-13', + '2017-05-22 22:33:44', + '10:11:12', + '2017-06-30 09:10:11', + '1970', + NULL, + NULL, + NULL, '0000-00-00 00:00:00', NULL ); @@ -2770,97 +2770,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -2974,28 +2883,119 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', '21:43:56', '2017-03-01 15:53:16', '2111', @@ -3684,97 +3684,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -3888,62 +3797,153 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', - '21:43:56', - '2017-03-01 15:53:16', - '2111', - NULL, - NULL, - NULL, - '0000-00-00 00:00:00', - NULL - ); -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 2, - '2017-04-13', - '2017-05-22 22:33:44', - '10:11:12', - '2017-06-30 09:10:11', - '1970', - NULL, - NULL, - NULL, +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', + '21:43:56', + '2017-03-01 15:53:16', + '2111', + NULL, + NULL, + NULL, + '0000-00-00 00:00:00', + NULL + ); +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 2, + '2017-04-13', + '2017-05-22 22:33:44', + '10:11:12', + '2017-06-30 09:10:11', + '1970', + NULL, + NULL, + NULL, '0000-00-00 00:00:00', NULL ); @@ -4598,97 +4598,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -4802,72 +4711,7 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# TRIGGER DUMP FOR: trigger_juan -# ------------------------------------------------------------ - -DROP TRIGGER IF EXISTS trigger_juan; -DELIMITER ;; -CREATE TRIGGER trigger_juan BEFORE INSERT ON other_types - FOR EACH ROW - BEGIN - SET NEW.populatedViaTrigger = 2; - END;; -DELIMITER ; - -# ------------------------------------------------------------ -# TRIGGER DUMP FOR: trigger_two -# ------------------------------------------------------------ - -DROP TRIGGER IF EXISTS trigger_two; -DELIMITER ;; -CREATE TRIGGER trigger_two AFTER UPDATE ON other_types - FOR EACH ROW - BEGIN - UPDATE other_types - SET populatedViaTrigger2 = 3 - WHERE ot_id = NEW.ot_id; - END;; -DELIMITER ; - -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -" -`; - -exports[`mysqldump.e2e dump a consistent snapshot with options... {"schema":{"autoIncrement":false}}: {"schema":{"autoIncrement":false}} 1`] = ` -"/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: date_types -# ------------------------------------------------------------ - -CREATE TABLE IF NOT EXISTS \`date_types\` ( - \`dt_id\` int(10) unsigned NOT NULL AUTO_INCREMENT, - \`_date\` date NOT NULL, - \`_datetime\` datetime NOT NULL, - \`_time\` time NOT NULL, - \`_timestamp\` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - \`_year\` year(4) NOT NULL, - \`_nullDate\` date DEFAULT NULL, - \`_nullDatetime\` datetime DEFAULT NULL, - \`_nullTime\` time DEFAULT NULL, - \`_nullTimestamp\` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - \`_nullYear\` year(4) DEFAULT NULL, - PRIMARY KEY (\`dt_id\`) -) ENGINE = InnoDB DEFAULT CHARSET = latin1; - -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ CREATE OR REPLACE VIEW \`everything\` AS @@ -4957,6 +4801,71 @@ from join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) ); +# ------------------------------------------------------------ +# TRIGGER DUMP FOR: trigger_juan +# ------------------------------------------------------------ + +DROP TRIGGER IF EXISTS trigger_juan; +DELIMITER ;; +CREATE TRIGGER trigger_juan BEFORE INSERT ON other_types + FOR EACH ROW + BEGIN + SET NEW.populatedViaTrigger = 2; + END;; +DELIMITER ; + +# ------------------------------------------------------------ +# TRIGGER DUMP FOR: trigger_two +# ------------------------------------------------------------ + +DROP TRIGGER IF EXISTS trigger_two; +DELIMITER ;; +CREATE TRIGGER trigger_two AFTER UPDATE ON other_types + FOR EACH ROW + BEGIN + UPDATE other_types + SET populatedViaTrigger2 = 3 + WHERE ot_id = NEW.ot_id; + END;; +DELIMITER ; + +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +" +`; + +exports[`mysqldump.e2e dump a consistent snapshot with options... {"schema":{"autoIncrement":false}}: {"schema":{"autoIncrement":false}} 1`] = ` +"/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +CREATE TABLE IF NOT EXISTS \`date_types\` ( + \`dt_id\` int(10) unsigned NOT NULL AUTO_INCREMENT, + \`_date\` date NOT NULL, + \`_datetime\` datetime NOT NULL, + \`_time\` time NOT NULL, + \`_timestamp\` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + \`_year\` year(4) NOT NULL, + \`_nullDate\` date DEFAULT NULL, + \`_nullDatetime\` datetime DEFAULT NULL, + \`_nullTime\` time DEFAULT NULL, + \`_nullTimestamp\` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + \`_nullYear\` year(4) DEFAULT NULL, + PRIMARY KEY (\`dt_id\`) +) ENGINE = InnoDB DEFAULT CHARSET = latin1; + # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -5069,6 +4978,97 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) ENGINE = InnoDB DEFAULT CHARSET = latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------ @@ -5781,98 +5781,7 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( ) AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: geometry_types +# SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ CREATE TABLE IF NOT EXISTS \`geometry_types\` ( @@ -5983,6 +5892,97 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------ @@ -6694,12 +6694,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS select \`dt\`.\`dt_id\` AS \`dt_id\`,\`dt\`.\`_date\` AS \`_date\`,\`dt\`.\`_datetime\` AS \`_datetime\`,\`dt\`.\`_time\` AS \`_time\`,\`dt\`.\`_timestamp\` AS \`_timestamp\`,\`dt\`.\`_year\` AS \`_year\`,\`dt\`.\`_nullDate\` AS \`_nullDate\`,\`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`,\`dt\`.\`_nullTime\` AS \`_nullTime\`,\`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`,\`dt\`.\`_nullYear\` AS \`_nullYear\`,\`gt\`.\`gt_id\` AS \`gt_id\`,\`gt\`.\`_point\` AS \`_point\`,\`gt\`.\`_linestring\` AS \`_linestring\`,\`gt\`.\`_polygon\` AS \`_polygon\`,\`gt\`.\`_multipoint\` AS \`_multipoint\`,\`gt\`.\`_multilinestring\` AS \`_multilinestring\`,\`gt\`.\`_multipolygon\` AS \`_multipolygon\`,\`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`,\`gt\`.\`_nullPoint\` AS \`_nullPoint\`,\`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`,\`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`,\`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`,\`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`,\`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`,\`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`,\`nt\`.\`nt_id\` AS \`nt_id\`,\`nt\`.\`_uint\` AS \`_uint\`,\`nt\`.\`_int\` AS \`_int\`,\`nt\`.\`_tinyint\` AS \`_tinyint\`,\`nt\`.\`_smallint\` AS \`_smallint\`,\`nt\`.\`_mediumint\` AS \`_mediumint\`,\`nt\`.\`_bigint\` AS \`_bigint\`,\`nt\`.\`_decimal\` AS \`_decimal\`,\`nt\`.\`_double\` AS \`_double\`,\`nt\`.\`_float\` AS \`_float\`,\`nt\`.\`_real\` AS \`_real\`,\`nt\`.\`_bit1\` AS \`_bit1\`,\`nt\`.\`_bit24\` AS \`_bit24\`,\`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`,\`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`,\`nt\`.\`_nullUint\` AS \`_nullUint\`,\`nt\`.\`_nullInt\` AS \`_nullInt\`,\`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`,\`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`,\`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`,\`nt\`.\`_nullBigint\` AS \`_nullBigint\`,\`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`,\`nt\`.\`_nullDouble\` AS \`_nullDouble\`,\`nt\`.\`_nullFloat\` AS \`_nullFloat\`,\`nt\`.\`_nullReal\` AS \`_nullReal\`,\`nt\`.\`_nullBit1\` AS \`_nullBit1\`,\`nt\`.\`_nullBit24\` AS \`_nullBit24\`,\`ot\`.\`ot_id\` AS \`ot_id\`,\`ot\`.\`_blob\` AS \`_blob\`,\`ot\`.\`_tinyblob\` AS \`_tinyblob\`,\`ot\`.\`_mediumblob\` AS \`_mediumblob\`,\`ot\`.\`_longblob\` AS \`_longblob\`,\`ot\`.\`_binary\` AS \`_binary\`,\`ot\`.\`_varbinary\` AS \`_varbinary\`,\`ot\`.\`_enum\` AS \`_enum\`,\`ot\`.\`_set\` AS \`_set\`,\`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`,\`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`,\`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`,\`ot\`.\`_nullBlob\` AS \`_nullBlob\`,\`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`,\`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`,\`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`,\`ot\`.\`_nullBinary\` AS \`_nullBinary\`,\`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`,\`ot\`.\`_nullEnum\` AS \`_nullEnum\`,\`ot\`.\`_nullSet\` AS \`_nullSet\` from (((\`date_types\` \`dt\` join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`))) join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`))) join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`))); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -6812,6 +6806,12 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS select \`dt\`.\`dt_id\` AS \`dt_id\`,\`dt\`.\`_date\` AS \`_date\`,\`dt\`.\`_datetime\` AS \`_datetime\`,\`dt\`.\`_time\` AS \`_time\`,\`dt\`.\`_timestamp\` AS \`_timestamp\`,\`dt\`.\`_year\` AS \`_year\`,\`dt\`.\`_nullDate\` AS \`_nullDate\`,\`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`,\`dt\`.\`_nullTime\` AS \`_nullTime\`,\`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`,\`dt\`.\`_nullYear\` AS \`_nullYear\`,\`gt\`.\`gt_id\` AS \`gt_id\`,\`gt\`.\`_point\` AS \`_point\`,\`gt\`.\`_linestring\` AS \`_linestring\`,\`gt\`.\`_polygon\` AS \`_polygon\`,\`gt\`.\`_multipoint\` AS \`_multipoint\`,\`gt\`.\`_multilinestring\` AS \`_multilinestring\`,\`gt\`.\`_multipolygon\` AS \`_multipolygon\`,\`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`,\`gt\`.\`_nullPoint\` AS \`_nullPoint\`,\`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`,\`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`,\`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`,\`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`,\`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`,\`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`,\`nt\`.\`nt_id\` AS \`nt_id\`,\`nt\`.\`_uint\` AS \`_uint\`,\`nt\`.\`_int\` AS \`_int\`,\`nt\`.\`_tinyint\` AS \`_tinyint\`,\`nt\`.\`_smallint\` AS \`_smallint\`,\`nt\`.\`_mediumint\` AS \`_mediumint\`,\`nt\`.\`_bigint\` AS \`_bigint\`,\`nt\`.\`_decimal\` AS \`_decimal\`,\`nt\`.\`_double\` AS \`_double\`,\`nt\`.\`_float\` AS \`_float\`,\`nt\`.\`_real\` AS \`_real\`,\`nt\`.\`_bit1\` AS \`_bit1\`,\`nt\`.\`_bit24\` AS \`_bit24\`,\`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`,\`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`,\`nt\`.\`_nullUint\` AS \`_nullUint\`,\`nt\`.\`_nullInt\` AS \`_nullInt\`,\`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`,\`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`,\`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`,\`nt\`.\`_nullBigint\` AS \`_nullBigint\`,\`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`,\`nt\`.\`_nullDouble\` AS \`_nullDouble\`,\`nt\`.\`_nullFloat\` AS \`_nullFloat\`,\`nt\`.\`_nullReal\` AS \`_nullReal\`,\`nt\`.\`_nullBit1\` AS \`_nullBit1\`,\`nt\`.\`_nullBit24\` AS \`_nullBit24\`,\`ot\`.\`ot_id\` AS \`ot_id\`,\`ot\`.\`_blob\` AS \`_blob\`,\`ot\`.\`_tinyblob\` AS \`_tinyblob\`,\`ot\`.\`_mediumblob\` AS \`_mediumblob\`,\`ot\`.\`_longblob\` AS \`_longblob\`,\`ot\`.\`_binary\` AS \`_binary\`,\`ot\`.\`_varbinary\` AS \`_varbinary\`,\`ot\`.\`_enum\` AS \`_enum\`,\`ot\`.\`_set\` AS \`_set\`,\`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`,\`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`,\`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`,\`ot\`.\`_nullBlob\` AS \`_nullBlob\`,\`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`,\`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`,\`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`,\`ot\`.\`_nullBinary\` AS \`_nullBinary\`,\`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`,\`ot\`.\`_nullEnum\` AS \`_nullEnum\`,\`ot\`.\`_nullSet\` AS \`_nullSet\` from (((\`date_types\` \`dt\` join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`))) join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`))) join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`))); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------ @@ -7523,97 +7523,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -7727,30 +7636,121 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', - '21:43:56', - '2017-03-01 15:53:16', +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', + '21:43:56', + '2017-03-01 15:53:16', '2111', NULL, NULL, @@ -8438,97 +8438,6 @@ CREATE TABLE \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -8647,60 +8556,151 @@ CREATE TABLE \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', - '21:43:56', - '2017-03-01 15:53:16', - '2111', - NULL, - NULL, - NULL, - '0000-00-00 00:00:00', - NULL - ); -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 2, - '2017-04-13', - '2017-05-22 22:33:44', - '10:11:12', - '2017-06-30 09:10:11', - '1970', - NULL, +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', + '21:43:56', + '2017-03-01 15:53:16', + '2111', + NULL, + NULL, + NULL, + '0000-00-00 00:00:00', + NULL + ); +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 2, + '2017-04-13', + '2017-05-22 22:33:44', + '10:11:12', + '2017-06-30 09:10:11', + '1970', + NULL, NULL, NULL, '0000-00-00 00:00:00', @@ -9357,97 +9357,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE ALGORITHM = UNDEFINED VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -9561,30 +9470,121 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', - '21:43:56', - '2017-03-01 15:53:16', +CREATE OR REPLACE ALGORITHM = UNDEFINED VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', + '21:43:56', + '2017-03-01 15:53:16', '2111', NULL, NULL, @@ -10271,97 +10271,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -10475,60 +10384,151 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', - '21:43:56', - '2017-03-01 15:53:16', - '2111', - NULL, - NULL, - NULL, - '0000-00-00 00:00:00', - NULL - ); -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 2, - '2017-04-13', - '2017-05-22 22:33:44', - '10:11:12', - '2017-06-30 09:10:11', - '1970', - NULL, +CREATE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', + '21:43:56', + '2017-03-01 15:53:16', + '2111', + NULL, + NULL, + NULL, + '0000-00-00 00:00:00', + NULL + ); +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 2, + '2017-04-13', + '2017-05-22 22:33:44', + '10:11:12', + '2017-06-30 09:10:11', + '1970', + NULL, NULL, NULL, '0000-00-00 00:00:00', @@ -11185,97 +11185,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE SQL SECURITY DEFINER VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -11389,30 +11298,121 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', - '21:43:56', - '2017-03-01 15:53:16', +CREATE OR REPLACE SQL SECURITY DEFINER VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', + '21:43:56', + '2017-03-01 15:53:16', '2111', NULL, NULL, @@ -12791,97 +12791,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -12995,60 +12904,151 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; # ------------------------------------------------------------ -# DATA DUMP FOR TABLE: date_types +# SCHEMA DUMP FOR TABLE: everything # ------------------------------------------------------------ -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 1, - '2017-01-03', - '2017-02-02 12:34:56', - '21:43:56', - '2017-03-01 15:53:16', - '2111', - NULL, - NULL, - NULL, - '0000-00-00 00:00:00', - NULL - ); -INSERT INTO - \`date_types\` ( - \`dt_id\`, - \`_date\`, - \`_datetime\`, - \`_time\`, - \`_timestamp\`, - \`_year\`, - \`_nullDate\`, - \`_nullDatetime\`, - \`_nullTime\`, - \`_nullTimestamp\`, - \`_nullYear\` - ) -VALUES - ( - 2, - '2017-04-13', - '2017-05-22 22:33:44', - '10:11:12', - '2017-06-30 09:10:11', - '1970', - NULL, +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + +# ------------------------------------------------------------ +# DATA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 1, + '2017-01-03', + '2017-02-02 12:34:56', + '21:43:56', + '2017-03-01 15:53:16', + '2111', + NULL, + NULL, + NULL, + '0000-00-00 00:00:00', + NULL + ); +INSERT INTO + \`date_types\` ( + \`dt_id\`, + \`_date\`, + \`_datetime\`, + \`_time\`, + \`_timestamp\`, + \`_year\`, + \`_nullDate\`, + \`_nullDatetime\`, + \`_nullTime\`, + \`_nullTimestamp\`, + \`_nullYear\` + ) +VALUES + ( + 2, + '2017-04-13', + '2017-05-22 22:33:44', + '10:11:12', + '2017-06-30 09:10:11', + '1970', + NULL, NULL, NULL, '0000-00-00 00:00:00', @@ -13705,97 +13705,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -13908,6 +13817,97 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------ @@ -14558,154 +14558,63 @@ VALUES # TRIGGER DUMP FOR: trigger_juan # ------------------------------------------------------------ -DROP TRIGGER IF EXISTS trigger_juan; -CREATE TRIGGER trigger_juan BEFORE INSERT ON other_types - FOR EACH ROW - BEGIN - SET NEW.populatedViaTrigger = 2; - END; - -# ------------------------------------------------------------ -# TRIGGER DUMP FOR: trigger_two -# ------------------------------------------------------------ - -DROP TRIGGER IF EXISTS trigger_two; -CREATE TRIGGER trigger_two AFTER UPDATE ON other_types - FOR EACH ROW - BEGIN - UPDATE other_types - SET populatedViaTrigger2 = 3 - WHERE ot_id = NEW.ot_id; - END; - -/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; -/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; -/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; -/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; -/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; -/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; -" -`; - -exports[`mysqldump.e2e dump a consistent snapshot with options... {"trigger":{"dropIfExist":false}}: {"trigger":{"dropIfExist":false}} 1`] = ` -"/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; -/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; -/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; -/*!40101 SET NAMES utf8 */; -/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; -/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; -/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; - -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: date_types -# ------------------------------------------------------------ - -CREATE TABLE IF NOT EXISTS \`date_types\` ( - \`dt_id\` int(10) unsigned NOT NULL AUTO_INCREMENT, - \`_date\` date NOT NULL, - \`_datetime\` datetime NOT NULL, - \`_time\` time NOT NULL, - \`_timestamp\` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, - \`_year\` year(4) NOT NULL, - \`_nullDate\` date DEFAULT NULL, - \`_nullDatetime\` datetime DEFAULT NULL, - \`_nullTime\` time DEFAULT NULL, - \`_nullTimestamp\` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', - \`_nullYear\` year(4) DEFAULT NULL, - PRIMARY KEY (\`dt_id\`) -) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; - -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - +DROP TRIGGER IF EXISTS trigger_juan; +CREATE TRIGGER trigger_juan BEFORE INSERT ON other_types + FOR EACH ROW + BEGIN + SET NEW.populatedViaTrigger = 2; + END; + +# ------------------------------------------------------------ +# TRIGGER DUMP FOR: trigger_two +# ------------------------------------------------------------ + +DROP TRIGGER IF EXISTS trigger_two; +CREATE TRIGGER trigger_two AFTER UPDATE ON other_types + FOR EACH ROW + BEGIN + UPDATE other_types + SET populatedViaTrigger2 = 3 + WHERE ot_id = NEW.ot_id; + END; + +/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */; +/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; +/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; +/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; +/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; +/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; +" +`; + +exports[`mysqldump.e2e dump a consistent snapshot with options... {"trigger":{"dropIfExist":false}}: {"trigger":{"dropIfExist":false}} 1`] = ` +"/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; +/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; +/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; +/*!40101 SET NAMES utf8 */; +/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; +/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; +/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */; + +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: date_types +# ------------------------------------------------------------ + +CREATE TABLE IF NOT EXISTS \`date_types\` ( + \`dt_id\` int(10) unsigned NOT NULL AUTO_INCREMENT, + \`_date\` date NOT NULL, + \`_datetime\` datetime NOT NULL, + \`_time\` time NOT NULL, + \`_timestamp\` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + \`_year\` year(4) NOT NULL, + \`_nullDate\` date DEFAULT NULL, + \`_nullDatetime\` datetime DEFAULT NULL, + \`_nullTime\` time DEFAULT NULL, + \`_nullTimestamp\` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00', + \`_nullYear\` year(4) DEFAULT NULL, + PRIMARY KEY (\`dt_id\`) +) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; + # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -14818,6 +14727,97 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------ @@ -15527,97 +15527,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -15730,6 +15639,97 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------ @@ -16413,97 +16413,6 @@ CREATE TABLE IF NOT EXISTS \`date_types\` ( PRIMARY KEY (\`dt_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; -# ------------------------------------------------------------ -# SCHEMA DUMP FOR TABLE: everything -# ------------------------------------------------------------ - -CREATE OR REPLACE VIEW \`everything\` AS -select - \`dt\`.\`dt_id\` AS \`dt_id\`, - \`dt\`.\`_date\` AS \`_date\`, - \`dt\`.\`_datetime\` AS \`_datetime\`, - \`dt\`.\`_time\` AS \`_time\`, - \`dt\`.\`_timestamp\` AS \`_timestamp\`, - \`dt\`.\`_year\` AS \`_year\`, - \`dt\`.\`_nullDate\` AS \`_nullDate\`, - \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, - \`dt\`.\`_nullTime\` AS \`_nullTime\`, - \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, - \`dt\`.\`_nullYear\` AS \`_nullYear\`, - \`gt\`.\`gt_id\` AS \`gt_id\`, - \`gt\`.\`_point\` AS \`_point\`, - \`gt\`.\`_linestring\` AS \`_linestring\`, - \`gt\`.\`_polygon\` AS \`_polygon\`, - \`gt\`.\`_multipoint\` AS \`_multipoint\`, - \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, - \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, - \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, - \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, - \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, - \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, - \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, - \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, - \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, - \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, - \`nt\`.\`nt_id\` AS \`nt_id\`, - \`nt\`.\`_uint\` AS \`_uint\`, - \`nt\`.\`_int\` AS \`_int\`, - \`nt\`.\`_tinyint\` AS \`_tinyint\`, - \`nt\`.\`_smallint\` AS \`_smallint\`, - \`nt\`.\`_mediumint\` AS \`_mediumint\`, - \`nt\`.\`_bigint\` AS \`_bigint\`, - \`nt\`.\`_decimal\` AS \`_decimal\`, - \`nt\`.\`_double\` AS \`_double\`, - \`nt\`.\`_float\` AS \`_float\`, - \`nt\`.\`_real\` AS \`_real\`, - \`nt\`.\`_bit1\` AS \`_bit1\`, - \`nt\`.\`_bit24\` AS \`_bit24\`, - \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, - \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, - \`nt\`.\`_nullUint\` AS \`_nullUint\`, - \`nt\`.\`_nullInt\` AS \`_nullInt\`, - \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, - \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, - \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, - \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, - \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, - \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, - \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, - \`nt\`.\`_nullReal\` AS \`_nullReal\`, - \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, - \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, - \`ot\`.\`ot_id\` AS \`ot_id\`, - \`ot\`.\`_blob\` AS \`_blob\`, - \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, - \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, - \`ot\`.\`_longblob\` AS \`_longblob\`, - \`ot\`.\`_binary\` AS \`_binary\`, - \`ot\`.\`_varbinary\` AS \`_varbinary\`, - \`ot\`.\`_enum\` AS \`_enum\`, - \`ot\`.\`_set\` AS \`_set\`, - \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, - \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, - \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, - \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, - \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, - \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, - \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, - \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, - \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, - \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, - \`ot\`.\`_nullSet\` AS \`_nullSet\` -from - ( - ( - ( - \`date_types\` \`dt\` - join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) - ) - join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) - ) - join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) - ); - # ------------------------------------------------------------ # SCHEMA DUMP FOR TABLE: geometry_types # ------------------------------------------------------------ @@ -16616,6 +16525,97 @@ CREATE TABLE IF NOT EXISTS \`text_types\` ( PRIMARY KEY (\`ot_id\`) ) ENGINE = InnoDB AUTO_INCREMENT = 4 DEFAULT CHARSET = latin1; +# ------------------------------------------------------------ +# SCHEMA DUMP FOR TABLE: everything +# ------------------------------------------------------------ + +CREATE OR REPLACE VIEW \`everything\` AS +select + \`dt\`.\`dt_id\` AS \`dt_id\`, + \`dt\`.\`_date\` AS \`_date\`, + \`dt\`.\`_datetime\` AS \`_datetime\`, + \`dt\`.\`_time\` AS \`_time\`, + \`dt\`.\`_timestamp\` AS \`_timestamp\`, + \`dt\`.\`_year\` AS \`_year\`, + \`dt\`.\`_nullDate\` AS \`_nullDate\`, + \`dt\`.\`_nullDatetime\` AS \`_nullDatetime\`, + \`dt\`.\`_nullTime\` AS \`_nullTime\`, + \`dt\`.\`_nullTimestamp\` AS \`_nullTimestamp\`, + \`dt\`.\`_nullYear\` AS \`_nullYear\`, + \`gt\`.\`gt_id\` AS \`gt_id\`, + \`gt\`.\`_point\` AS \`_point\`, + \`gt\`.\`_linestring\` AS \`_linestring\`, + \`gt\`.\`_polygon\` AS \`_polygon\`, + \`gt\`.\`_multipoint\` AS \`_multipoint\`, + \`gt\`.\`_multilinestring\` AS \`_multilinestring\`, + \`gt\`.\`_multipolygon\` AS \`_multipolygon\`, + \`gt\`.\`_geometrycollection\` AS \`_geometrycollection\`, + \`gt\`.\`_nullPoint\` AS \`_nullPoint\`, + \`gt\`.\`_nullLinestring\` AS \`_nullLinestring\`, + \`gt\`.\`_nullPolygon\` AS \`_nullPolygon\`, + \`gt\`.\`_nullMultipoint\` AS \`_nullMultipoint\`, + \`gt\`.\`_nullMultilinestring\` AS \`_nullMultilinestring\`, + \`gt\`.\`_nullMultipolygon\` AS \`_nullMultipolygon\`, + \`gt\`.\`_nullGeometrycollection\` AS \`_nullGeometrycollection\`, + \`nt\`.\`nt_id\` AS \`nt_id\`, + \`nt\`.\`_uint\` AS \`_uint\`, + \`nt\`.\`_int\` AS \`_int\`, + \`nt\`.\`_tinyint\` AS \`_tinyint\`, + \`nt\`.\`_smallint\` AS \`_smallint\`, + \`nt\`.\`_mediumint\` AS \`_mediumint\`, + \`nt\`.\`_bigint\` AS \`_bigint\`, + \`nt\`.\`_decimal\` AS \`_decimal\`, + \`nt\`.\`_double\` AS \`_double\`, + \`nt\`.\`_float\` AS \`_float\`, + \`nt\`.\`_real\` AS \`_real\`, + \`nt\`.\`_bit1\` AS \`_bit1\`, + \`nt\`.\`_bit24\` AS \`_bit24\`, + \`nt\`.\`_bitWithDefault\` AS \`_bitWithDefault\`, + \`nt\`.\`_bitWithDefault2\` AS \`_bitWithDefault2\`, + \`nt\`.\`_nullUint\` AS \`_nullUint\`, + \`nt\`.\`_nullInt\` AS \`_nullInt\`, + \`nt\`.\`_nullTinyint\` AS \`_nullTinyint\`, + \`nt\`.\`_nullSmallint\` AS \`_nullSmallint\`, + \`nt\`.\`_nullMediumint\` AS \`_nullMediumint\`, + \`nt\`.\`_nullBigint\` AS \`_nullBigint\`, + \`nt\`.\`_nullDecimal\` AS \`_nullDecimal\`, + \`nt\`.\`_nullDouble\` AS \`_nullDouble\`, + \`nt\`.\`_nullFloat\` AS \`_nullFloat\`, + \`nt\`.\`_nullReal\` AS \`_nullReal\`, + \`nt\`.\`_nullBit1\` AS \`_nullBit1\`, + \`nt\`.\`_nullBit24\` AS \`_nullBit24\`, + \`ot\`.\`ot_id\` AS \`ot_id\`, + \`ot\`.\`_blob\` AS \`_blob\`, + \`ot\`.\`_tinyblob\` AS \`_tinyblob\`, + \`ot\`.\`_mediumblob\` AS \`_mediumblob\`, + \`ot\`.\`_longblob\` AS \`_longblob\`, + \`ot\`.\`_binary\` AS \`_binary\`, + \`ot\`.\`_varbinary\` AS \`_varbinary\`, + \`ot\`.\`_enum\` AS \`_enum\`, + \`ot\`.\`_set\` AS \`_set\`, + \`ot\`.\`_alwaysNull\` AS \`_alwaysNull\`, + \`ot\`.\`populatedViaTrigger\` AS \`populatedViaTrigger\`, + \`ot\`.\`populatedViaTrigger2\` AS \`populatedViaTrigger2\`, + \`ot\`.\`_nullBlob\` AS \`_nullBlob\`, + \`ot\`.\`_nullTinyblob\` AS \`_nullTinyblob\`, + \`ot\`.\`_nullMediumblob\` AS \`_nullMediumblob\`, + \`ot\`.\`_nullLongblob\` AS \`_nullLongblob\`, + \`ot\`.\`_nullBinary\` AS \`_nullBinary\`, + \`ot\`.\`_nullVarbinary\` AS \`_nullVarbinary\`, + \`ot\`.\`_nullEnum\` AS \`_nullEnum\`, + \`ot\`.\`_nullSet\` AS \`_nullSet\` +from + ( + ( + ( + \`date_types\` \`dt\` + join \`geometry_types\` \`gt\` on((\`dt\`.\`dt_id\` = \`gt\`.\`gt_id\`)) + ) + join \`number_types\` \`nt\` on((\`dt\`.\`dt_id\` = \`nt\`.\`nt_id\`)) + ) + join \`other_types\` \`ot\` on((\`dt\`.\`dt_id\` = \`ot\`.\`ot_id\`)) + ); + # ------------------------------------------------------------ # DATA DUMP FOR TABLE: date_types # ------------------------------------------------------------