16c0ac36b3
MySQL 4.0.1 and above allow moving a columns position within an ALTER TABLE statement. Use that to overcome various risks of the manual mechanism for older servers.
2007-09-03 09:38:20 +00:00
21a7d22af9
TimerProcesslist should not exclusively refresh ListProcesses. Instead it look useful that the other two subtabs ListVariables + ListCommandstats have this auto-refresh feature too.
2007-09-03 09:17:08 +00:00
67a4887e0e
Make the id-column in ListProcesses slightly wider so large numbers can be viewed without resizing the column.
2007-09-02 23:08:16 +00:00
f279d9cc3f
Add support for killing more than one process in one go.
2007-09-02 23:04:42 +00:00
f4ce711c4c
Empty table using faster TRUNCATE statement on newer servers. Fullfills feature request #1644143
2007-09-02 22:18:20 +00:00
a140b4d1d6
Fullfill feature request #1724941 Add option "Remember data pane filters across sessions"
2007-09-02 21:54:29 +00:00
544ff577c0
Followup to rev 740: Refresh table cache also after relevant properties of one or more tables got changed by
...
- TTableComment.ButtonOKClick()
- TMDIChild.EmptyTable()
- TMDIChild.MenuChangeTypeClick()
- TMDIChild.MenuChangeTypeOtherClick()
- TMDIChild.MenuOptimizeClick()
- TMDIChild.MenuRepairClick()
2007-09-02 19:00:28 +00:00
4e9336d10d
Minor code simplification: use "continue" instead of large begin/end block
2007-09-02 14:09:20 +00:00
895e69269f
Fix AV on comparing mixed column content in VirtualTrees (strings compared to integers)
2007-09-02 13:46:07 +00:00
0f361d5af0
Avoid time consuming animation when DBtree items are deleted and restored in databases with many tables.
2007-09-02 10:36:55 +00:00
bab0a38fe4
MakeInt(): Correctly backconvert strings which were previously formatted by FormatByteNumber() . Fixes incorrect sorting of columns in VirtualTrees which contain some byte values. Also enables us to call FormatToByteNumber() in "Size" column of ListTables.
2007-09-02 10:05:09 +00:00
23a97d93a6
Add accidently deleted icons for SQL help.
2007-09-01 06:17:13 +00:00
40c41d3cbe
Add support for TeraByte and PetaByte in FormatByteNumber.
...
Overcomes a "E2099 Overflow in conversion or arithmetic operation" compiler error by using constants instead of calculating the limits.
2007-08-31 00:03:55 +00:00
8ab0b95440
Implement a more effective solution for hiding and unhiding columns in ListColumns.
...
Pros:
- ShowDBProperties doesn't reset column layout
- Sort direction is remembered automatically
- Reading columnlist from registry is done once in a TMDIChild, not on each ShowDBProperties
- Hiding/unhiding columns doesn't call ShowDBProperties
- No more hassling with what is called a "default column" or not. popupDBGrid is usable like in Windows Explorer.
- Column layout is stored global, not per session.
Cons:
- Column layout from old settings logic needed to be discarded
Side effect:
- Fixes a potential AV in FormatNumber(str) with empty strings.
- Created an overloaded FormatByteNumber() which can take a string as input
2007-08-30 23:49:38 +00:00
2dee4b326f
Fix todo: Replace Ansgar's otherwise adorable icons with a couple of free ones from Mark James.
...
Scheme:
* Green arrow means "current window"
* Computer means "is connected"
* Lightning means "connect"
* Plug pull means "disconnect"
2007-08-29 16:09:09 +00:00
996de281d7
* Bugfix: Properly propagate exception when editing forbidden (access denied) data in a grid.
...
* Cosmetic: Fix haywire indentation in TMysqlQueryThread.Execute.
2007-08-29 01:48:28 +00:00
bf401df253
* Implement Pos2, which takes a start parameter.
...
* Mask USING {BTREE,HASH,RTREE} from older servers. I wonder why mysqld doesn't do this by itself. Fixes issue #1779065 .
2007-08-29 00:49:40 +00:00
80a64fff0b
Produce less spam when exporting empty tables. Set your differ to ignore whitespace. Fixes issue #1779063 .
2007-08-29 00:20:57 +00:00
0ee7e15e4b
Only show tables in the "export tables" window, do not include views.
...
(Views need to be exported last for an import to work properly, which is a better solution - should do that at some point. Other stuff needs to be exported too, stored procedures etc). Fixes issue #1779068 .
2007-08-29 00:12:57 +00:00
de147880c4
Bugfix: Fix (improve) positioning of TToolBar elements on Windows Vista.
2007-08-28 23:57:44 +00:00
627bd0b51c
Bugfix: Switch to database selected in db tree before firing user query.
2007-08-28 23:23:52 +00:00
e77a3ec06d
Fix displaying the current database in childwins window caption.
2007-08-28 23:18:25 +00:00
b9d7377b64
Fix firing various queries via GUI or query-editor on the current database after selecting a db which was cached before.
2007-08-28 23:16:23 +00:00
028790d3e6
Minor simplification of legacy code. I'm sure this change has no visible effect.
2007-08-28 19:39:08 +00:00
98e2fb7541
Minor fix for sorting columns in list which contain large numbers which exceed Integer (fx "Max_data_length").
2007-08-28 19:35:06 +00:00
e40df52ead
Don't call sorting procedure on right clicking header columns. Some list-headers have a contextmenu which should popup then.
2007-08-28 19:32:01 +00:00
7b6e142c60
Get printing function to work with VirtualTrees.
2007-08-27 21:20:39 +00:00
c4f7ada3cb
Paint background of sorted columns light grey. Imitates behaviour of the Windows XP Explorer and adds a clear signal to the user that the list is somehow sorted currently.
2007-08-27 20:58:33 +00:00
5d718e5152
Iterate through data arrays of VirtualTrees rather than through the nodes to get their captions. Fixes sorting in ColumnSelection-dialog and other places where GetVTCaptions is called to get all captions (not the selection).
2007-08-27 18:46:21 +00:00
cc470b33fe
Fix previous revision: The compiler complains about declaring properties after functions and procedures.
2007-08-27 18:36:26 +00:00
2977bcb735
Encapsulate detection of data array for a VirtualTree in a new function "GetVTreeDataArray". Should make it easier to read data from these arrays instead of the nodes.
2007-08-27 18:32:08 +00:00
46cad8f9eb
The right place to call ValidateControls is in ListTables.OnChange rather than in ListTables.OnClick + popupDbGrid.OnPopup.
2007-08-27 18:10:24 +00:00
20ce6fc803
Adjust the withs of columns in ListColumns so they're more usable. Autosizing rightmost column only.
2007-08-27 18:02:22 +00:00
ad14e12595
Don't call VT.SortTree manually. Let AutoSort do the work for us.
2007-08-27 17:55:43 +00:00
bc6c65d28b
Call VT.Clear before filling it rather than manually calling ReInitNode after filling data. Seems more consistent and less hackish.
2007-08-27 17:51:02 +00:00
4f2246d598
Fix a minor compiler warning, introduced in previous revision.
2007-08-27 00:04:24 +00:00
3f0b70c409
Switch ListColumns from TSortListView to TVirtualStringTree
...
Additionally/Sideeffects:
- Fix vstFreeNode to delete the item from the array, not only free the item itself
- Change/Rename GetSelectedNodesFromVT to GetVTCaptions and give it the ability to return all captions, not only the selected. This function is very useful now and saves writing much redundant code.
A table with 500 columns needed 3 seconds to display in the TSortListView, now that takes less than a half second.
2007-08-27 00:01:53 +00:00
1fa1837ec8
Revert revision 841 as discussed on the devels list:
...
"The example SQL is not proper SQL, so SingleLine mode might [is] be intentional."
2007-08-26 18:10:28 +00:00
f67200157b
Fix a focus-issue for rightclicking in ListTables. ValidateControls is called by OnClick, but rightclicking doesn't seem to call OnClick. So, add ValidateControls to popupDbGrid.OnPopup.
...
Also checking the focused node doesn't say if some nodes are selected. A focused node can even be unselected in the way that its background is not highlighted. So, rather check the selection in ValidateControls.
2007-08-26 06:19:34 +00:00
f814439f03
Nuke an ugly workaround for setting the correct width and height of ListTables and ListColumns after the form has been resized. Somehow this workaround was not functioning as expected any longer with the new VirtualTree on the Database-tab.
...
Now the lists take all room they can get (alClient), which makes the workaround superflous. However, that made it necessairy to group the toolbars on a TPanel and set the TPanel to alLeft.
2007-08-25 11:53:53 +00:00
f710f29706
Configure the preview SynMemo not to use SingleLine-mode, which could probably cause incorrect highlighting here.
2007-08-25 11:20:58 +00:00
51e212ae6d
Add shortcuts to processlist's popup menuitems in "Auto-refresh":
...
"Active" [Ctrl+F5]
"Inactive" [Esc]
Fixes the ability to disable autorefreshing without using the mouse + menu, which is impossible when the interval is set to 1 second.
2007-08-25 11:18:14 +00:00
cc11515859
Add Header.hoHotTrack property to VirtualTrees where that was missing. This enables the mouse-over effect when XP-theming is active.
...
Also adjust the height of the header to be the same in all VTs.
2007-08-25 00:13:11 +00:00
9068f08609
Convert ListTables from TSortListview to TVirtualStringTree
...
Additionally/Side effects:
- TVTreeData structure moved to helpers.pas to be able to use it in new function GetSelectedNodesFromVT.
- ListTablesEditing dropped. We don't need to disable any shortcut there because there is none set.
- Avoid potential AVs when accessing not created items in TVTreeData.Captions
2007-08-25 00:08:31 +00:00
43f6d11cc2
Convert ListProcesses from TSortListView to VirtualTree.
...
- Don't replace "ListProcessesSelectItem" by "ListProcessesClick". Do the menuitem stuff in popupHost.popup()
- Avoid potential AV when exceeding the captions-list of a node in GetNodeText.
2007-08-21 23:19:51 +00:00
75387fb490
Bugfix: export to database needs to know the current character set.
2007-08-21 20:17:32 +00:00
2b8a75b61c
Avoid a follow-up AV when seeing unknown data types.
2007-08-21 19:35:14 +00:00
45cc29269e
Don't display ugly "bevels" on TSplitters. It's obvious enough that there *are* splitters.
2007-08-21 19:25:29 +00:00
797cf5502f
Adjust style of VT-headercolumns to be more standard looking when XP theming is not active (hsThickButtons is default)
2007-08-21 19:18:52 +00:00
cc1063b8dd
Implement RFE #1685787 : create table button in popup menu.
2007-08-21 18:28:53 +00:00