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

Section name buffer in INI table is not enough

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not a Bug
    • Affects Version/s: 10.0.16
    • Fix Version/s: N/A
    • Labels:
      None
    • Environment:
      OS:Scientific Linux release 6.4 (Carbon)
      Kernel : 2.6.32-358.el6.x86_64
      gcc : 4.4.7
      Memory space:24GB

      Description

      Dear Sir,
      I'm trying to load an INI table into Mariadb, but it seems connect engine didn't fully load my table. The data is broken by a certain line, and it didn't be loaded into the database after that line. I also tried to set seclen like your website said : option_list='seclen=4000'; but it's not helpful, would you please let me know how to solve this issue so that my INI table can be fully loaded ? Thanks a lot for your help.

      Best Regards,
      W.J. Chang

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            jplindst Jan Lindström added a comment -

            Hi,

            Could you provide a more thorough description of the problem and if you have repeatable set of commands/test case or database that would help to start resolving the actual issue.

            Show
            jplindst Jan Lindström added a comment - Hi, Could you provide a more thorough description of the problem and if you have repeatable set of commands/test case or database that would help to start resolving the actual issue.
            Hide
            wchang weijenchang added a comment -

            Thanks for your quick reply. I just attach two files, primary_info is the file which I'd to load into MariaDB, and there are 1720 sections. But I can just see 911 rows after I query the table. I also attach the end of the result of "select * from primary_info". Here is how I created my table: create table primary_info ( Hostname varchar(20) not null flag=1, MM_IP varchar(20) not null, Bay varchar(10) not null, Location varchar(20) not null, Purpose varchar(15), Annotation varchar(50)) engine=CONNECT table_type=INI file_name='/tmp/asgc_resource/primary_info/primary_info';
            Thanks a lot.

            Best Regards,
            W.J. Chang

            Show
            wchang weijenchang added a comment - Thanks for your quick reply. I just attach two files, primary_info is the file which I'd to load into MariaDB, and there are 1720 sections. But I can just see 911 rows after I query the table. I also attach the end of the result of "select * from primary_info". Here is how I created my table: create table primary_info ( Hostname varchar(20) not null flag=1, MM_IP varchar(20) not null, Bay varchar(10) not null, Location varchar(20) not null, Purpose varchar(15), Annotation varchar(50)) engine=CONNECT table_type=INI file_name='/tmp/asgc_resource/primary_info/primary_info'; Thanks a lot. Best Regards, W.J. Chang
            Hide
            bertrandop Olivier Bertrand added a comment - - edited

            Actually the documentation is out of date and you have been mislead because of this.

            The default section buffer size is not 2K but 8K, and the option name is not seclen but secsize. Specifying:

            option_list='secsize=16K'
            

            I was able to display the 1720 sections.

            Show
            bertrandop Olivier Bertrand added a comment - - edited Actually the documentation is out of date and you have been mislead because of this. The default section buffer size is not 2K but 8K, and the option name is not seclen but secsize . Specifying: option_list='secsize=16K' I was able to display the 1720 sections.

              People

              • Assignee:
                bertrandop Olivier Bertrand
                Reporter:
                wchang weijenchang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h