Skip to content

Commit fe99c59

Browse files
committed
docs
1 parent 3f73aed commit fe99c59

File tree

1 file changed

+113
-113
lines changed

1 file changed

+113
-113
lines changed

README.md

Lines changed: 113 additions & 113 deletions
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,12 @@ binlog-format = row #Very important if you want to receive write, update and
182182
* `JSON` -> ?????? (possibly `String`?)
183183

184184

185+
## MySQL Test Tables
185186

187+
We have to separate test table into several ones because of this error, produced by MySQL:
188+
```bash
186189
ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
187-
ERROR 1118 (42000): Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
188-
189-
190-
## MySQL Test Tables
190+
```
191191

192192
```sql
193193
CREATE TABLE datatypes(
@@ -612,115 +612,115 @@ CREATE TABLE long_varbinary_datatypes(
612612
```sql
613613
CREATE DATABASE IF NOT EXISTS `airline`;
614614
CREATE TABLE IF NOT EXISTS `airline`.`ontime` (
615-
`Year` SMALLINT UNSIGNED, -- UInt16,
616-
`Quarter` TINYINT UNSIGNED, -- UInt8,
617-
`Month` TINYINT UNSIGNED, -- UInt8,
618-
`DayofMonth` TINYINT UNSIGNED, -- UInt8,
619-
`DayOfWeek` TINYINT UNSIGNED, -- UInt8,
620-
`FlightDate` DATE, -- Date,
621-
`UniqueCarrier` LONGTEXT, -- String,
622-
`AirlineID` INTEGER UNSIGNED, -- UInt32,
623-
`Carrier` LONGTEXT, -- String,
624-
`TailNum` LONGTEXT, -- String,
625-
`FlightNum` LONGTEXT, -- String,
626-
`OriginAirportID` INTEGER UNSIGNED, -- UInt32,
627-
`OriginAirportSeqID` INTEGER UNSIGNED, -- UInt32,
628-
`OriginCityMarketID` INTEGER UNSIGNED, -- UInt32,
629-
`Origin` LONGTEXT, -- String,
630-
`OriginCityName` LONGTEXT, -- String,
631-
`OriginState` LONGTEXT, -- String,
632-
`OriginStateFips` LONGTEXT, -- String,
633-
`OriginStateName` LONGTEXT, -- String,
634-
`OriginWac` INTEGER UNSIGNED, -- UInt32,
635-
`DestAirportID` INTEGER UNSIGNED, -- UInt32,
636-
`DestAirportSeqID` INTEGER UNSIGNED, -- UInt32,
637-
`DestCityMarketID` INTEGER UNSIGNED, -- UInt32,
638-
`Dest` LONGTEXT, -- String,
639-
`DestCityName` LONGTEXT, -- String,
640-
`DestState` LONGTEXT, -- String,
641-
`DestStateFips` LONGTEXT, -- String,
642-
`DestStateName` LONGTEXT, -- String,
643-
`DestWac` INTEGER UNSIGNED, -- UInt32,
644-
`CRSDepTime` INTEGER UNSIGNED, -- UInt32,
645-
`DepTime` INTEGER UNSIGNED, -- UInt32,
646-
`DepDelay` FLOAT, -- Float32,
647-
`DepDelayMinutes` FLOAT, -- Float32,
648-
`DepDel15` FLOAT, -- Float32,
649-
`DepartureDelayGroups` INTEGER, -- Int32,
650-
`DepTimeBlk` LONGTEXT, -- String,
651-
`TaxiOut` FLOAT, -- Float32,
652-
`WheelsOff` INTEGER UNSIGNED, -- UInt32,
653-
`WheelsOn` INTEGER UNSIGNED, -- UInt32,
654-
`TaxiIn` FLOAT, -- Float32,
655-
`CRSArrTime` INTEGER UNSIGNED, -- UInt32,
656-
`ArrTime` INTEGER UNSIGNED, -- UInt32,
657-
`ArrDelay` FLOAT, -- Float32,
658-
`ArrDelayMinutes` FLOAT, -- Float32,
659-
`ArrDel15` FLOAT, -- Float32,
660-
`ArrivalDelayGroups` INTEGER, -- Int32,
661-
`ArrTimeBlk` LONGTEXT, -- String,
662-
`Cancelled` FLOAT, -- Float32,
663-
`CancellationCode` LONGTEXT, -- String,
664-
`Diverted` FLOAT, -- Float32,
665-
`CRSElapsedTime` FLOAT, -- Float32,
666-
`ActualElapsedTime` FLOAT, -- Float32,
667-
`AirTime` FLOAT, -- Float32,
668-
`Flights` FLOAT, -- Float32,
669-
`Distance` FLOAT, -- Float32,
670-
`DistanceGroup` FLOAT, -- Float32,
671-
`CarrierDelay` FLOAT, -- Float32,
672-
`WeatherDelay` FLOAT, -- Float32,
673-
`NASDelay` FLOAT, -- Float32,
674-
`SecurityDelay` FLOAT, -- Float32,
675-
`LateAircraftDelay` FLOAT, -- Float32,
676-
`FirstDepTime` LONGTEXT, -- String,
677-
`TotalAddGTime` LONGTEXT, -- String,
678-
`LongestAddGTime` LONGTEXT, -- String,
679-
`DivAirportLandings` LONGTEXT, -- String,
680-
`DivReachedDest` LONGTEXT, -- String,
681-
`DivActualElapsedTime` LONGTEXT, -- String,
682-
`DivArrDelay` LONGTEXT, -- String,
683-
`DivDistance` LONGTEXT, -- String,
684-
`Div1Airport` LONGTEXT, -- String,
685-
`Div1AirportID` INTEGER UNSIGNED, -- UInt32,
686-
`Div1AirportSeqID` INTEGER UNSIGNED, -- UInt32,
687-
`Div1WheelsOn` LONGTEXT, -- String,
688-
`Div1TotalGTime` LONGTEXT, -- String,
689-
`Div1LongestGTime` LONGTEXT, -- String,
690-
`Div1WheelsOff` LONGTEXT, -- String,
691-
`Div1TailNum` LONGTEXT, -- String,
692-
`Div2Airport` LONGTEXT, -- String,
693-
`Div2AirportID` INTEGER UNSIGNED, -- UInt32,
694-
`Div2AirportSeqID` INTEGER UNSIGNED, -- UInt32,
695-
`Div2WheelsOn` LONGTEXT, -- String,
696-
`Div2TotalGTime` LONGTEXT, -- String,
697-
`Div2LongestGTime` LONGTEXT, -- String,
698-
`Div2WheelsOff` LONGTEXT, -- String,
699-
`Div2TailNum` LONGTEXT, -- String,
700-
`Div3Airport` LONGTEXT, -- String,
701-
`Div3AirportID` INTEGER UNSIGNED, -- UInt32,
702-
`Div3AirportSeqID` INTEGER UNSIGNED, -- UInt32,
703-
`Div3WheelsOn` LONGTEXT, -- String,
704-
`Div3TotalGTime` LONGTEXT, -- String,
705-
`Div3LongestGTime` LONGTEXT, -- String,
706-
`Div3WheelsOff` LONGTEXT, -- String,
707-
`Div3TailNum` LONGTEXT, -- String,
708-
`Div4Airport` LONGTEXT, -- String,
709-
`Div4AirportID` INTEGER UNSIGNED, -- UInt32,
710-
`Div4AirportSeqID` INTEGER UNSIGNED, -- UInt32,
711-
`Div4WheelsOn` LONGTEXT, -- String,
712-
`Div4TotalGTime` LONGTEXT, -- String,
713-
`Div4LongestGTime` LONGTEXT, -- String,
714-
`Div4WheelsOff` LONGTEXT, -- String,
715-
`Div4TailNum` LONGTEXT, -- String,
716-
`Div5Airport` LONGTEXT, -- String,
717-
`Div5AirportID` INTEGER UNSIGNED, -- UInt32,
718-
`Div5AirportSeqID` INTEGER UNSIGNED, -- UInt32,
719-
`Div5WheelsOn` LONGTEXT, -- String,
720-
`Div5TotalGTime` LONGTEXT, -- String,
721-
`Div5LongestGTime` LONGTEXT, -- String,
722-
`Div5WheelsOff` LONGTEXT, -- String,
723-
`Div5TailNum` LONGTEXT -- String
615+
`Year` SMALLINT UNSIGNED, -- maps to UInt16,
616+
`Quarter` TINYINT UNSIGNED, -- maps to UInt8,
617+
`Month` TINYINT UNSIGNED, -- maps to UInt8,
618+
`DayofMonth` TINYINT UNSIGNED, -- maps to UInt8,
619+
`DayOfWeek` TINYINT UNSIGNED, -- maps to UInt8,
620+
`FlightDate` DATE, -- maps to Date,
621+
`UniqueCarrier` LONGTEXT, -- maps to String,
622+
`AirlineID` INTEGER UNSIGNED, -- maps to UInt32,
623+
`Carrier` LONGTEXT, -- maps to String,
624+
`TailNum` LONGTEXT, -- maps to String,
625+
`FlightNum` LONGTEXT, -- maps to String,
626+
`OriginAirportID` INTEGER UNSIGNED, -- maps to UInt32,
627+
`OriginAirportSeqID` INTEGER UNSIGNED, -- maps to UInt32,
628+
`OriginCityMarketID` INTEGER UNSIGNED, -- maps to UInt32,
629+
`Origin` LONGTEXT, -- maps to String,
630+
`OriginCityName` LONGTEXT, -- maps to String,
631+
`OriginState` LONGTEXT, -- maps to String,
632+
`OriginStateFips` LONGTEXT, -- maps to String,
633+
`OriginStateName` LONGTEXT, -- maps to String,
634+
`OriginWac` INTEGER UNSIGNED, -- maps to UInt32,
635+
`DestAirportID` INTEGER UNSIGNED, -- maps to UInt32,
636+
`DestAirportSeqID` INTEGER UNSIGNED, -- maps to UInt32,
637+
`DestCityMarketID` INTEGER UNSIGNED, -- maps to UInt32,
638+
`Dest` LONGTEXT, -- maps to String,
639+
`DestCityName` LONGTEXT, -- maps to String,
640+
`DestState` LONGTEXT, -- maps to String,
641+
`DestStateFips` LONGTEXT, -- maps to String,
642+
`DestStateName` LONGTEXT, -- maps to String,
643+
`DestWac` INTEGER UNSIGNED, -- maps to UInt32,
644+
`CRSDepTime` INTEGER UNSIGNED, -- maps to UInt32,
645+
`DepTime` INTEGER UNSIGNED, -- maps to UInt32,
646+
`DepDelay` FLOAT, -- maps to Float32,
647+
`DepDelayMinutes` FLOAT, -- maps to Float32,
648+
`DepDel15` FLOAT, -- maps to Float32,
649+
`DepartureDelayGroups` INTEGER, -- maps to Int32,
650+
`DepTimeBlk` LONGTEXT, -- maps to String,
651+
`TaxiOut` FLOAT, -- maps to Float32,
652+
`WheelsOff` INTEGER UNSIGNED, -- maps to UInt32,
653+
`WheelsOn` INTEGER UNSIGNED, -- maps to UInt32,
654+
`TaxiIn` FLOAT, -- maps to Float32,
655+
`CRSArrTime` INTEGER UNSIGNED, -- maps to UInt32,
656+
`ArrTime` INTEGER UNSIGNED, -- maps to UInt32,
657+
`ArrDelay` FLOAT, -- maps to Float32,
658+
`ArrDelayMinutes` FLOAT, -- maps to Float32,
659+
`ArrDel15` FLOAT, -- maps to Float32,
660+
`ArrivalDelayGroups` INTEGER, -- maps to Int32,
661+
`ArrTimeBlk` LONGTEXT, -- maps to String,
662+
`Cancelled` FLOAT, -- maps to Float32,
663+
`CancellationCode` LONGTEXT, -- maps to String,
664+
`Diverted` FLOAT, -- maps to Float32,
665+
`CRSElapsedTime` FLOAT, -- maps to Float32,
666+
`ActualElapsedTime` FLOAT, -- maps to Float32,
667+
`AirTime` FLOAT, -- maps to Float32,
668+
`Flights` FLOAT, -- maps to Float32,
669+
`Distance` FLOAT, -- maps to Float32,
670+
`DistanceGroup` FLOAT, -- maps to Float32,
671+
`CarrierDelay` FLOAT, -- maps to Float32,
672+
`WeatherDelay` FLOAT, -- maps to Float32,
673+
`NASDelay` FLOAT, -- maps to Float32,
674+
`SecurityDelay` FLOAT, -- maps to Float32,
675+
`LateAircraftDelay` FLOAT, -- maps to Float32,
676+
`FirstDepTime` LONGTEXT, -- maps to String,
677+
`TotalAddGTime` LONGTEXT, -- maps to String,
678+
`LongestAddGTime` LONGTEXT, -- maps to String,
679+
`DivAirportLandings` LONGTEXT, -- maps to String,
680+
`DivReachedDest` LONGTEXT, -- maps to String,
681+
`DivActualElapsedTime` LONGTEXT, -- maps to String,
682+
`DivArrDelay` LONGTEXT, -- maps to String,
683+
`DivDistance` LONGTEXT, -- maps to String,
684+
`Div1Airport` LONGTEXT, -- maps to String,
685+
`Div1AirportID` INTEGER UNSIGNED, -- maps to UInt32,
686+
`Div1AirportSeqID` INTEGER UNSIGNED, -- maps to UInt32,
687+
`Div1WheelsOn` LONGTEXT, -- maps to String,
688+
`Div1TotalGTime` LONGTEXT, -- maps to String,
689+
`Div1LongestGTime` LONGTEXT, -- maps to String,
690+
`Div1WheelsOff` LONGTEXT, -- maps to String,
691+
`Div1TailNum` LONGTEXT, -- maps to String,
692+
`Div2Airport` LONGTEXT, -- maps to String,
693+
`Div2AirportID` INTEGER UNSIGNED, -- maps to UInt32,
694+
`Div2AirportSeqID` INTEGER UNSIGNED, -- maps to UInt32,
695+
`Div2WheelsOn` LONGTEXT, -- maps to String,
696+
`Div2TotalGTime` LONGTEXT, -- maps to String,
697+
`Div2LongestGTime` LONGTEXT, -- maps to String,
698+
`Div2WheelsOff` LONGTEXT, -- maps to String,
699+
`Div2TailNum` LONGTEXT, -- maps to String,
700+
`Div3Airport` LONGTEXT, -- maps to String,
701+
`Div3AirportID` INTEGER UNSIGNED, -- maps to UInt32,
702+
`Div3AirportSeqID` INTEGER UNSIGNED, -- maps to UInt32,
703+
`Div3WheelsOn` LONGTEXT, -- maps to String,
704+
`Div3TotalGTime` LONGTEXT, -- maps to String,
705+
`Div3LongestGTime` LONGTEXT, -- maps to String,
706+
`Div3WheelsOff` LONGTEXT, -- maps to String,
707+
`Div3TailNum` LONGTEXT, -- maps to String,
708+
`Div4Airport` LONGTEXT, -- maps to String,
709+
`Div4AirportID` INTEGER UNSIGNED, -- maps to UInt32,
710+
`Div4AirportSeqID` INTEGER UNSIGNED, -- maps to UInt32,
711+
`Div4WheelsOn` LONGTEXT, -- maps to String,
712+
`Div4TotalGTime` LONGTEXT, -- maps to String,
713+
`Div4LongestGTime` LONGTEXT, -- maps to String,
714+
`Div4WheelsOff` LONGTEXT, -- maps to String,
715+
`Div4TailNum` LONGTEXT, -- maps to String,
716+
`Div5Airport` LONGTEXT, -- maps to String,
717+
`Div5AirportID` INTEGER UNSIGNED, -- maps to UInt32,
718+
`Div5AirportSeqID` INTEGER UNSIGNED, -- maps to UInt32,
719+
`Div5WheelsOn` LONGTEXT, -- maps to String,
720+
`Div5TotalGTime` LONGTEXT, -- maps to String,
721+
`Div5LongestGTime` LONGTEXT, -- maps to String,
722+
`Div5WheelsOff` LONGTEXT, -- maps to String,
723+
`Div5TailNum` LONGTEXT -- maps to String
724724
);
725725
```
726726

0 commit comments

Comments
 (0)