Menu

#2553 (ok 2.11.6) Cannot copy table (ANSI_QUOTES)

2.11.1
fixed
1
2013-06-11
2007-10-13
No

When I try to copy a table to another database the scripts explodes with the following:

Notice: Undefined offset: 77 in phpMyAdmin-2.11.1\libraries\Table.class.php on line 602

Discussion

  • Jürgen Wind

    Jürgen Wind - 2007-10-13

    Logged In: YES
    user_id=1383652
    Originator: NO

    works very well on the demo server http://pma.cihar.com/STABLE/?pma_password=&pma_username=root

     
  • Sebastian Mendel

    • status: open --> pending
     
  • Sebastian Mendel

    Logged In: YES
    user_id=326580
    Originator: NO

    please provide the structure of your table (export without data)

     
  • Tony Marston

    Tony Marston - 2007-10-14
    • status: pending --> open
     
  • Tony Marston

    Tony Marston - 2007-10-14

    Logged In: YES
    user_id=495328
    Originator: YES

    This works with PHP 5.2.4 and MySQL 5.0.45, but fails with PHP 4.4.7 and MySQL 4.1.22 (mysql_* interface, not mysqli_*). It also fails with PhpMyAdmin 2.11.0 and 2.9.2.

    Here is the table in question:

    CREATE TABLE IF NOT EXISTS `preference_type` (
    `preference_type_id` varchar(4) NOT NULL default '',
    `preference_type_desc` varchar(40) NOT NULL default '',
    `created_date` datetime NOT NULL default '2001-01-01 00:00:00',
    `created_user` varchar(16) NOT NULL default 'UNKNOWN',
    `revised_date` datetime default NULL,
    `revised_user` varchar(16) default NULL,
    PRIMARY KEY (`preference_type_id`)
    ) TYPE=MyISAM;

     
  • Marc Delisle

    Marc Delisle - 2007-11-10
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2007-11-10

    Logged In: YES
    user_id=210714
    Originator: NO

    No problem copying your table to another database, with:
    phpMyAdmin 2.11.1
    MySQL 4.1.22
    MySQL client lib 4.1.22
    PHP 4.4.7
    Apache 2.2.6
    Linux server

     
  • Marc Delisle

    Marc Delisle - 2007-11-10
    • status: open --> pending-works-for-me
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending-works-for-me --> closed-works-for-me
     
  • Tony Marston

    Tony Marston - 2008-03-19
    • status: closed-works-for-me --> open-works-for-me
     
  • Tony Marston

    Tony Marston - 2008-03-19

    Logged In: YES
    user_id=495328
    Originator: YES

    I have eventually found the problem. I had ANSI_QUOTES set in my config file which means that when the result of SHOW CREATE TABLE is obtained the quote character is doublequote instead of backtick, but your code only looks for backticks which it cannot find, hence the error. I solved the problem by placing the following code:
    $create_query = str_replace('"', '`', $create_query);
    in phpMyAdmin-2.11.5\libraries\export\sql.php after line 475

     
  • Marc Delisle

    Marc Delisle - 2008-03-19
    • summary: Cannot copy table to another database --> Cannot copy table to another database (ANSI_QUOTES)
    • status: open-works-for-me --> open
     
  • Marc Delisle

    Marc Delisle - 2008-03-21
    • summary: Cannot copy table to another database (ANSI_QUOTES) --> (ok 2.11.6) Cannot copy table (ANSI_QUOTES)
    • priority: 5 --> 1
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2008-04-29
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed-fixed --> fixed
     
MongoDB Logo MongoDB