Commit Graph

1731 Commits

Author SHA1 Message Date
Ansgar Becker
524faddf7e Fix enabled EXPLAIN link on startup and avoid AVs on click, as long as no FocusChanged event has fired. 2010-02-23 23:15:08 +00:00
Ansgar Becker
25be03a4b0 Parse result of SHOW CREATE PROCEDURE, instead of querying information_schema.ROUTINES, which seems broken as escaped quotes appear non-escaped here, on a 5.1.22 server. Fixes issue #1713. 2010-02-23 21:25:48 +00:00
Ansgar Becker
e3be57c4ee The new EXPLAIN feature needs to prepend a "USE dbxyz" to the EXPLAIN, or that will only run without error if the user has selected the relevant database. 2010-02-23 18:25:48 +00:00
Ansgar Becker
06dd22af9d Again, increase length of fetched SQL column from 10kb to 50kb, so it's less likely that we cut important queries. Fixes issue #1714. 2010-02-23 18:21:43 +00:00
Ansgar Becker
64cfe945da Tweak help menu items:
* Link issue tracker instead of separating them for bugs + features
* Rename "user to user forum" into "Support forum"
* Add "Changelog" item
2010-02-22 09:29:40 +00:00
Ansgar Becker
484fcdbd46 Place a "EXPLAIN" link label to the process viewer, which creates a new query tab and executes "EXPLAIN [selected process query]". 2010-02-22 08:56:13 +00:00
Ansgar Becker
962c0b3b44 Fix non working right anchors of aligned controls (mainly TEdit) on user manager dialog. 2010-02-21 10:59:19 +00:00
Ansgar Becker
0e271ee7de Replace remaining loadXYZwindow() functions for dialogs by a more native way. 2010-02-21 10:44:55 +00:00
Ansgar Becker
bf4639360b Remove unused unit 2010-02-21 07:34:24 +00:00
Ansgar Becker
1376a4e5f0 Privilege tree doesn't repaint automatically when calling ReInitNode 2010-02-21 07:14:32 +00:00
Ansgar Becker
a9cf0fd3b2 Organize controls on routine editor into 3 tabs (options, parameters, create code). Fixes issue #1708. 2010-02-20 18:44:36 +00:00
Ansgar Becker
812cbc82b6 Apply a new style to the user manager dialog:
* Use 2 VirtualTree's instead of broken TComboBoxEx pulldown's
* Enlarge the user list so all items are visible at once
* Privilege objects now use a tree style, 1st level is the objects name, 2nd level is the privilege name ("select", "update" ...)
Fixes issue #1707
2010-02-20 17:12:54 +00:00
Ansgar Becker
29bd958a9f Work around too few items in TComboBoxEx in higher DPI modes. Fixes issue #1707. 2010-02-19 07:10:01 +00:00
Ansgar Becker
a319770882 No more casting to TTableColumn required since we have these nice Generics 2010-02-17 23:25:46 +00:00
Ansgar Becker
21ce2fbc80 Forgot that views are so similar to tables in previous commit. 2010-02-17 23:23:58 +00:00
Ansgar Becker
5de3fc1d57 Display parameters of stored routines in "Cols" tab of query helpers when a procedure or function is selected. Fixes issue #1702. 2010-02-17 23:16:26 +00:00
Ansgar Becker
4ef7238ab9 Load full cell content before applying quick filters on larger text columns. Fixes issue #1703. 2010-02-17 19:41:36 +00:00
Ansgar Becker
2159472f93 Avoid AV when registry value for connection port is fucked up. Fixes issue #1700. 2010-02-17 18:25:31 +00:00
Ansgar Becker
4e5468f709 GetParentForm() returns the parent form of a frame. So, list layouts were saved with potential naming conflicts in registry since table editor and friends are TFrame, not TForm. Solve that by implementing GetParentFormOrFrame() and add that control's name to all relevant registry names in SaveListSetup() and RestoreListSetup(). This resets everyone's favorite list layout once, using this new build, but that should not be a problem. 2010-02-17 09:20:26 +00:00
Ansgar Becker
aadb5c42d1 Save and restore layout of procedure parameter tree. 2010-02-17 08:42:48 +00:00
Ansgar Becker
526a4c5424 Add default length/set in parentheses when user selects a datatype for a procedure parameter. Fixes issue #1698. 2010-02-17 08:36:59 +00:00
Ansgar Becker
787005186d For datatypes which require a length/set parameter in parentheses, we should provide a default length. 2010-02-17 08:35:41 +00:00
Ansgar Becker
14e03d9647 Also don't quote default values of a float type column, same as for integers. 2010-02-17 00:23:38 +00:00
Ansgar Becker
a43edc883f Implement a new external updater tool, stick that updater.exe as resource to the main executable, release and run it when the user clicks "Download build xyz". The updater itself posts WM_CLOSE messages to all Heidi instances, waits until all instances are gone, and then replaces the .exe with the downloaded one, after having copied a backup file to your temp directory. 2010-02-16 23:58:48 +00:00
Ansgar Becker
08c947bfd1 Disable horizontal scrollbar on SQL log for the benefit of having one more free line there. Seems more important than being able to scroll to the right to see the end of large sql queries. 2010-02-15 23:38:35 +00:00
Ansgar Becker
f44d19cb56 Consistently update SQL viewer for selected process node, in "Processes" tab. Also, make it more clear if no process is selected. Fixes issue #1693. 2010-02-14 16:58:56 +00:00
Ansgar Becker
b8477602fd Seems ForceDirectories does not create all subdirectories if we have two slashes between dirnames. Happens when the user appends a slash to the end of the output directory. 2010-02-13 07:23:30 +00:00
Ansgar Becker
c95ae5fa10 Silence compiler warning 2010-02-13 07:10:30 +00:00
Ansgar Becker
b642194ada Create subdirectories for each involved database in SQL export. Fixes issue #1690. 2010-02-13 07:09:47 +00:00
Ansgar Becker
d10929dbe8 Fix broken ALTER TABLE code when dropping primary key. Fixes issue #1688. 2010-02-12 19:19:48 +00:00
Ansgar Becker
0e77bba9e4 Decrease pre calculated number of rows per INSERT, to make that safer against exceeding the popular 1MB max_allowed_packet default setting. Fixes issue #1682. 2010-02-12 00:25:01 +00:00
Ansgar Becker
8694e49ddc Warn user via log panel when a customized shortcut conflicts with another one. Do not crash the whole app in that case, a log message saying how to fix that should be nice enough. Fixes issue #1683. 2010-02-12 00:11:35 +00:00
Ansgar Becker
07308d66c9 Fix wrong PageIndex of data tab in printer implementation. Plus: Enable printing columns list on table editor. Fixes issue #1684. 2010-02-11 23:46:46 +00:00
Ansgar Becker
f22fa996ba Bulk table editor: No comma between charset + collation clause. Fixes issue #1685 2010-02-11 23:26:37 +00:00
Ansgar Becker
5aa9b33cbd When pressing Tab key in grids and the next column does not allow editing, just focus it, instead of jumping to the next editable cell. Fixes most situations described in issue #1677. 2010-02-11 13:53:06 +00:00
Ansgar Becker
1a25cd629d Ensure we have full grid cells in source row when user clicks "Duplicate row". Fixes issue #1678. 2010-02-11 09:10:45 +00:00
Ansgar Becker
639dbe5e14 Fix old row count in data grid header when rows were deleted from outside. Fixes issue #1227. 2010-02-08 23:17:37 +00:00
Ansgar Becker
dc4e6c980a Prefer VT.FocusedNode over VT.GetFirstSelected in various places. Clicking a node twice deselects it and subsequent actions have an access violation. Fixes issue #1674. 2010-02-08 20:57:07 +00:00
Ansgar Becker
e045cb3d76 Delphi 2010 has PNG + alpha channel support in TImageList, so we don't need PNGcomponents any longer. 2010-02-08 00:36:17 +00:00
Ansgar Becker
3c34bc5e29 Surround TRIGGER creation export with custom DELIMITER, so readers (including HeidiSQL itself) are able to detect query end positions. Fixes issue #1672. 2010-02-07 16:59:03 +00:00
Ansgar Becker
a0ba865f66 Remove pink foreign key icon - we already had another one. Use that consistently in both foreign key list and columns list. 2010-02-07 14:23:27 +00:00
Ansgar Becker
17c27c8b58 Add pink icon for foreign key columns. Fixes issue #1669. 2010-02-07 12:31:09 +00:00
Ansgar Becker
9192543d8c Auto create pretty foreign key name "FK_thistable_reftable" if it was not customized yet. Fixes issue #1671. 2010-02-07 12:14:22 +00:00
Ansgar Becker
788cbf565f End editing with home brown editors when the underlying tree scrolls, to avoid a misplaced cell editor. Fixes issue #1670. 2010-02-07 11:59:36 +00:00
Ansgar Becker
3195b25e8f Only display tables in reference table pulldown of foreign key editor. Stored procedures or triggers cannot be applied here. Fixes issue #1668. 2010-02-07 11:37:01 +00:00
Ansgar Becker
6410aae590 Also quote column names when doubleclicking or dragging from a query helpers column list. Fixes issue #1666. 2010-02-07 11:32:24 +00:00
Ansgar Becker
9d9f2bd68a Same as r3053, this time for doubleclicking a tree node: Prepend database name, and use backticks. Fixes issue #1666. 2010-02-07 11:20:37 +00:00
Ansgar Becker
64d3d1447e Foreign key editor needs to be repainted when selecting another table. Fixes issue #1667. 2010-02-07 10:45:43 +00:00
Ansgar Becker
c06dd0d8bf Fix mysterious endless loop in user manager, after having focused the password editor once. Make use of Delphi's new TextHint property to display the old hashed password, instead of assigning and removing OnChange handlers all the time. Fixes issue #1658. 2010-02-06 13:48:39 +00:00
Ansgar Becker
ae3f8d2f39 Include database name when dropping a db tree node onto a query editor. Fixes issue #1661. 2010-02-05 21:18:14 +00:00