33 Commits

Author SHA1 Message Date
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
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
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
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
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
f5de381e05 Fix issue #1209: list index out of bound when deleting a just created index 2009-06-09 12:54:11 +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
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
26caf19b3b Add basic support for 3.23 servers in table editor. Fixes issue #1177. 2009-06-05 19:04:37 +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
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
0bed55de02 Fix AV in table editor for clicking right besides a node in a "no column" whitespace 2009-05-28 05:29:34 +00:00
dfc87736de Fix issue #1156: Table editor, checkbox state change although mouse clicked elsewhere in white space. Same goes for index tree. 2009-05-25 22:24:49 +00:00
ac66f01b44 Fix issue #1170: Escape in fields' DEFAULT value selector causes error and access violation 2009-05-25 22:04:24 +00:00
e97f6f5955 DBO_TYPE is used in different contexts, not only as deprecated column name for engine. 2009-05-24 06:36:11 +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
e3367d53de Focus a new column's name and go into editing mode after having it added. User can start typing the name immediately after clicking the "Add" button. Suggested on http://www.heidisql.com/forum/viewtopic.php?p=3224 2009-05-22 22:38:48 +00:00
c2fc155a7b I think this change was meant in issue #1136 - makes the index tree editable by clicking the cells, just like the columns list. 2009-05-22 22:31:55 +00:00
eb6515c692 Fix issue #1152: Table editor tries to ADD keys in CREATE mode 2009-05-22 17:11:00 +00:00
bece59d669 Table editor: Better use NULL as a valid default value for a new blank INT column, rather than an empty string (''). 2009-05-21 23:13:29 +00:00
e9bf96f493 Fix non editable cells in table editor, broken in r2424 2009-05-21 22:54:19 +00:00
b3750421b2 Implement rfe #602: Explicitely apply collation to all fields if table collation has changed. Generates a "CONVERT TO CHARSET" clause. 2009-05-20 21:10:02 +00:00
ea71eb13f9 Fix issue #1132: Error on Create Table in the Table Editor 2009-05-16 06:00:12 +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