Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-749

LP:780108 - Couldn't import zoneinfo to MariaDB on Debian squeeze

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.0.1, 5.5.30, 5.1.67, 5.2.14, 5.3.12
    • Fix Version/s: None
    • Component/s: None

      Description

      Data import ending with fatal error:

      ERROR 1406 (22001) at line 39365: Data too long for column 'Abbreviation' at row 1
      
      mikhail@p5k:~$ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -uroot mysql
      Warning: Unable to load '/usr/share/zoneinfo/Asia/Riyadh87' as time zone. Skipping it.
      Warning: Unable to load '/usr/share/zoneinfo/Asia/Riyadh88' as time zone. Skipping it.
      Warning: Unable to load '/usr/share/zoneinfo/Asia/Riyadh89' as time zone. Skipping it.
      Warning: Unable to load '/usr/share/zoneinfo/Mideast/Riyadh87' as time zone. Skipping it.
      Warning: Unable to load '/usr/share/zoneinfo/Mideast/Riyadh88' as time zone. Skipping it.
      Warning: Unable to load '/usr/share/zoneinfo/Mideast/Riyadh89' as time zone. Skipping it.
      ERROR 1406 (22001) at line 39365: Data too long for column 'Abbreviation' at row 1
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              colin Colin Charles added a comment -

              Re: Couldn't import zoneinfo to MariaDB on Debian squeeze
              Which version of MariaDB was this? Where did you get the version of MariaDB from?

              Show
              colin Colin Charles added a comment - Re: Couldn't import zoneinfo to MariaDB on Debian squeeze Which version of MariaDB was this? Where did you get the version of MariaDB from?
              Hide
              ratzpo Rasmus Johansson added a comment -

              Re: Couldn't import zoneinfo to MariaDB on Debian squeeze
              I found this burgeport via searchnig "Data too long for column 'Abbreviation' at row 1"
              I set the | sql_mode | STRICT_TRANS_TABLES
              I am using Ubuntu 10.04 / MySQL version 5.1.41-3ubuntu12.7-log

              Show
              ratzpo Rasmus Johansson added a comment - Re: Couldn't import zoneinfo to MariaDB on Debian squeeze I found this burgeport via searchnig "Data too long for column 'Abbreviation' at row 1" I set the | sql_mode | STRICT_TRANS_TABLES I am using Ubuntu 10.04 / MySQL version 5.1.41-3ubuntu12.7-log
              Hide
              ratzpo Rasmus Johansson added a comment -

              Launchpad bug id: 780108

              Show
              ratzpo Rasmus Johansson added a comment - Launchpad bug id: 780108
              Hide
              elenst Elena Stepanova added a comment -

              Reproducible on all versions of MySQL / MariaDB and exists in MySQL bugbase as http://bugs.mysql.com/bug.php?id=20545

              It's important that the server is running with STRICT_ALL_TABLES.

              Here is the offending line:

              INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES
              (@time_zone_id, 0, 0, 0, 'Local time zone must be set--see zic manual page')

              Abbreviation is CHAR(8).

              Show
              elenst Elena Stepanova added a comment - Reproducible on all versions of MySQL / MariaDB and exists in MySQL bugbase as http://bugs.mysql.com/bug.php?id=20545 It's important that the server is running with STRICT_ALL_TABLES. Here is the offending line: INSERT INTO time_zone_transition_type (Time_zone_id, Transition_type_id, Offset, Is_DST, Abbreviation) VALUES (@time_zone_id, 0, 0, 0, 'Local time zone must be set--see zic manual page') Abbreviation is CHAR(8).
              Hide
              bar Alexander Barkov added a comment -
              Show
              bar Alexander Barkov added a comment - See also http://bugs.mysql.com/bug.php?id=68861

                People

                • Assignee:
                  bar Alexander Barkov
                  Reporter:
                  ntman NT Man
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated: