aa9525e527
Unify default sorting of database objects in tree and lists. Fixes issue #1799 .
2010-03-25 21:03:37 +00:00
e47a7c6158
Fix unsaved output setting when "Database" was selected. Also, fix disabled pulldown holding databases in such cases.
2010-03-25 06:48:03 +00:00
c0d33af4fd
Move menu item "Find text on server" from "Tools" main menu to "Search", and find a better icon for it.
2010-03-24 23:23:38 +00:00
61e4ff0603
Add option to export SQL to clipboard. Fixes issue #1798 and issue #506 .
2010-03-24 22:22:21 +00:00
1ef9ebf07b
Fix wrong ALTER code when changing a column name more than one time. Fixes issue #1792 .
2010-03-24 17:18:48 +00:00
1ffea39756
Validate user + host name input in OnExit, not OnChange, which is too early when one of them gets reset. Fixes issue #1794 .
2010-03-24 17:05:21 +00:00
92fdcbb481
Set focus on query editor after double click on db tree or query helpers box. Fixes issue #1796 .
2010-03-24 16:36:13 +00:00
d67f746de8
Fix AV on application exit while datagrid has pending changes. Fixes issue #1780 .
2010-03-24 13:45:48 +00:00
ed5ec1e122
Rethink portable releases:
...
* Remove complicated and unreadable NSIS stuff. No need to have a installer for a developer application. ZIP file is fine.
* On startup, if a portable_settings.txt exists in the application folder, heidisql.exe will read its contents into a unique registry key.
* In MainForm.OnDestroy, settings are written to that file again, and the reg key gets deleted.
* Avoid using Microsoft's .reg file syntax, as you need admin privileges to store and restore such files, even when using the appropriate Windows API functions.
2010-03-22 21:10:38 +00:00
be645ac79b
Unify code for refreshing Virtual Trees in a new helper method InvalidateVT. Fixes issue #1789 and issue #1790 .
...
* Don't try to access a passed tree if it has been destroyed by some earlier event.
* Don't try to access registry in DoDisconnect after key has been closed.
* Now that DoDisconnect lives in FormDestroy it is save to call it slightly earlier, before registry has been closed. There should be no later paint events which will trigger random database queries.
2010-03-21 10:43:16 +00:00
3168a3e277
Fix flicker and crappy text display in status bar after explicit repaint.
2010-03-21 07:40:27 +00:00
067036c7ef
Make regular expression safe against huge length/set attributes of column types. Fixes issue #1786 .
2010-03-20 22:32:57 +00:00
3ef86ccdb3
Remove nonsense from old MDI days, where OnActivate needed to update its child windows.
2010-03-20 21:54:28 +00:00
d62e3a138b
Related to issue #1780 : Move code from Main.OnClose to Main.OnDestroy, where visible controls do not process painting any longer, which makes it more safe against AVs after destroying critical objects. Now, saveWindowConfig is not able to set WindowState to wsNormal in OnDestroy, which was required in order to store correct registry settings. Solution: Only save dimensions if WindowState was wsNormal. This change finally removes an annoying animation effect when closing the main window.
2010-03-20 21:38:41 +00:00
63557fe852
Disconnect from server must be the last thing to do in FormClose, as other (repaint) actions can implicitly trigger some database query. Fixes issue #1780 .
2010-03-20 21:08:32 +00:00
b57153c956
For DROP TRIGGER there is no IF EXISTS clause, so we just ignore errors. Important if trigger was dropped before, tried to recreate for the second or later time. Fixes issue #1788 .
2010-03-20 16:05:58 +00:00
03cc9d632a
Attempt to fix issue #1780 - AV on closing main window. Free the cached list of db object lists, instead of making it empty, so a call to Assigned() returns false.
2010-03-20 00:18:17 +00:00
939425dc19
Do cell text formatting for decimal and binary columns, also in DataGridEnsureFullRow(). Fixes issue #1784 .
2010-03-20 00:03:34 +00:00
63bb7ae022
Fix wrong column name in SELECT when one or more columns are deselected.
2010-03-19 18:25:18 +00:00
13302d5b2f
Remove empty and useless procedure
2010-03-19 07:09:30 +00:00
d7d65e1015
Add submenu in "Quick filter" menu: "More values", with subitems displaying first 30 distinct values and their frequency in the focused column. Fixes issue #1098 .
2010-03-19 00:02:44 +00:00
a96ccdfdb2
Fix wrong enabled/disabled status of "Clear filter" menu item.
2010-03-18 22:28:45 +00:00
78f0838c6d
Do not steel focus or change cursor position on filter editor while pressing F9 or "Apply filter".
2010-03-18 22:19:19 +00:00
89774dbe44
Fix minor memory leak
2010-03-18 22:11:42 +00:00
f86a0ee692
Clear table structure cache after modifying columns. Fixes issue #1774 .
2010-03-18 07:00:23 +00:00
862fbf9b5f
Optimize setting column widths in data grid.
2010-03-18 06:59:26 +00:00
37a05196ae
Add useful hint for new password generator button in user manager dialog
2010-03-17 20:11:43 +00:00
52328ada0c
Pass double clicks on dbtree and queryhelpers over to ActiveQueryMemo.DragDrop, which does the same. So all actions behave consistently wrt to shift pressed. Fixes issue #1661 .
2010-03-17 13:55:16 +00:00
bf2d8591f4
Missing file for r3176
2010-03-17 09:09:12 +00:00
0ffef111af
Allow to drop column names vertically when holding the Shift key while mouse drops cols. Fixes issue #1331 .
2010-03-17 00:19:10 +00:00
256a921563
Do not mandate the user to save a entered or modified password with a popup dialog. Fixes issue #1371 .
2010-03-17 00:10:16 +00:00
860390e986
User manager: Add button to generate a random password. Fixes issue #1460 .
2010-03-16 23:50:40 +00:00
9d18bd433e
Don't touch X() SQL function from being uppercased and detected as keyword in pretty formatter, so that hex values like "0x0101" don't break. Fixes issue #1736 .
2010-03-16 23:04:01 +00:00
f411f36f32
Force repainting columns list after modifying some index. Ensures key icons on column nodes are displayed immediately.
2010-03-16 18:20:38 +00:00
3ed8c5bd91
Make session log directory configurable. Fixes issue #494 .
2010-03-16 00:18:44 +00:00
71c687986f
When dragging a table into a query editor while Shift is pressed, include its database name. Fixes issue #1749 . Fixes issue #1661 .
2010-03-15 23:40:26 +00:00
6c4be937ab
PreviousFocusedNode must be manually unassigned, to avoid accessing invalid memory locations. Fixes issue #1762 . Probably also issue #1771 .
2010-03-15 23:20:34 +00:00
558bafc0d7
Enable incremental search on keyboard presses in various lists and trees. Fixes issue #1769 .
2010-03-15 17:52:09 +00:00
20297a6955
Switch to query tab early enough to avoid AVs when accessing ActiveQueryTab. Fixes issue #1770 .
2010-03-15 17:47:27 +00:00
1b3b16b291
Open object editor on selected list node on pressing <return>. Fixes issue #1768 .
2010-03-14 17:19:57 +00:00
fc31018600
Display key icons in data grid column headers
2010-03-14 12:22:05 +00:00
c82fa61eb1
Fix staying invisible columns in data grid after deselecting one or more and reselecting them.
2010-03-14 12:02:11 +00:00
17e4a63f81
Allow data grid editing and deleting rows for tables without primary or unique key. Just ensure that all full column values are taken into WHERE clauses for UPDATE and DELETE actions. Additionally, append a "LIMIT [SelectionCount]" so we don't update or delete unwanted rows. Fixes issue #1392 .
2010-03-14 11:57:53 +00:00
bbab8c5d12
Same as previous commit: Revert r3056. Fixes issue #1749 .
2010-03-14 10:22:23 +00:00
630244aa16
Revert r3053 - do not include database name when dropping table nodes in query editor. Seems more users including me are against that. Fixes issue #1749 and invalidates issue #1661 .
2010-03-14 10:17:33 +00:00
f8d8ae9bf0
Totally forgot that we have GetWhereClause(), which makes some code superfluous in DataGridEnsureFullRow().
2010-03-13 16:19:18 +00:00
8a02113489
Log some message when going to load a file into any query tab. Should help fixing issue #1764 .
2010-03-13 16:02:36 +00:00
bd762fe439
Do not open a new tab for a dropped file, at least if it's the only one or first one of multiple files. Fixes issue #1764 .
2010-03-13 14:03:13 +00:00
532713e51a
No need to check if a trigger exists if we're already in edit-mode. MySQL 5.0 seems to not support the IF EXISTS clause anyway. Fixes issue #1763 .
2010-03-13 13:59:03 +00:00
7b237496d8
When user clicks "Show next 1000 rows", auto select first one of these.
2010-03-13 08:03:02 +00:00