274 Commits

Author SHA1 Message Date
96708f385c Implement a user friendlier grid editor for date and time columns, based on a TMaskEdit + TUpDown, rather than Windows' hopelessly limited picker control. Fixes issue #1219: Impossible to enter 00:00:00 (midnight) in data grid 2009-06-27 00:24:16 +00:00
4ef58c5d89 Fix issue #1233: loop when SHOW VARIABLES fails. 2009-06-21 12:47:43 +00:00
923330d557 Fix issue #1234: "Empty table(s)..." / Shift+Del doesn't work in the database tree 2009-06-21 12:32:49 +00:00
2d290595b5 Ask the user at application startup if statistic calls shall be activated. Otherwise that would be used by no one until a final release shows a checkbox for this feature in the installer. 2009-06-20 22:41:10 +00:00
ddbee4c536 Implement optional usage statistics call:
* Disabled by default, can be checked in preferences dialog
* If enabled, reports HeidiSQL revision and versions of recently used servers
2009-06-20 22:10:08 +00:00
88eb5e8b57 Minor optimization in TMainForm.LoadDatabaseProperties 2009-06-14 20:03:09 +00:00
d26d93aefa Sanitize MySQL structure unit:
* Remove old, unused code (TMysqlIndex, TMysqlField)
* Move relevant code from helpers to mysql_structures unit
* Rename various stuff to more compact names
* Use ordinal values instead of constants for datatypes and their categories
* Replace TGridColumn.IsXYZ boolean's by a new .DatatypeCat property
2009-06-14 19:45:48 +00:00
e684f8be78 Solve issue #1221 and issue #1222: unify window caption and taskbar text, and update them at the right event. 2009-06-12 18:29:59 +00:00
d757b579ac Fix minor memory leak for suspended cached dataset holding collations. 2009-06-12 17:53:16 +00:00
1a39aad6d4 Correct typo. Fixes issue #1199. 2009-06-12 11:53:27 +00:00
20cfe200e9 Consistency fix: Revert previous commit - SelectedTable.NodeType should better be lntNone instead of lntDb if SelectedTable.Text is an empty string. Better detect node type via GetFocusedTreeNodeType . 2009-06-10 15:04:13 +00:00
9a49c7ea9c Fix non working "Edit" menu item for calling ALTER DATABASE dialog 2009-06-10 09:48:39 +00:00
b52791aad6 Find less confusing, more unique names for two methods around DBtree. 2009-06-09 18:28:19 +00:00
65460a351d Fix issue #1205 Moving focus from db to table by keyboard calls ALTER DATABASE dialog 2009-06-09 18:20:50 +00:00
982e2850fa Remove dead code 2009-06-09 06:09:49 +00:00
70b13675de Fix issue #1192: "Index out of bound" in data tab, header click 2009-06-07 18:26:40 +00:00
358100d6b3 Fix issue #990: SQL error if switching from table to data view, if column to sort by has been deleted. Plus: fix relevant naming convention for property + field. 2009-06-06 19:42:20 +00:00
6576461b9e Try to fix issue #1188: weird values in collation pulldown inside the text editor. Could it be that TField.AsString is broken if this heals the problem. 2009-06-05 20:44:39 +00:00
edcd544953 Fix issue #1180: AV while fetching column names for query helpers box on editing a stored routine 2009-06-05 20:33:57 +00:00
164d612e6d Bugfix: issue #1190. 2009-06-05 12:10:22 +00:00
ec0d6bbda2 Fix compiler error, broken in previous commit 2009-06-04 17:26:42 +00:00
f01893d08a Experimental: Reintroduce table tab, this time by placing the existing editors for tables, views and routines as TFrames onto that tab. Unfortunately a whole bunch of GUI changes involved here which makes the diff unreadable. Should solve issue #1149 . 2009-06-04 12:56:55 +00:00
fe8ae38dd9 Doubleclicking a stored routine should bring up the editor dialog instead of the data tab. 2009-05-24 17:11:57 +00:00
b79ddd2260 A function named F can exist besides a procedure F. If such two routines exist and the editor was called for one of them, the chance was 50% that you edit the wrong routine. 2009-05-24 10:28:43 +00:00
5d42f613c6 Suppress various errors on old servers, where certain columns are spelled differently from newer versions and e.g. SHOW COLLATION is not a valid query. Works around issue #1154. 2009-05-23 17:38:48 +00:00
fcebc2697c Fix issue #1151: Items in main database view (tables/procedures/etc) think they're something else 2009-05-23 07:31:10 +00:00
61693a8fcc Fix issue #1150: "List index out of bounds" when autofitting any header column 2009-05-22 17:43:35 +00:00
4a607ac702 Fix status/processes lists to update their state after the filter was modified. 2009-05-21 15:48:29 +00:00
cde5558bbc Remove code around "ValidateControls(*False*)" - a remainder of MDI times, where the mainform needed to know whether there is an open child window or not. Rather use a "Sender" parameter to be able to use it for various GUI events. 2009-05-19 23:30:55 +00:00
a92c3ed489 Fix issue #1089: Pressing Ins in filter textarea inserts new data line 2009-05-19 23:02:07 +00:00
321195e6a6 Fix duplicated SELECT data queries, broken in r2418 2009-05-19 22:46:46 +00:00
d139ab355d * Replace all "Edit table|view|..." buttons and menuitems by one single "Edit" item.
* Move "Create table|view|..." items into a submenu and have one single "Create" item
* Remove all above mentioned buttons from the main toolbar, leaving them in the context menus where there function is more predictable
* Streamline context menu of db tree and database tab
Fixes issue #1139, issue #1124, issue #1108, issue #820, issue #738, issue #595
(The diff tends to be unreadable here, as there are many automatic GUI adjustments after having removed a toolbar)
2009-05-19 22:37:22 +00:00
bc33729fdd Issue #436: Remove table tab from main tabs, and old field editor. Both were replaced by the new table editor. Doubleclicking a table opens the data tab now. 2009-05-17 16:02:28 +00:00
5eb2420efa Needed changes after VirtualTree update 2009-05-17 05:51:28 +00:00
20e21f6cc4 Try to fix issue #1127 and issue #1131 (handling float numbers in grids). Do not convert them back and forth using MakeFloat + FormatFloat. Breaks rfe #1012 and r2320 . FloatField.AsString returns an exponent number in various cases which is compatible between MySQL and Delphi. Only those exponent numbers must not be quoted in an SQL sentence - which fixes this commit. 2009-05-16 18:13:56 +00:00
5209995eed Enable (re)storing a VirtualTree layout on different forms without naming conflicts in registry. Plus: use that in the new table editor. 2009-05-12 22:41:24 +00:00
7f32b33505 Issue #436: Implement a new table editor dialog. Nukes both create + alter table dialogs. 2009-05-12 22:24:09 +00:00
3c48505494 Display a message regarding stored routines only when such an item is selected in the tree. 2009-04-29 13:21:15 +00:00
6c984b7be5 * Bugfix: wrap Tree.{Begin,End}Update in try..finally.
* Bugfix: avoid calling AutoCalcColWidths() from finally, since it can easily throw an exception.

