1167 Commits

Author SHA1 Message Date
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
ce155c1a98 Fix issue #1236 Wrong DEFAULT value detection in table editor 2009-06-21 12:24:19 +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
0ab2599a17 Code cosmetic: Make CREATE and ALTER TABLE code more compact and readable by removing spaces between name/value pairs. 2009-06-18 19:45:14 +00:00
30f84c93a6 Use mainform's status panel and progressbar to display messages instead of a separate label on the table editor. 2009-06-18 19:33:51 +00:00
2f09c7760f A single quote in DEFAULT 'XYZ' and in COMMENT 'XYZ' gets escaped by single quote. Remove the escape char to fix duplicated single quotes in the end. 2009-06-18 19:12:56 +00:00
9db8a6c6ea Detect all column properties from a SHOW CREATE TABLE result, instead of SHOW FULL COLUMNS, so the missing ON UPDATE CURRENT_TIMESTAMP can be taken into account. The new parsing part in is probably slightly unstable yet, although tested on 4.0, 4.1 and 5.1 servers. Fixes issue #1133. 2009-06-18 19:02:07 +00:00
f6b4ac2a78 Add a workaround for a bug in SHOW FULL COLUMNS on 4.1 servers. Fixes issue #1224 2009-06-15 12:11:15 +00:00
33501d1a56 Minor graphical fix: Minimize gutter width in all TSynMemo's, tell them to auto-size themselves when more digits come. 2009-06-15 06:31:26 +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
f86330032e Table editor: Fix empty index and collation clauses and friends, in ALTER and CREATE TABLE statements, mentioned in issue #1203 . So the user gets a more specific error message 2009-06-13 10:20:16 +00:00
8b37a0bbaa Fix issue #1213: table editor columns misaligned 2009-06-13 06:58:54 +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
403d88ceba Bring more implicit modification calls into the right place so the ALTER code is displayed correctly 2009-06-11 16:05:08 +00:00
184af6ce07 Bring order of implicit event calls into the right order to fix out of date ALTER TABLE code 2009-06-11 15:59:20 +00:00
1b8301c64e Avoid AV in StrToFloat when strings with multiple commas are passed to MakeFloat. Fixes issue #1217: Trying to change sql_mode variable gives a floating point error 2009-06-11 06:41:47 +00:00
ef14ba7cff Bugfix: Change events should not get fired as soon as the table editor has not finished loading. 2009-06-10 15:24:05 +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
41cf19de59 Fix issue #1191: Table editor should only touch changed columns. 2009-06-10 09:18:38 +00:00
c6743e087b Fix issue #1211: Table editor, length/set should be ignored or suppressed for datatypes which don't support that. Also, make relevant code for cell editing allowance and cell background painting more easy and less redundant. 2009-06-09 20:13:35 +00:00
a9ded30c49 Remove debug output from r2467 2009-06-09 18:40:02 +00:00
6c4b998069 Fix issue #1204: unable to delete a "0" char in Default field in the table editor 2009-06-09 18:38:50 +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
f5de381e05 Fix issue #1209: list index out of bound when deleting a just created index 2009-06-09 12:54:11 +00:00
982e2850fa Remove dead code 2009-06-09 06:09:49 +00:00
6deb924b13 Fix issue #1159: Defaults editor in table editor partly hidden in bottom columns. Moves the defaults editor various calculated pixels to left and top so it fits into the client area. 2009-06-08 19:18:36 +00:00
3bc31db014 Split "SQL code" tab into two "ALTER code" and "CREATE code", and display both in ALTER mode for copy+paste purposes. Fixes issue #1195. 2009-06-07 19:09:40 +00:00
70b13675de Fix issue #1192: "Index out of bound" in data tab, header click 2009-06-07 18:26:40 +00:00
20faa923bd Revert accidental GUI changes from r2449 2009-06-07 05:39:19 +00:00
d5ff16f86e Table editor: Enable horizontal and vertical grid lines for readability 2009-06-07 05:35:23 +00:00
63ca742b6d Table editor: center align column captions with centered checkboxes 2009-06-07 05:31:09 +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
60d300b75a Fix non resizable columns with an activated TEnumEditor by removing a non working Vista-fix. Setting TComboBox.ItemHeight is effective only in OwnerDraw mode which we do not have here. 2009-06-06 06:17:13 +00:00
8ca38b4e48 Fix issue #1161: Enum editor pops up in the upper left corner 2009-06-06 06:12:34 +00:00
4c65ccc86f Fix issue #1193: Rename button is enabled if no session is selected in session manager 2009-06-06 05:48:39 +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
26caf19b3b Add basic support for 3.23 servers in table editor. Fixes issue #1177. 2009-06-05 19:04:37 +00:00
3d0682bea5 Fix issue #1174: Table editor, column editing: Let Esc cancel the defaults editor and Enter accept changes. 2009-06-05 17:32:47 +00:00
bffc1df93b Minor: Revert accidentally changed GUI stuff in recent commit. 2009-06-05 17:27:48 +00:00
11c70f62ee Fix issue #1176: Can't change table engine after creation. Seems a TCombobox.OnChange is not fired if a OnSelect coexists. 2009-06-05 17:25:35 +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