Menu

#2575 (ok 2.11.3) Error importing file with lowercase \"delimiter\"

2.11.2
fixed
1
2013-06-11
2007-10-30
warforge00
No

Issue loading the following file into the SQL Query textarea.

http://firestuff.org/wordpress/wp-content/uploads/2006/03/base64.sql

Shouldn't the SQL Query textarea be able to execute this file as the delimiter within the text should override the delimiter within the input box.

Using command line, it imported the file instantly.

Discussion

  • Jürgen Wind

    Jürgen Wind - 2007-10-30

    Logged In: YES
    user_id=1383652
    Originator: NO

    if I remember correctly "delimiter |;" only works in the CLI
    (that's why the sql window needs an extra delimiter input field).

     
  • warforge00

    warforge00 - 2007-11-03

    Logged In: YES
    user_id=1914403
    Originator: YES

    Shouldn't a web interface provide the same functionality as the CLI when it comes to executing SQL statements?

     
  • Jürgen Wind

    Jürgen Wind - 2007-11-04

    Logged In: YES
    user_id=1383652
    Originator: NO

    Sorry, I should have explained the procedure.
    Here is how to mimic the CLI:

    a)
    replace the lines

    017: "delimiter |" with "/* delimiter |*/"

    and

    173: "END |" with "END /* | */"

    b)
    select your target db,
    copy and paste the new text into the SQL window.
    change "Delimiter [ ; ]" to "Delimiter [ | ]" and Go

    Result:
    Your SQL query has been executed successfully
    Routines
    Name Type Return type
    BASE64_DECODE
    Drop FUNCTION blob
    BASE64_ENCODE
    Drop FUNCTION blob

    see http://pma.cihar.com/trunk-config/?db=1823045base64warforge00
    (atm, databases often get deleted)

     
  • Jürgen Wind

    Jürgen Wind - 2007-11-04

    Logged In: YES
    user_id=1383652
    Originator: NO

    you can export this db with tables and functions :
    [ tick this ] Add CREATE PROCEDURE / FUNCTION

    (atm only with pma 3.0 successfully, I'll file a separate bug report for pma 2.11.2)

    ...
    and import the dump back successfully (with both pma 2.11.2 and pma 3.0)
    see: http://pma.cihar.com/trunk-config/?db=211importFunctionsFrom300
    (created by "STABLE" using the pma 3.0 dump)

     
  • Jürgen Wind

    Jürgen Wind - 2007-11-04

    Logged In: YES
    user_id=1383652
    Originator: NO

    well,
    in your summary you talked about "the SQL Query textarea".
    I hope I made clear how to execute those statements.

    On *IMPORT* there is indeed a pma bug:
    "delimiter" is not correctly recognized but if you change it to
    "DELIMITER" the file can be imported without problems.

     
  • Jürgen Wind

    Jürgen Wind - 2007-11-04

    Logged In: YES
    user_id=1383652
    Originator: NO

    btw,
    I just read that the export bug will be fixed in pma 2.11.3,
    hopefully the "delimiter" (lowercase) issue as well ;)

     
  • Marc Delisle

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

    Marc Delisle - 2007-11-07
    • summary: Error importing file --> Error importing file with lowercase "delimiter"
     
  • Marc Delisle

    Marc Delisle - 2007-11-07
    • summary: Error importing file with lowercase "delimiter" --> (ok 2.11.3) Error importing file with lowercase "delimiter"
    • priority: 5 --> 1
    • status: open --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2007-11-07

    Logged In: YES
    user_id=210714
    Originator: NO

    Fixed in subversion, thanks for reporting.

     
  • Marc Delisle

    Marc Delisle - 2007-12-08
    • summary: (ok 2.11.3) Error importing file with lowercase "delimiter" --> (ok 2.11.3) Error importing file with lowercase \"delimiter\"
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

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