Ansgar Becker
c87d75efae
Implement a simple crash indicator for SELECTing a table's data. This boolean registry value is always set directly before executing the relevant GetResults(). If the query succeeds, the indicator gets just removed directly after that GetResults(). If the table loads for a longer time and the user exits HeidiSQL by killing the process, the indicator is still present and will be used to automatically disable filtering and sorting when that table is loaded again. Helps with issue #714 . See also http://www.heidisql.com/forum/viewtopic.php?p=2638 for a user report which this fix is addressing.
2008-09-28 22:29:08 +00:00
Ansgar Becker
47e5888547
Fix bug #759 : wrong context-sensitive help
2008-09-26 17:01:32 +00:00
Ansgar Becker
ff2a5522e7
Fix bug #160 : interface allows selecting autoinc without index or key. Not the neatest solution as the PK checkbox could be unchecked again if AI is unchecked but that didn't seem worth the hacks that would need. The table creation dialog should be reinvented some day.
2008-09-25 23:06:34 +00:00
Ansgar Becker
609fcedcb2
Fix double masked tablenames in completion proposal, when finding column names after having typed "sometable." All we can do to fulfill rfe #639 "Back quote adding to tooltips fields that have spaces in them". The second suggestion was to display tables in the proposal after having typed "somet" [Ctrl+Space] . That *could* be done by adding the backtick to SynCompletionProposal1.EndOfTokenChr list of chars. But then again this would stop the first mentioned example from working (listing all column names after "sometable`.") which has - I'd say - more weight.
2008-09-25 22:46:21 +00:00
Ansgar Becker
d32d2e8661
Remove ToolbarTable completely from the main tool strip. Seemed worthless in terms of that I think all users rather use the context menu buttons instead of those on the toolbar which are far at the right top (= out of sight). Helps issue #738 a bit.
2008-09-25 22:20:11 +00:00
Ansgar Becker
61c7d3246d
Fix bug #757 error message when removing not-yet inserted row
2008-09-25 21:51:28 +00:00
Ansgar Becker
1a71133625
Fix bug #758 Incorrect tab order in the "Update Field" dialog box
2008-09-25 21:26:25 +00:00
Ansgar Becker
b15e0bf230
Fix reproducable part of issue #715 : After dropping a db and recreating one with the same name the old tables were listed.
2008-09-25 21:19:39 +00:00
Ansgar Becker
fd9c44b576
Implement background colors for NULL fields, part 2 of rfe #692
2008-09-23 23:20:20 +00:00
Ansgar Becker
fe3e8d7a25
Avoid full table loading via incremental search in datagrid, restrict that to already initialized (=loaded) rows.
2008-09-23 22:37:25 +00:00
Ansgar Becker
0ef84eb62f
Implement preference options to enable/disable the new SET editor, plus color selection for the grid font in SET fields.
2008-09-23 22:33:06 +00:00
Ansgar Becker
df880e0a27
Implement SET editor, rfe #764
2008-09-23 22:04:35 +00:00
Ansgar Becker
a13b26cca0
Fix bug #760 : Cannot drag column into query
2008-09-23 16:57:03 +00:00
Ansgar Becker
6f8c67aff7
Make the memo for build infos slightly larger in updatecheck dialog. Put notes from more than only the last revision into it. By passing the revision with "?r=123" to the PHP file, it returns all notes from the current up to the used revision (but never more than 10, as TIniFile seems to have a small maximum line size of 2048 chars.
2008-09-21 22:59:09 +00:00
Ansgar Becker
3694fcfe01
Fix bug #754 grid not refreshed correctly after modifiying a record value when filter condition set
2008-09-21 22:18:14 +00:00
Ansgar Becker
b9724a5aaf
Fulfill rfe #750 : Field editor - allow non quoted literals for default value
2008-09-17 20:25:00 +00:00
Ansgar Becker
159c175375
Add 5 pixels more margin to all 4 edges of the connection screen, hopefully makes it a bit more looking like the pretty startup screen and less like a normal dialog.
2008-09-17 19:21:16 +00:00
rosenfield.albert
c880527ed8
Fix regression in previous revision: various code used an external variable that was moved to a place where setting it avoids race conditions.
2008-09-17 09:23:39 +00:00
rosenfield.albert
9d2bb7697b
Follow-up to r1791: a few more markers.
2008-09-17 09:14:26 +00:00
rosenfield.albert
6167bbfc5d
Follow-up to previous change: setting RootNodeCount on a TVirtualTree consumes a fair amount of memory, so include that in the relevant debug scope too.
2008-09-17 09:10:17 +00:00
rosenfield.albert
88514afa0f
Add markers to help debug issue #691 .
...
To see them, run Sysinternals' DebugView (dbgview.exe) and filter by "mem: ".
2008-09-17 08:58:05 +00:00
rosenfield.albert
cd7401d5af
Previous change done right. Or so I hope.
2008-09-17 08:32:47 +00:00
rosenfield.albert
cf07b2f397
Bugfix: typo causes memory leak on form close.
2008-09-17 08:30:04 +00:00
Ansgar Becker
02ae49f203
Fix bug #749 : size of tables truncated to unreadable in the tree
2008-09-16 20:29:15 +00:00
Ansgar Becker
b6e243545d
Updatecheck: Fix displaying the correct filesize of a nightly build while downloading. Read it from the checkfile. The server doesn't include the filesize in the header any longer.
2008-09-13 19:02:19 +00:00
Ansgar Becker
87619ed69e
Column width tweaking: Only memorize manually resized column sizes for the second refresh of a table, always do the auto calculation for non resized columns. Especially helpful when clicking a column for sorting, which then needs some extra space for the sort glyph.
2008-09-13 16:12:53 +00:00
Ansgar Becker
fda3e0eb36
Enable printing grid content by using VirtualTree's Print method instead of a homebrown one. Optimizes various controls and code away from the printer dialog.
2008-09-13 10:30:00 +00:00
Ansgar Becker
9b53c06018
Fix part 1 of bug #307 export to directory did not create files for each table if "Table structure" was unchecked. Instead the data was found in the header file afterwards.
2008-09-13 09:54:27 +00:00
Ansgar Becker
7e6b2b407f
Fix bug #741 : Switching from host node to table node in tree should activate table tab, not database tab
2008-09-12 23:26:02 +00:00
Ansgar Becker
1476547afc
Fix bug #735 invalid pointer operation, broken in r1766
2008-09-12 23:12:44 +00:00
Ansgar Becker
09a42889b0
Fix bug #736 cannot drop a table when cursor is on top of the tree
2008-09-12 22:51:28 +00:00
Ansgar Becker
1f194b4ba4
Tweaks for column width detection:
...
- Try to fix width for primary key columns which use bold font and need some more space then Canvas.TextWidth tells.
- Sort glyphs only belong to the header so add it early enough
- Minimize needed extra space, difference caused by using Tree.GetDisplayRect now
2008-09-12 22:36:23 +00:00
Ansgar Becker
3805830818
Minor fixes for query grid filling:
...
- Optimize it using Begin/EndUpdate
- Unselect any nodes from previous result
- Reset view area to top left
2008-09-12 21:38:02 +00:00
Ansgar Becker
d2f354275b
Fix name, default value and meaning of preference option "Maximum column width". By default it's 300 now.
2008-09-11 22:44:28 +00:00
Ansgar Becker
ee2dc0b4b3
Adjust extra pixel addings to auto column width calculation. Seems necessairy on some machines (tested on w2k).
2008-09-11 22:33:46 +00:00
Ansgar Becker
e5f42100ca
Do auto calculation of column widths also in the query results
2008-09-11 22:19:07 +00:00
Ansgar Becker
d9ea3f3c9e
Implement auto calculation of optimal column width for DataGrid. Nothing stored in registry yet which is probably not really needed, if this automatism works fine enough. Fixes issue #732 .
2008-09-11 22:01:03 +00:00
Ansgar Becker
1526f793ed
Don't ORDER BY xyz in SELECT COUNT(*) for datagrid preparation. Could possibly enhance performance on huge tables.
2008-09-09 23:27:51 +00:00
Ansgar Becker
d93f3754f6
Fix bug #565 : Post pending UPDATE when switching tables in data tab . To be exact, there are two events which call actDataPostChanges now: 1. Switching to another table or refreshing the current one and 2. closing the whole form .
2008-09-09 22:59:25 +00:00
Ansgar Becker
f1ff6e3eb6
Block the grid fields from getting NULLs via menuitem "Set NULL" or the mapped shortcut (Shift+Ctrl+N) if the table is also blocked for normal editing because of insufficient keys.
2008-09-09 21:54:29 +00:00
Ansgar Becker
48a0f43644
Get rid of no longer used includes.
2008-09-09 21:44:19 +00:00
Ansgar Becker
c85fd08c2e
Block editing of tables with only unique keys which allow NULLs in any of their columns. Fixes the contamination part of issue #720 . The AV was fixed before, I guess in r1767.
2008-09-09 21:34:14 +00:00
rosenfield.albert
5959297f2d
Bugfix: we're not Internet Explorer, so stop pretending to be.
2008-09-09 11:21:58 +00:00
rosenfield.albert
2221317a2c
Bugfix: (regression) missing space caused SQL error.
2008-09-09 10:05:58 +00:00
rosenfield.albert
4efb511b95
* Bugfix: after an edit, a new row which did not match the filter was included in the grid.
...
* Bugfix: the entire width of all fields of edited columns were loaded, instead of a limited view.
* Bugfix: (follow-up to above) one too many rows were included in RootNodeCount after less rows were matched than expected from the data source.
* Bugfix: some memory was not released as early as it could've been when less rows were matched than expected from the data source.
Hopefully fixes issue #730 .
2008-09-08 16:09:20 +00:00
rosenfield.albert
be23b392ae
Bugfix: some buttons were not disabled when canceling a change where no edits had happened. Fixes issue #729 .
2008-09-08 14:40:12 +00:00
rosenfield.albert
1812171221
Terminology change: 'Changes' instead of 'Edit' in CancelChanges (and PostChanges), since 'edit' is used heftily in context of the data grid, where it means editing a single cell (as opposed to a whole row, which the former applies to).
2008-09-08 12:06:19 +00:00
rosenfield.albert
64dcdc14a7
Bugfix: change the enable/disable code for data buttons into "enable this button when this and that condition is true" and put the logic in ValidateControls. Call ValidateControls in various appropriate places. Fixes issue #713 .
2008-09-08 11:35:40 +00:00
Ansgar Becker
d819dfe8cd
Enhancement: Make it optional to display the tables/db sizes in the tree. Rightclick -> "Display sizes"
2008-09-07 20:29:18 +00:00
Ansgar Becker
75efa8358e
Fix bug #728 cannot open the tree with cursor keys after starting HeidiSQL
2008-09-07 16:01:07 +00:00