Fixes issue #1111.
2009-04-29 13:06:20 +00:00
57b6530789 Bugfix: Seems that I broke the row counter statistics while doing InnoDB fixes. 2009-04-28 23:22:33 +00:00
eadeed1ae2 Use helper methods where possible, and leave GUI stuff in form units. 2009-04-28 22:35:00 +00:00
d25e271591 Detect and process NUL characters before giving loaded SQL to SynEdit. Works around issue #1093. 2009-04-28 21:16:18 +00:00
cbcdf27bbd Work around issue #1094: SQL editor silently converts newlines. By showing a popup info, saying that file contains mixed line breaks and they were converted to Windows breaks. 2009-04-21 22:26:43 +00:00
40ada7b69c Related to issue #1094: Try to handle consistent, non-Windows line breaks in query editor, so e.g. a loaded Unix text later gets saved using Unix breaks rather than Windows breaks.
This should also heal query execution for e.g. a loaded Unix text but it doesn't - queries always have Windows breaks when they arrive at the server. Seems that Zeos does a further replacement for non-windows breaks somewhere.
2009-04-21 22:15:00 +00:00
1d56021ee5 By default, set more reasonable SQL output file to <user name>\Application Data\<database>.sql, instead of <progam files>\HeidiSQL\export.sql . See also http://www.heidisql.com/forum/viewtopic.php?p=3156 2009-04-19 06:15:43 +00:00
26a884164e Bugfix: fix issue #1047, #1080 and #1084. 2009-04-15 22:10:12 +00:00
91716960bb Fix AV on opening one of the CREATE or ALTER TABLE dialogs for the second time, after an automatic reconnect. Related: r2312, r2328 and issue #858 2009-04-15 19:32:20 +00:00
92d6a938db Fix handling of session name in command line (-dMySession): Use it to *read out* session properties from registry instead of *saving* (potentially empty) values. 2009-04-09 23:35:37 +00:00
c601ece40c Work around wrongly calculated scrollbar range in host lists. Ignores hidden (= filtered) nodes now. 2009-04-09 22:22:38 +00:00
2b8e3ac271 Issue #1074: Make maximum number of total rows displayed in datagrid configurable 2009-04-08 20:16:33 +00:00