Menu

#2469 (ok 2.11) view contents is exported as table data

2.10.2
fixed
1
2014-08-24
2007-07-10
No

View contents is exported as table data (with "insert into " sql command). When importing, it of course fails with an error, because the view is of course not updatable.

View contents should not be exported at all.

Discussion

  • Marc Delisle

    Marc Delisle - 2007-07-10

    Logged In: YES
    user_id=210714
    Originator: NO

    Note: this happens only when exporting a single view. Exporting the full database does not generate INSERTs for VIEWs.

     
  • Marc Delisle

    Marc Delisle - 2007-07-10
    • milestone: 681416 --> 2.10.2
     
  • Marc Delisle

    Marc Delisle - 2007-07-10
    • status: open --> pending-wont-fix
     
  • Marc Delisle

    Marc Delisle - 2007-07-10

    Logged In: YES
    user_id=210714
    Originator: NO

    Ok, I would say that it's the user's responsability to untick the Data checkbox in this case. There are cases where we have to export data for a VIEW, for example when generating a PDF export.

    Comments?

     
  • Tomas Telensky

    Tomas Telensky - 2007-07-10

    Logged In: YES
    user_id=1841109
    Originator: YES

    1) "... this happens only when exporting a single view ..."

    No - for me it exports data from view even if you export whole database. (I have version 2.9.2 on webhosting, can't try newer unfortunatelly).

    2) "Ok, I would say that it's the user's responsability to untick the Data
    checkbox in this case. There are cases where we have to export data for a
    VIEW, for example when generating a PDF export."

    I think it SHOULDN'T export data in SQL export, because it doesn't make sense and data will NOT be accepted by import.

     
  • Tomas Telensky

    Tomas Telensky - 2007-07-10
    • status: pending-wont-fix --> open-wont-fix
     
  • Marc Delisle

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

    Marc Delisle - 2007-07-12

    works for me under 2.9.2.

     
  • Marc Delisle

    Marc Delisle - 2007-07-12
    • status: open-wont-fix --> open-accepted
     
  • Marc Delisle

    Marc Delisle - 2007-07-12

    Logged In: YES
    user_id=210714
    Originator: NO

    1. I cannot reproduce this problem under 2.9.2. I attached my example here.

    Please attach here a small example to help me reproduce this.
    File Added: base2_autre.sql

     
  • Marc Delisle

    Marc Delisle - 2007-07-12

    Logged In: YES
    user_id=210714
    Originator: NO

    2. Fixed in 2.11-dev.

     
  • Marc Delisle

    Marc Delisle - 2007-07-16
    • summary: view contents is exported as table data --> (ok 2.11) view contents is exported as table data
    • priority: 5 --> 1
    • status: open-accepted --> open-fixed
     
  • Marc Delisle

    Marc Delisle - 2007-08-21
    • status: open-fixed --> closed-fixed
     
  • Michal Čihař

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