Export grid rows - doesn't export all selected rows
| User, date | Message |
|---|---|
|
Written by lemon_juice
7 months ago Category: Import/Export 95 posts since Tue, 29 Jun 10 |
I have come across a problem when trying to export rows from one of my tables using "export grid rows". I go to the Data tab, select rows (about 200-300 - the problem seems to occur with larger selections), choose "Export grid rows" with these options: - Copy to clipboard - Output format: SQL INSERTs - Row Selection: selection - Options: Include column names & Include auto increment column The result is that only 1 row from the selection is exported and it seems to be picked up randomly. Also, after the exporting my original selection changes so that only that one row is selected. The same happens when I try exporting to a file. In other words I am not able to export any significant number of selected rows. I have seen this problem only on one of my tables so maybe it's dependent on the structure. Here is the table structure:
|
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
Cannot confirm - selection is kept on that table here. Though I'm unable to reproduce the situation exactly as I don't have the row data from your table, and I don't have the foreign key tables here. But that should make no difference in the data grid. Having 10 rows selected keeps the selection, and exports everything fine. And you're sure that you have more than one row selected via ctrl+mouseclick, or ctrl+A? |
|
Written by lemon_juice
7 months ago 95 posts since Tue, 29 Jun 10 |
Yes, I am sure I am selecting the rows correctly. Foreign keys make no difference here. I can send you sample data of 300 rows which is enough to reproduce the problem. How can I send it to you? Do you have an email for this purpose? |
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
Yes, email is linked in the footer here on heidisql.com. |
|
Written by lemon_juice
7 months ago 95 posts since Tue, 29 Jun 10 |
Did you get my email? I sent you the data yesterday. |
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
Yes, got it. Give me one day or two, being a bit busy currently with work stuff. |
|
Written by lemon_juice
7 months ago 95 posts since Tue, 29 Jun 10 |
All right, thanks! |
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
Have your file imported now. But cannot confirm what you described above. Hm, anything noticable in the SQL log when you right click the selected rows? |
|
Written by lemon_juice
7 months ago 95 posts since Tue, 29 Jun 10 |
It's strange this doesn't happen for you, I've just imported the same data to an empty test database and the problem occurs every time I try it. The log doesn't say much but there is a small difference between the problematic case when I select all 300 rows and the case when I select only first 3 rows (when a small number of rows are selected then everything works well). When I right click on the selection of 300 rows then the log is filled with such statements:
There seems to be one line like this for each row starting with prod_id=1 and finishing at prod_id=300. After the export is done then only 1 rows remains selected and this is logged: SHOW CREATE TABLE `test`.`sklep_produkty_copy`; And this is the difference - when the export is successful (when only 3 rows are selected) then the above last segment of lines doesn't appear in the log - simply the export dialog window closes and nothing is written in the log - and the selection of 3 rows remains. I hope this can be of any help. I'm using rev #4208 on Win 7 32-bit with AMD Athlon XP 64 X2 4000+ and 2GB RAM. |
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
Eh, just tried again and now it happens here exactly as you describe... I think I did not select 300 but less rows yesterday. Could be related to the unprecise InnoDB row count. Will check. |
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
No, looks like some rows make HeidiSQL believe it has to reload them. prod_id 43 and 44 for example do that each time you right click these. |
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
Also, when you hover your mouse over the "param" column in row 43 and 44, you get an endless looping SELECT in the log. Funny thing. Well, HeidiSQL loads text columns with a LEFT(col, 256) in order to keep results small, and tries to load full contents on demand. And that's where I have some bug. |
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
Fixed in r4209 |
|
Written by lemon_juice
7 months ago 95 posts since Tue, 29 Jun 10 |
Thanks, it works very well now! |
|
Written by ansgar
7 months ago 3975 posts since Fri, 07 Apr 06 |
Thank *you* for such a precise reproduction recipe. It's a pleasure to fix such bugs if you get immediate detailed feedback. In contrast to reports like "Export copy does not work. Please help!!" or so. Well, just a example, I get such reports quite often. Sometimes it's funny, but you know - fun stops at some point... |
|
Written by lemon_juice
7 months ago 95 posts since Tue, 29 Jun 10 |
Well, I'm a programmer myself and I know how tricky it can be for a developer to fix bugs which are obscure and activate themselves only in certain rare circumstances. Casual users don't realize this and often think that sending a general statement like "X doesn't work" is enough, I think it's because people who don't program think that programming is much easier and simpler than it is in reality! |
|
Please login to leave a reply, or register at first. |